]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_router: Make abort mechanism VR-aware
authorIdo Schimmel <idosch@mellanox.com>
Fri, 10 Mar 2017 07:53:43 +0000 (08:53 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 10 Mar 2017 17:36:06 +0000 (09:36 -0800)
commit56c5dedaacdf2238972ce414120b72edee98cc5e
tree9ddca0bb5ff2420cdb00f4af763a7ca22a7278aa
parent32a2b1281517f73694f8a7241214592036692108
mlxsw: spectrum_router: Make abort mechanism VR-aware

When the abort mechanism is invoked it binds the first virtual router
(VR) to an LPM tree and inserts a default route to direct packets to the
CPU.

With VRFs, we can have router interfaces (RIFs) bound to multiple VRs,
so we need to make sure packets are trapped from all VRs and not just
the first one.

Upon abort invocation, bind all active VRs to the same LPM tree and
insert a default route in each.

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