]> Pileus Git - ~andy/linux/commit
inet: restore gso for vxlan
authorEric Dumazet <edumazet@google.com>
Mon, 28 Oct 2013 01:18:16 +0000 (18:18 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Oct 2013 04:23:06 +0000 (00:23 -0400)
commit8c3a897bfab10f68f90252440bb29e6749a7312a
treeba8243600b6a8cd7b7fa5679f2405873aae70aea
parent1f2cd845d3827412e82bf26dde0abca332ede402
inet: restore gso for vxlan

Alexei reported a performance regression on vxlan, caused
by commit 3347c9602955 "ipv4: gso: make inet_gso_segment() stackable"

GSO vxlan packets were not properly segmented, adding IP fragments
while they were not expected.

Rename 'bool tunnel' to 'bool encap', and add a new boolean
to express the fact that UDP should be fragmented.
This fragmentation is triggered by skb->encapsulation being set.

Remove a "skb->encapsulation = 1" added in above commit,
as its not needed, as frags inherit skb->frag from original
GSO skb.

Reported-by: Alexei Starovoitov <ast@plumgrid.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Tested-by: Alexei Starovoitov <ast@plumgrid.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/af_inet.c