summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYotam Gigi2017-09-27 08:23:22 +0200
committerDavid S. Miller2017-09-27 20:33:28 +0200
commit664375e9567b5eeece8d9ebf85eaf5107cab382d (patch)
treec3a44a2af57194c8b5a5847bd880e27d1e285c2e
parentmlxsw: spectrum: Notify multicast router on RIF MTU changes (diff)
downloadkernel-qcow2-linux-664375e9567b5eeece8d9ebf85eaf5107cab382d.tar.gz
kernel-qcow2-linux-664375e9567b5eeece8d9ebf85eaf5107cab382d.tar.xz
kernel-qcow2-linux-664375e9567b5eeece8d9ebf85eaf5107cab382d.zip
mlxsw: spectrum: router: Don't ignore IPMR notifications
Make the Spectrum router logic not ignore the RTNL_FAMILY_IPMR FIB notifications. Past commits added the IPMR VIF and MFC add/del notifications via the fib_notifier chain. In addition, a code for handling these notifications in the Spectrum router logic was added. Make the Spectrum router logic not ignore these notifications and forward the requests to the Spectrum multicast router offloading logic. 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>
-rw-r--r--drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c b/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
index dbd9c196fcfb..ef4b86b3aa9b 100644
--- a/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
+++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
@@ -5159,7 +5159,8 @@ static int mlxsw_sp_router_fib_event(struct notifier_block *nb,
struct mlxsw_sp_router *router;
if (!net_eq(info->net, &init_net) ||
- (info->family != AF_INET && info->family != AF_INET6))
+ (info->family != AF_INET && info->family != AF_INET6 &&
+ info->family != RTNL_FAMILY_IPMR))
return NOTIFY_DONE;
fib_work = kzalloc(sizeof(*fib_work), GFP_ATOMIC);