mlxsw: spectrum_router: Configure matching local routes for NVE decap
authorIdo Schimmel <idosch@mellanox.com>
Wed, 17 Oct 2018 08:53:19 +0000 (08:53 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Oct 2018 00:45:07 +0000 (17:45 -0700)
commit4cf178d7b9dc3c821ccc16b7acf9937b95a2b837
tree55fcdd87158a4da6c0f901ade6b5f77de68c2b20
parent498790befb5f68213d418c2f064ca21168fdc8da
mlxsw: spectrum_router: Configure matching local routes for NVE decap

When a local route that matches the source IP of an offloaded NVE tunnel
is notified, the driver needs to program it to perform NVE decapsulation
instead of merely trapping packets to the CPU.

This patch complements "mlxsw: spectrum_router: Enable local routes
promotion to perform NVE decap" where existing local routes were
promoted to perform NVE decapsulation.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Reviewed-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c