NUM_TCB
memset(tcb, 0, sizeof(struct tcb) * NUM_TCB);
for (i = 0; i < NUM_TCB; i++) {
tx_ring->tcb_ring = kzalloc_objs(struct tcb, NUM_TCB,
WARN_ON(tx_ring->used > NUM_TCB);
while (tcb != NULL && freed < NUM_TCB) {
WARN_ON(freed == NUM_TCB);
if (tx_ring->used <= NUM_TCB / 3)
if (tx_ring->used >= NUM_TCB - 1 && !netif_queue_stopped(netdev))
if (tx_ring->used >= NUM_TCB)