]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8ee6e6d22836b3ede530a0e9fdb2ef2b706fe249
treeae10e097de665aba47306799e9ab5ef44776e1e1
parentad6e2cedab0d277575731c028a09f56f5c27a3ea
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