]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_nve: Add support for VXLAN on Spectrum-2
authorIdo Schimmel <idosch@mellanox.com>
Wed, 23 Jan 2019 14:32:57 +0000 (14:32 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 Jan 2019 17:28:27 +0000 (09:28 -0800)
commite96fefc708995a3ba112f85be5a629174f7cb77a
tree2ba9578f4ba7cc056397d909756edb4ee7e99149
parent8a777e624c5052336f061c8c8b281d8a1466454b
mlxsw: spectrum_nve: Add support for VXLAN on Spectrum-2

Spectrum-1 and Spectrum-2 are largely backward compatible with regards
to VXLAN. One difference - as explained in previous patch - is that an
underlay RIF needs to be specified instead of an underlay VR during NVE
initialization. This is accomplished by calling the relevant function
that returns the index of such a RIF based on the table ID
(RT_TABLE_MAIN) where underlay look up occurs.

The second difference is that VXLAN learning (snooping) is controlled
via a different register (TNPC).

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_nve.h
drivers/net/ethernet/mellanox/mlxsw/spectrum_nve_vxlan.c