]> git.baikalelectronics.ru Git - kernel.git/commit
net: orphan frags on receive
authorMichael S. Tsirkin <mst@redhat.com>
Fri, 20 Jul 2012 09:23:17 +0000 (09:23 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 22 Jul 2012 19:39:33 +0000 (12:39 -0700)
commitae2ff9c72d8067abcfdd45e39b2edfbb93416661
tree02cecc2d69f820ac082578daa228cdbe2a4503dd
parent901d34e17e0f3bf61fc6de2658bc3e6dab56e581
net: orphan frags on receive

zero copy packets are normally sent to the outside
network, but bridging, tun etc might loop them
back to host networking stack. If this happens
destructors will never be called, so orphan
the frags immediately on receive.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c