virtio_net: return NETDEV_TX_BUSY instead of queueing an extra skb.
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 24 Sep 2009 15:59:18 +0000 (09:59 -0600)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 24 Sep 2009 00:29:19 +0000 (09:59 +0930)
commit8958f574dbe7e41cc54df0df1accc861bb9f6be8
treed1d88beb865bef3ce0547998151b0ef98d12cb81
parent2b5bbe3b8bee8b38bdc27dd9c0270829b6eb7eeb
virtio_net: return NETDEV_TX_BUSY instead of queueing an extra skb.

This effectively reverts 99ffc696d10b28580fe93441d627cf290ac4484c
"virtio: wean net driver off NETDEV_TX_BUSY".

The complexity of queuing an skb (setting a tasklet to re-xmit) is
questionable, especially once we get rid of the other reason for the
tasklet in the next patch.

If the skb won't fit in the tx queue, just return NETDEV_TX_BUSY.
This is frowned upon, so a followup patch uses a more complex solution.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Cc: Herbert Xu <herbert@gondor.apana.org.au>
drivers/net/virtio_net.c