]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum: Reduce dependency between bridge and router code
authorIdo Schimmel <idosch@mellanox.com>
Mon, 17 Feb 2020 14:29:35 +0000 (16:29 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Feb 2020 22:42:53 +0000 (14:42 -0800)
commitf90cadc0351652c90f22883f91d6ebc6a34c0e43
treec5e2cca1af383d084c07eb57a09387f830b9cbdc
parent3756026e2256c0ea4bb6ee855605e6361d38bccc
mlxsw: spectrum: Reduce dependency between bridge and router code

Commit 72308ca5fc7a ("mlxsw: spectrum_router: Do not force specific
configuration order") added a call from the routing code to the bridge
code in order to handle the case where VNI should be set on a FID
following the joining of the router port to the FID.

This is no longer required, as previous patches made VXLAN devices
explicitly take a reference on the FID and set VNI on it.

Therefore, remove the unnecessary call and simply have the RIF take a
reference on the FID without checking if VNI should also be set on it.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum.h
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c