mlxsw: spectrum_fid: Pass FID structure to __mlxsw_sp_fid_port_vid_map()
authorAmit Cohen <amcohen@nvidia.com>
Thu, 23 Jun 2022 07:17:34 +0000 (10:17 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 24 Jun 2022 11:32:33 +0000 (12:32 +0100)
commit2c091048015d00bc19756c6ec5f930f4b58c091b
treecbe0fe3f2423722501f6bd04b10bfcf7b50094ec
parent97a2ae0f0c2389fa7d998a67c255746d95350107
mlxsw: spectrum_fid: Pass FID structure to __mlxsw_sp_fid_port_vid_map()

The function configures {Port, VID}->FID classification entries using
the SVFA register. In the unified bridge model such entries will need to
be programmed with an ingress RIF parameter, which is a FID attribute.

As a preparation for this change, pass the FID structure itself to the
function.

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