]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: router: Enable neighbors to be created on stacked devices
authorYotam Gigi <yotamg@mellanox.com>
Wed, 24 Aug 2016 09:18:52 +0000 (11:18 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Aug 2016 16:39:04 +0000 (09:39 -0700)
commit51848e2398c44605fba5c3ad9f71f1a05064711b
treefe20e8ee1a4003617bcd8c37c0fc2ea3b7edf868
parent536d8004a55b179afc443aad86c6268a76f434ee
mlxsw: router: Enable neighbors to be created on stacked devices

Make the function mlxsw_router_neigh_construct search the rif according
to the neighbour dev other than the dev that was passed to the ndo, thus
allowing creating neigbhours upon stacked devices.

Fixes: f986158bc93b ("mlxsw: spectrum_router: Add private neigh table")
Signed-off-by: Yotam Gigi <yotamg@mellanox.com>
Reviewed-by: Ido Schimmel <idosch@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_router.c