summaryrefslogtreecommitdiffstats
path: root/scripts/tags.sh
diff options
context:
space:
mode:
authorXin Long <lucien.xin@gmail.com>2017-10-01 22:00:55 +0800
committerDavid S. Miller <davem@davemloft.net>2017-10-01 22:30:32 -0700
commitc122fda271717f4fc618e0a31e833941fd5f1efd (patch)
tree3cb94ac33a0d66a34ddeaf8ba7aba32a43788518 /scripts/tags.sh
parent5513d08d29511c263c00933c00dd7a82fffda3c9 (diff)
downloadlinux-c122fda271717f4fc618e0a31e833941fd5f1efd.tar.gz
linux-c122fda271717f4fc618e0a31e833941fd5f1efd.tar.bz2
linux-c122fda271717f4fc618e0a31e833941fd5f1efd.zip
ip_gre: set tunnel hlen properly in erspan_tunnel_init
According to __gre_tunnel_init, tunnel->hlen should be set as the headers' length between inner packet and outer iphdr. It would be used especially to calculate a proper mtu when updating mtu in tnl_update_pmtu. Now without setting it, a bigger mtu value than expected would be updated, which hurts performance a lot. This patch is to fix it by setting tunnel->hlen with: tunnel->tun_hlen + tunnel->encap_hlen + sizeof(struct erspanhdr) Fixes: 84e54fe0a5ea ("gre: introduce native tunnel support for ERSPAN") Signed-off-by: Xin Long <lucien.xin@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'scripts/tags.sh')
0 files changed, 0 insertions, 0 deletions