virtio_net: skb_orphan() and nf_reset() in xmit path.
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 24 Sep 2009 15:59:17 +0000 (09:59 -0600)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 24 Sep 2009 00:29:18 +0000 (09:59 +0930)
commit2b5bbe3b8bee8b38bdc27dd9c0270829b6eb7eeb
treeae10e097de665aba47306799e9ab5ef44776e1e1
parenta724eada8c2a7b62463b73ccf73fd0bb6e928aeb
virtio_net: skb_orphan() and nf_reset() in xmit path.

The complex transmit free logic was introduced to avoid hangs on
removing the ip_conntrack module and also because drivers aren't
generally supposed to keep stale skbs for unbounded times.

After some debate, it was decided that while doing skb_orphan()
generally is a rat's nest, we can do it in this driver.  Following
patches take advantage of this.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/net/virtio_net.c