]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_fid: Pass FID structure to mlxsw_sp_fid_op()
authorAmit Cohen <amcohen@nvidia.com>
Thu, 23 Jun 2022 07:17:33 +0000 (10:17 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 24 Jun 2022 11:32:33 +0000 (12:32 +0100)
commitda951d28f37e4c356215bccb5b386555e3be8a64
treeafa31e495f445d6d1850ddced55356da08ef3fe8
parent393266eb3bb7a49cbba1a3d8d938e5289619fafd
mlxsw: spectrum_fid: Pass FID structure to mlxsw_sp_fid_op()

The function gets several arguments derived from the FID structure
itself. In the future, it will need to be extended to configure
additional FID attributes.

Prepare for that change and reduce the arguments list by passing the FID
structure itself.

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