diff options
author | Arkadi Sharshevsky <arkadis@mellanox.com> | 2017-08-26 09:35:39 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-08-29 01:41:15 +0300 |
commit | 18fed7e15d8fd38747819ee8e66c8771e0281226 (patch) | |
tree | ae2185506c426095346e050d13697667947dc828 | |
parent | 10bfec0a2b4b9d3b81e09b43266ebe370bb17760 (diff) | |
download | linux-18fed7e15d8fd38747819ee8e66c8771e0281226.tar.xz |
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>
-rw-r--r-- | drivers/net/ethernet/mellanox/mlxsw/spectrum_dpipe.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum_dpipe.c b/drivers/net/ethernet/mellanox/mlxsw/spectrum_dpipe.c index 3c8599f14bff..3ea13148ed05 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/spectrum_dpipe.c +++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum_dpipe.c @@ -516,6 +516,9 @@ start_again: 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; |