“4dc7a0bbeb6882ad665e588e82fabe5bb4645f2f”上不存在“arch/sparc/include/asm/system.h”
提交 51af96b5 编写于 作者: Y Yotam Gigi 提交者: David S. Miller

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: 6cf3c971 ("mlxsw: spectrum_router: Add private neigh table")
Signed-off-by: NYotam Gigi <yotamg@mellanox.com>
Reviewed-by: NIdo Schimmel <idosch@mellanox.com>
Signed-off-by: NJiri Pirko <jiri@mellanox.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 f888f587
...@@ -657,7 +657,7 @@ int mlxsw_sp_router_neigh_construct(struct net_device *dev, ...@@ -657,7 +657,7 @@ int mlxsw_sp_router_neigh_construct(struct net_device *dev,
return 0; return 0;
} }
r = mlxsw_sp_rif_find_by_dev(mlxsw_sp, dev); r = mlxsw_sp_rif_find_by_dev(mlxsw_sp, n->dev);
if (WARN_ON(!r)) if (WARN_ON(!r))
return -EINVAL; return -EINVAL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册