]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_router: Only handle IPv4 and IPv6 events
authorIdo Schimmel <idosch@mellanox.com>
Fri, 15 Sep 2017 13:31:07 +0000 (15:31 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 16 Sep 2017 16:21:43 +0000 (09:21 -0700)
commitf1bc5544200de259f3812f4809f42e272027df1c
treec2a5c36e03f8143dceca8b40d4ff60ed795aeddc
parentdb38ccba1a8b1f68293ef1f2844d40a6b1915e86
mlxsw: spectrum_router: Only handle IPv4 and IPv6 events

The driver doesn't support events from address families other than IPv4
and IPv6, so ignore them. Otherwise, we risk queueing a work item before
it's initialized.

This can happen in case a VRF is configured when MROUTE_MULTIPLE_TABLES
is enabled, as the VRF driver will try to add an l3mdev rule for the
IPMR family.

Fixes: e8a039c3836d ("mlxsw: spectrum_router: Don't ignore IPv6 notifications")
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Reported-by: Andreas Rammhold <andreas@rammhold.de>
Reported-by: Florian Klink <flokli@flokli.de>
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