summaryrefslogtreecommitdiffstats
path: root/net/wireless
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2013-11-08 03:32:06 +0100
committerDavid S. Miller <davem@davemloft.net>2013-11-08 08:07:59 +0100
commitdcd607718385d02ce3741de225927a57f528f93b (patch)
tree48dcb0b8e4a43c92d9ca90bfb4fdcb4482af159f /net/wireless
parentMerge branch 'pskb_put' (diff)
downloadlinux-dcd607718385d02ce3741de225927a57f528f93b.tar.xz
linux-dcd607718385d02ce3741de225927a57f528f93b.zip
inet: fix a UFO regression
While testing virtio_net and skb_segment() changes, Hannes reported that UFO was sending wrong frames. It appears this was introduced by a recent commit : 8c3a897bfab1 ("inet: restore gso for vxlan") The old condition to perform IP frag was : tunnel = !!skb->encapsulation; ... if (!tunnel && proto == IPPROTO_UDP) { So the new one should be : udpfrag = !skb->encapsulation && proto == IPPROTO_UDP; ... if (udpfrag) { Initialization of udpfrag must be done before call to ops->callbacks.gso_segment(skb, features), as skb_udp_tunnel_segment() clears skb->encapsulation (We want udpfrag to be true for UFO, false for VXLAN) With help from Alexei Starovoitov Reported-by: Hannes Frederic Sowa <hannes@stressinduktion.org> Signed-off-by: Eric Dumazet <edumazet@google.com> Cc: Alexei Starovoitov <ast@plumgrid.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/wireless')
0 files changed, 0 insertions, 0 deletions