diff mbox

[net-next] mlxsw: spectrum_router: Don't ignore IPv6 notifications

Message ID 20170721160523.23228-1-jiri@resnulli.us
State Not Applicable, archived
Delegated to: David Miller
Headers show

Commit Message

Jiri Pirko July 21, 2017, 4:05 p.m. UTC
From: Ido Schimmel <idosch@mellanox.com>

We now have all the necessary IPv6 infrastructure in place, so stop
ignoring these notifications.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
---
 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Ido Schimmel July 21, 2017, 5 p.m. UTC | #1
On Fri, Jul 21, 2017 at 06:05:23PM +0200, Jiri Pirko wrote:
> From: Ido Schimmel <idosch@mellanox.com>
> 
> We now have all the necessary IPv6 infrastructure in place, so stop
> ignoring these notifications.
> 
> Signed-off-by: Ido Schimmel <idosch@mellanox.com>
> Signed-off-by: Jiri Pirko <jiri@mellanox.com>

Dave, we sent the wrong patch. Please ignore.

Thanks
diff mbox

Patch

diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c b/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
index 9adb239..fa15f17 100644
--- a/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
+++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
@@ -3804,7 +3804,7 @@  static int mlxsw_sp_router_fib_event(struct notifier_block *nb,
 	struct fib_notifier_info *info = ptr;
 	struct mlxsw_sp_router *router;
 
-	if (!net_eq(info->net, &init_net) || info->family != AF_INET)
+	if (!net_eq(info->net, &init_net))
 		return NOTIFY_DONE;
 
 	fib_work = kzalloc(sizeof(*fib_work), GFP_ATOMIC);