Re: [PATCH net-next] net: ipv6: add IFLA_RA_MTU to expose mtu value in the RA message

From: David Ahern
Date: Thu Jul 29 2021 - 13:28:38 EST


On 7/29/21 9:42 AM, Rocco Yue wrote:
> Because the purpose of this patch is for userspace to correctly read the
> ra_mtu value of different network device, if the DEVCONF is completely dropped,
> does that mean I can add the "ra_mtu" member in the "struct net_device" .

good point. IFLA is the wrong attribute. It should be IFLA_INET6_RA_MTU,
stored in inet6_dev and added to the link message in
inet6_fill_ifla6_attrs.