]> www.infradead.org Git - users/jedix/linux-maple.git/commit
rtnetlink: switch rtnl_fdb_dump() to for_each_netdev_dump()
authorEric Dumazet <edumazet@google.com>
Mon, 9 Dec 2024 10:07:46 +0000 (10:07 +0000)
committerJakub Kicinski <kuba@kernel.org>
Wed, 11 Dec 2024 02:32:32 +0000 (18:32 -0800)
commit53970a05f799087e2dd2005973609188504e7fcc
treeef0fe2bc48bb4ee31b528e44d12983f8a2349b84
parentbe325f08c432ae5ac6d6594d163e1899cdf202df
rtnetlink: switch rtnl_fdb_dump() to for_each_netdev_dump()

This is the last netdev iterator still using net->dev_index_head[].

Convert to modern for_each_netdev_dump() for better scalability,
and use common patterns in our stack.

Following patch in this series removes the pad field
in struct ndo_fdb_dump_context.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Link: https://patch.msgid.link/20241209100747.2269613-3-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/linux/rtnetlink.h
net/core/rtnetlink.c