]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum: mr: Support trap-and-forward routes
authorYotam Gigi <yotamg@mellanox.com>
Tue, 3 Oct 2017 07:58:12 +0000 (09:58 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 3 Oct 2017 17:06:30 +0000 (10:06 -0700)
commit18f894632ac4a0be2291ab91fe39f21ecf7cb43c
treeb20a5d21cf2e7c9dc44de3bfb3788289ff6c32d3
parentfd3cf9e8dbcb85620d1aa96a8c279978b9e1dfa1
mlxsw: spectrum: mr: Support trap-and-forward routes

Add the support of trap-and-forward route action in the multicast routing
offloading logic. A route will be set to trap-and-forward action if one (or
more) of its output interfaces is not offload-able, i.e. does not have a
valid Spectrum RIF.

This way, a route with mixed output VIFs list, which contains both
offload-able and un-offload-able devices can go through partial offloading
in hardware, and the rest will be done in the kernel ipmr module.

Signed-off-by: Yotam Gigi <yotamg@mellanox.com>
Reviewed-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_mr.c