]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit4ee70efab68d2e99cfe9f32c9acc30b5a404d490
tree2ba9578f4ba7cc056397d909756edb4ee7e99149
parent3179a56f6ed9341c3f7ca451039b9d2f99c48ab4
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