aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorKuniyuki Iwashima <kuniyu@google.com>2026-10-03 21:23:17 +0000
committerJakub Kicinski <kuba@kernel.org>2026-10-07 16:07:03 -0700
commit616b2143f901435fa9f01c8be6e3baff2290196a (patch)
tree1015119649fd6bdcc97d5f0f9e3c64c65d96baf7 /scripts/Makefile.thinlto
parentipv4: Add wrappers for neigh_lookup() and neigh_create(). (diff)
ipv6: Add wrappers for neigh_lookup() and (__)?neigh_create().
neigh_lookup() accepts struct neigh_table *tbl and struct net_device *dev, and both of them must exist in the same netns. It is error-prone to require callers to fetch a netns and get neigh_table, which might belong to a different netns than dev_net(dev). Let's add IPv6-specific wrappers for neigh_lookup() and (__)?neigh_create() that always fetch netns from dev. Similar to IPv4, we do not add wrappers for __neigh_lookup() since 3 out of 4 users call it with create=1, which should be simply written as neigh_lookup() and neigh_create(). IPv6 has 3 callers of __neigh_create(want_ref=false), so ipv6_neigh_create_noref() is also added. Signed-off-by: Kuniyuki Iwashima <kuniyu@google.com> Reviewed-by: Fernando Fernandez Mancera <fmancera@suse.de> Reviewed-by: Ido Schimmel <idosch@nvidia.com> Link: https://patch.msgid.link/20261003212336.1304988-5-kuniyu@google.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions