net/mlx4_en: remove NETDEV_TX_BUSY
authorEric Dumazet <edumazet@google.com>
Mon, 6 Oct 2014 16:30:35 +0000 (09:30 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 7 Oct 2014 17:20:39 +0000 (13:20 -0400)
commitfe971b95c22578456ff7198537827841c726d3f7
tree8819ad6ad894239f2e5f1faad4dc3c21a592c34c
parent377421662a1739de5ccb71220a0b10a300addbd8
net/mlx4_en: remove NETDEV_TX_BUSY

Drivers should avoid NETDEV_TX_BUSY as much as possible.

They should stop the tx queue before qdisc even tries to push another
packet, to avoid requeues.

For a driver supporting skb->xmit_more, this is likely to be a prereq
anyway, otherwise we could have a tx deadlock : We need to force a
doorbell if TX ring is full.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Amir Vadai <amirv@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_tx.c