mirror of
https://github.com/torvalds/linux.git
synced 2024-11-18 18:11:56 +00:00
mlxsw: spectrum_router: Do not check VRF MAC address
Commit74bc993974
("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:74bc993974
("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>
This commit is contained in:
parent
b442fed1b7
commit
972fae683c
@ -6781,7 +6781,7 @@ static int mlxsw_sp_router_port_check_rif_addr(struct mlxsw_sp *mlxsw_sp,
|
||||
/* A RIF is not created for macvlan netdevs. Their MAC is used to
|
||||
* populate the FDB
|
||||
*/
|
||||
if (netif_is_macvlan(dev))
|
||||
if (netif_is_macvlan(dev) || netif_is_l3_master(dev))
|
||||
return 0;
|
||||
|
||||
for (i = 0; i < MLXSW_CORE_RES_GET(mlxsw_sp->core, MAX_RIFS); i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user