]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_fid: Implement missing operations for rFID and dummy FID
authorAmit Cohen <amcohen@nvidia.com>
Tue, 21 Jun 2022 08:33:45 +0000 (11:33 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 22 Jun 2022 11:56:58 +0000 (12:56 +0100)
commit7b1c524138f2f05aa9b4d86f7e5140a4125f3c42
tree31beaa3bfab7d31a13c549f9e574f1c7eca5bfc2
parentdd09d1934a28299b7eb142c5a8bd6f02a00c0c65
mlxsw: spectrum_fid: Implement missing operations for rFID and dummy FID

rFID and dummy FID do not support FID->VNI mapping. Currently, these
families do not implement the vni_{set, clear}() operations. Instead, there
is a check if these functions are implemented.

Similarly, 'SFMR.nve_tunnel_flood_ptr' is not relevant for rFID and dummy
FID, therefore, these families do not implement
nve_flood_index_{set, clear}().

Align the behavior to other unsupported operations, implement the functions
and just return an error or warn. Then, checks like '!ops->vni_set' can be
removed.

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