summaryrefslogtreecommitdiff
path: root/include/linux/skbuff.h
diff options
context:
space:
mode:
authorXin Long <lucien.xin@gmail.com>2017-09-05 17:26:33 +0800
committerDavid S. Miller <davem@davemloft.net>2017-09-07 19:59:47 -0700
commit5c25f30c93fdc5bf25e62101aeaae7a4f9b421b3 (patch)
tree279eeebf47b9e8df01e361c372371d614995fe60 /include/linux/skbuff.h
parent80532384af4ccb6d6cc965fa9232aaa2c456362c (diff)
downloadlwn-5c25f30c93fdc5bf25e62101aeaae7a4f9b421b3.tar.gz
lwn-5c25f30c93fdc5bf25e62101aeaae7a4f9b421b3.zip
ip6_gre: update mtu properly in ip6gre_err
Now when probessing ICMPV6_PKT_TOOBIG, ip6gre_err only subtracts the offset of gre header from mtu info. The expected mtu of gre device should also subtract gre header. Otherwise, the next packets still can't be sent out. Jianlin found this issue when using the topo: client(ip6gre)<---->(nic1)route(nic2)<----->(ip6gre)server and reducing nic2's mtu, then both tcp and sctp's performance with big size data became 0. This patch is to fix it by also subtracting grehdr (tun->tun_hlen) from mtu info when updating gre device's mtu in ip6gre_err(). It also needs to subtract ETH_HLEN if gre dev'type is ARPHRD_ETHER. Reported-by: Jianlin Shi <jishi@redhat.com> Signed-off-by: Xin Long <lucien.xin@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/skbuff.h')
0 files changed, 0 insertions, 0 deletions