]> 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)
commitdd34c18c381d79d6601eaf4844c0d1dd61022f6d
treee86e1e97d344ddad515a81e6003b6ed330176d6e
parent7689f44df12346a8de5cb36f3e29d9d51f742eb9
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: d32759017c8 ("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