diff options
| author | 2026-10-03 21:23:18 +0000 | |
|---|---|---|
| committer | 2026-10-07 16:07:03 -0700 | |
| commit | 98071355ffc9ccbcd63cddc83a98250524eb1526 (patch) | |
| tree | 3d5db8691bb67b4b43e9a6624a3f2135be238a4b /scripts/Makefile.thinlto | |
| parent | ipv6: Add wrappers for neigh_lookup() and (__)?neigh_create(). (diff) | |
mlxsw: spectrum: Resolve neigh_table right before neigh_lookup().
We will replace neigh_lookup() and neigh_create() with
IPv4/IPv6-specific helpers.
mlxsw has two paths where neigh_table is fetched in advance
and passed down to a function which calls neigh_lookup() and
neigh_create().
To keep the changes simple, let's prepare them beforehand
by delaying the neigh_table resolution until right before
neigh_lookup().
struct mlxsw_sp_nexthop caches neigh_tbl, so it is replaced with
family, and a new helper, mlxsw_sp_nexthop_neigh_lookup(),
resolves neigh_table and calls neigh_lookup() and neigh_create().
Similarly, mlxsw_sp_span_entry_gretap[46]_parms() now pass family
to mlxsw_sp_span_dmac() to resolve neigh_table there just before
neigh_lookup() and neigh_create().
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-6-kuniyu@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
