[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20240613075922.1052ce99@kernel.org>
Date: Thu, 13 Jun 2024 07:59:22 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: Maciej Żenczykowski <maze@...gle.com>
Cc: Linux NetDev <netdev@...r.kernel.org>, Eric Dumazet
<edumazet@...gle.com>, Paolo Abeni <pabeni@...hat.com>, "David S. Miller"
<davem@...emloft.net>
Subject: Re: Some sort of netlink RTM_GET(ROUTE|RULE|NEIGH) regression(?) in
6.10-rc3 vs 6.9
On Thu, 13 Jun 2024 16:21:15 +0200 Maciej Żenczykowski wrote:
> Ok, I sent out 2 patches adding the flag in 3 more spots that are
> enough to get both tests working.
Thanks!
> The first in RTM_GETNEIGH seems obvious enough.
>
> $ git grep rtnl_register.*RTM_GETNEIGH,
> net/core/neighbour.c:3894: rtnl_register(PF_UNSPEC, RTM_GETNEIGH,
> neigh_get, neigh_dump_info,
> net/core/rtnetlink.c:6752: rtnl_register(PF_BRIDGE, RTM_GETNEIGH,
> rtnl_fdb_get, rtnl_fdb_dump, 0);
> net/mctp/neigh.c:331: rtnl_register_module(THIS_MODULE, PF_MCTP, RTM_GETNEIGH,
>
> but there is also PF_BRIDGE and PF_MCTP... (though obviously the test
> doesn't care)
> (and also RTM_GETNEIGHTBL...)
These weren't converted to the new way, so they will be okay.
> The RTM_GETRULE portion of the second one seems fine too:
>
> $ git grep rtnl_register.*RTM_GETRULE
> net/core/fib_rules.c:1296: rtnl_register(PF_UNSPEC, RTM_GETRULE,
> NULL, fib_nl_dumprule,
>
> but I'm less certain about the GET_ROUTE portion there-of... as
> there's a lot of hits:
>
> $ git grep rtnl_register.*RTM_GETROUTE
> net/can/gw.c:1293: ret = rtnl_register_module(THIS_MODULE,
> PF_CAN, RTM_GETROUTE,
> net/core/rtnetlink.c:6743: rtnl_register(PF_UNSPEC, RTM_GETROUTE,
> NULL, rtnl_dump_all, 0);
> net/ipv4/fib_frontend.c:1662: rtnl_register(PF_INET, RTM_GETROUTE,
> NULL, inet_dump_fib,
> net/ipv4/ipmr.c:3162: rtnl_register(RTNL_FAMILY_IPMR, RTM_GETROUTE,
> net/ipv4/route.c:3696: rtnl_register(PF_INET, RTM_GETROUTE,
> inet_rtm_getroute, NULL,
> net/ipv6/ip6_fib.c:2516: ret =
> rtnl_register_module(THIS_MODULE, PF_INET6, RTM_GETROUTE, NULL,
> net/ipv6/ip6mr.c:1394: err = rtnl_register_module(THIS_MODULE,
> RTNL_FAMILY_IP6MR, RTM_GETROUTE,
> net/ipv6/route.c:6737: ret = rtnl_register_module(THIS_MODULE,
> PF_INET6, RTM_GETROUTE,
> net/mctp/route.c:1481: rtnl_register_module(THIS_MODULE, PF_MCTP, RTM_GETROUTE,
> net/mpls/af_mpls.c:2755: rtnl_register_module(THIS_MODULE,
> PF_MPLS, RTM_GETROUTE,
> net/phonet/pn_netlink.c:304: rtnl_register_module(THIS_MODULE,
> PF_PHONET, RTM_GETROUTE,
>
> It seems like maybe v4 and both mr's should be changed too?
Didn't check MR, the v4 route dump has the flag already, AFAICS.
Powered by blists - more mailing lists