OSDN Git Service

mlxsw: spectrum_router: Do not check VRF MAC address
authorIdo Schimmel <idosch@mellanox.com>
Wed, 10 Apr 2019 06:58:15 +0000 (06:58 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 10 Apr 2019 18:57:08 +0000 (11:57 -0700)
commit972fae683cbad5cf348268e76abc6d55cfb3ba87
treeda2dbfb16a4f1e3d05183e2bd762fc87df0eed21
parentb442fed1b724af0de087912a5718ddde1b87acbb
mlxsw: spectrum_router: Do not check VRF MAC address

Commit 74bc99397438 ("mlxsw: spectrum_router: Veto unsupported RIF MAC
addresses") enabled the driver to veto router interface (RIF) MAC
addresses that it cannot support.

This check should only be performed for interfaces for which the driver
actually configures a RIF. A VRF upper is not one of them, so ignore it.

Without this patch it is not possible to set an IP address on the VRF
device and use it as a loopback.

Fixes: 74bc99397438 ("mlxsw: spectrum_router: Veto unsupported RIF MAC addresses")
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Reported-by: Alexander Petrovskiy <alexpe@mellanox.com>
Tested-by: Alexander Petrovskiy <alexpe@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c