]> git.baikalelectronics.ru Git - kernel.git/commit
net: ip: push gso skb forwarding handling down the stack
authorFlorian Westphal <fw@strlen.de>
Mon, 5 May 2014 13:00:43 +0000 (15:00 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 May 2014 19:49:07 +0000 (15:49 -0400)
commitc8b6e92431b18bc05a5b42ce237043465c871156
treee86e1e97d344ddad515a81e6003b6ed330176d6e
parent1ba78834a042f39f21523ccc6b29f4a7f5b5f891
net: ip: push gso skb forwarding handling down the stack

Doing the segmentation in the forward path has one major drawback:

When using virtio, we may process gso udp packets coming
from host network stack.  In that case, netfilter POSTROUTING
will see one packet with udp header followed by multiple ip
fragments.

Delay the segmentation and do it after POSTROUTING invocation
to avoid this.

Fixes: d3d6171ec04 ("net: ip, ipv6: handle gso skbs in forwarding path")
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_forward.c
net/ipv4/ip_output.c