[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220615173516.29c80c96@kernel.org>
Date: Wed, 15 Jun 2022 17:35:16 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: Subash Abhinov Kasiviswanathan <quic_subashab@...cinc.com>
Cc: <davem@...emloft.net>, <dsahern@...nel.org>,
<yoshfuji@...ux-ipv6.org>, <netdev@...r.kernel.org>,
<sbrivio@...hat.com>, Kaustubh Pandey <quic_kapandey@...cinc.com>,
Sean Tranchetti <quic_stranche@...cinc.com>, maze@...gle.com
Subject: Re: [PATCH net v2 1/2] ipv6: Honor route mtu if it is within limit
of dev mtu
On Mon, 13 Jun 2022 23:01:54 -0600 Subash Abhinov Kasiviswanathan wrote:
> When netdevice MTU is increased via sysfs, NETDEV_CHANGEMTU is raised.
>
> addrconf_notify -> rt6_mtu_change -> rt6_mtu_change_route ->
> fib6_nh_mtu_change
>
> As part of handling NETDEV_CHANGEMTU notification we land up on a
> condition where if route mtu is less than dev mtu and route mtu equals
> ipv6_devconf mtu, route mtu gets updated.
>
> Due to this v6 traffic end up using wrong MTU then configured earlier.
> This commit fixes this by removing comparison with ipv6_devconf
> and updating route mtu only when it is greater than incoming dev mtu.
>
> This can be easily reproduced with below script:
> pre-condition:
> device up(mtu = 1500) and route mtu for both v4 and v6 is 1500
>
> test-script:
> ip route change 192.168.0.0/24 dev eth0 src 192.168.0.1 mtu 1400
> ip -6 route change 2001::/64 dev eth0 metric 256 mtu 1400
> echo 1400 > /sys/class/net/eth0/mtu
> ip route change 192.168.0.0/24 dev eth0 src 192.168.0.1 mtu 1500
> echo 1500 > /sys/class/net/eth0/mtu
CC maze, please add him if there is v3
I feel like the problem is with the fact that link mtu resets protocol
MTUs. Nothing we can do about that, so why not set link MTU to 9k (or
whatever other quantification of infinity there is) so you don't have
to touch it as you discover the MTU for v4 and v6?
My worry is that the tweaking of the route MTU update heuristic will
have no end.
Stefano, does that makes sense or you think the change is good?
Powered by blists - more mailing lists