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)
commitc7ba65d7b64984ff371cb5630b36af23506c50d5
treee86e1e97d344ddad515a81e6003b6ed330176d6e
parent418a31561d594a2b636c1e2fa94ecd9e1245abb1
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: fe6cc55f3a9 ("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