mlxsw: spectrum_dpipe: Fix host table dump
authorArkadi Sharshevsky <arkadis@mellanox.com>
Sat, 26 Aug 2017 06:35:39 +0000 (08:35 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Aug 2017 22:41:15 +0000 (15:41 -0700)
commit18fed7e15d8fd38747819ee8e66c8771e0281226
treeae2185506c426095346e050d13697667947dc828
parent10bfec0a2b4b9d3b81e09b43266ebe370bb17760
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>
drivers/net/ethernet/mellanox/mlxsw/spectrum_dpipe.c