mlxsw: spectrum: Publish mlxsw_sp_ethtype_to_sver_type()
authorAmit Cohen <amcohen@nvidia.com>
Tue, 8 Dec 2020 09:22:47 +0000 (11:22 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 8 Dec 2020 23:45:56 +0000 (15:45 -0800)
commit4418096e843e062e95b8e9fe4d75e2b34c92f76c
tree2d4b10c654524b7ea7980d458ebd4a0c658ec76c
parent49d18964e922b5b4a4a6cc94d8344a3e3a45dead
mlxsw: spectrum: Publish mlxsw_sp_ethtype_to_sver_type()

Declare mlxsw_sp_ethtype_to_sver_type() in spectrum.h to enable using it
in other files.

It will be used in the next patch to map between EtherType and the
relevant value configured by SVER register.

Signed-off-by: Amit Cohen <amcohen@nvidia.com>
Reviewed-by: Petr Machata <petrm@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.c
drivers/net/ethernet/mellanox/mlxsw/spectrum.h