mlxsw: spectrum_fid: Use 'fid->fid_offset' when setting VNI
authorAmit Cohen <amcohen@nvidia.com>
Tue, 21 Jun 2022 08:33:44 +0000 (11:33 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 22 Jun 2022 11:56:58 +0000 (12:56 +0100)
commit784763e59225c3baf7d97fbcda5bc7bb0dc77380
treef8ea4c0bcbcd13aa36a19610804c995a82700130
parent736bf371d2d460c9ded1073e8490be1d294ee177
mlxsw: spectrum_fid: Use 'fid->fid_offset' when setting VNI

The previous patch added 'fid_offset' field to FID structure. Now, this
field can be used when VNI is set using SFMR register. Currently
'fid_offset' is set to zero, instead, use the new field which is now set
to zero and in the future will be changed.

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