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)
commit1080e512d44d4f67b8beb8edf25a1bbcb1066dc7
tree02cecc2d69f820ac082578daa228cdbe2a4503dd
parent868eefeb17d40f6acde00ad8165a268529cf6d24
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