diff options
author | Xin Long <[email protected]> | 2017-11-11 19:06:50 +0800 |
---|---|---|
committer | David S. Miller <[email protected]> | 2017-11-13 10:44:05 +0900 |
commit | fe1a4ca0a2b7884672661284666a0b8c183b0b1e (patch) | |
tree | 8a775ed43e63751f6161569085c82395fcb966cc /lib/mpi/mpiutil.c | |
parent | 929fc0327569aa745c9c3cb68a213c22fad3f3f9 (diff) |
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions