mlxsw: spectrum_nve_vxlan: Make VxLAN flags check per address family
authorAmit Cohen <amcohen@nvidia.com>
Tue, 14 Dec 2021 14:25:46 +0000 (16:25 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 15 Dec 2021 15:05:44 +0000 (15:05 +0000)
commit720d683cbe8b14bbdb00ea65354a77a8e80a2844
tree83a344b9c8954008b590f68d45df069b8afa013d
parentcf42911523e02026cb56d329e584ae5923e94ba1
mlxsw: spectrum_nve_vxlan: Make VxLAN flags check per address family

As part of 'can_offload' checks, there is a check of VxLAN flags.

The supported flags for IPv6 VxLAN will be different from the existing
flags because of some limitations.

As preparation for IPv6 underlay support, make this check per address
family.

Signed-off-by: Amit Cohen <amcohen@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_nve_vxlan.c