]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc4511ba7ce75f35a06a5862141242ce381e363b6
treecbe0fe3f2423722501f6bd04b10bfcf7b50094ec
parentbe60a505a6aabc72219658581ff87e1af03f6968
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