]> git.baikalelectronics.ru Git - kernel.git/commit
IP_GRE: Fix IP-Identification.
authorPravin B Shelar <pshelar@nicira.com>
Fri, 22 Feb 2013 07:30:30 +0000 (07:30 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 Feb 2013 20:47:41 +0000 (15:47 -0500)
commitb92c2f282bbcd26c7f9ecd202ac5c96544b5f2d0
tree61a662927a56a72ae7d567728edae1ce2bc9c8c5
parentcc74f7aa70e22f04cf8ed8bb4090948f6bd74b1e
IP_GRE: Fix IP-Identification.

GRE-GSO generates ip fragments with id 0,2,3,4... for every
GSO packet, which is not correct. Following patch fixes it
by setting ip-header id unique id of fragments are allowed.
As Eric Dumazet suggested it is optimized by using inner ip-header
whenever inner packet is ipv4.

Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ipip.h
net/ipv4/af_inet.c
net/ipv4/ip_gre.c