]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
mlxsw: spectrum_nve: Breakout common code to a common function
authorIdo Schimmel <idosch@mellanox.com>
Wed, 23 Jan 2019 14:32:56 +0000 (14:32 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 Jan 2019 17:28:27 +0000 (09:28 -0800)
commit3179a56f6ed9341c3f7ca451039b9d2f99c48ab4
tree0ff986635c3b849c2f4eb8b8dd89cdcd8183327f
parenteff42aa9986ec2c4ca7d778f2f04556f5b9e722b
mlxsw: spectrum_nve: Breakout common code to a common function

The configuration of a VXLAN tunnel in Spectrum-1 and Spectrum-2 is
largely the same. To avoid code duplication, breakout the common parts
to a common function that can be invoked from the ASIC-specific code.

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_vxlan.c