mlxsw: spectrum_router: Don't abort on l3mdev rules
authorIdo Schimmel <idosch@mellanox.com>
Thu, 16 Mar 2017 08:08:20 +0000 (09:08 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 16 Mar 2017 17:18:35 +0000 (10:18 -0700)
commitc7f6e6658b771c64a07b69852ac4362a8e781ab6
tree629ec986fb2aedbe07005f0aee5dd4b5eefe252d
parent3d70e458be3af878216f8c97fb4c0926cc003e31
mlxsw: spectrum_router: Don't abort on l3mdev rules

Now that port netdevs can be enslaved to a VRF master we need to make
sure the device's routing tables won't be flushed upon the insertion of
a l3mdev rule.

Note that we assume the notified l3mdev rule is a simple rule as used by
the VRF master. We don't check for the presence of other selectors such
as 'iif' and 'oif'.

Signed-off-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