summaryrefslogtreecommitdiffstats
path: root/fs/binfmt_aout.c
diff options
context:
space:
mode:
authorXin Long <lucien.xin@gmail.com>2017-11-11 12:06:50 +0100
committerDavid S. Miller <davem@davemloft.net>2017-11-13 02:44:05 +0100
commitfe1a4ca0a2b7884672661284666a0b8c183b0b1e (patch)
tree8a775ed43e63751f6161569085c82395fcb966cc /fs/binfmt_aout.c
parentip6_gre: add the process for redirect in ip6gre_err (diff)
downloadlinux-fe1a4ca0a2b7884672661284666a0b8c183b0b1e.tar.xz
linux-fe1a4ca0a2b7884672661284666a0b8c183b0b1e.zip
ip6_gre: process toobig in a better way
Now ip6gre processes toobig icmp packet by setting gre dev's mtu in ip6gre_err, which would cause few things not good: - It couldn't set mtu with dev_set_mtu due to it's not in user context, which causes route cache and idev->cnf.mtu6 not to be updated. - It has to update sk dst pmtu in tx path according to gredev->mtu for ip6gre, while it updates pmtu again according to lower dst pmtu in ip6_tnl_xmit. - To change dev->mtu by toobig icmp packet is not a good idea, it should only work on pmtu. This patch is to process toobig by updating the lower dst's pmtu, as later sk dst pmtu will be updated in ip6_tnl_xmit, the same way as in ip4gre. Note that gre dev's mtu will not be updated any more, it doesn't make any sense to change dev's mtu after receiving a toobig packet. Signed-off-by: Xin Long <lucien.xin@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'fs/binfmt_aout.c')
0 files changed, 0 insertions, 0 deletions