mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-07 16:17:41 -04:00
mlxsw: spectrum_dpipe: Fix host table dump
During the neighbor traversal the neighbors from different families
should be ignored.
Fixes: c58035a74aba ("mlxsw: spectrum_dpipe: Add support for IPv4 host table dump")
Signed-off-by: Arkadi Sharshevsky <arkadis@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
10bfec0a2b
commit
18fed7e15d
@@ -516,6 +516,9 @@ mlxsw_sp_dpipe_table_host_entries_get(struct mlxsw_sp *mlxsw_sp,
|
||||
|
||||
rif_neigh_count = 0;
|
||||
mlxsw_sp_rif_neigh_for_each(neigh_entry, rif) {
|
||||
if (mlxsw_sp_neigh_entry_type(neigh_entry) != type)
|
||||
continue;
|
||||
|
||||
if (rif_neigh_count < rif_neigh_skip)
|
||||
goto skip;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user