mlxsw: use devlink helper to generate physical port name
authorJiri Pirko <jiri@mellanox.com>
Fri, 18 May 2018 07:29:04 +0000 (09:29 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 19 May 2018 20:30:39 +0000 (16:30 -0400)
commitec932fbda7ba6ac10dba59fd20c736be9a6976e4
treeeca9758fa6a05aa8500665c4e79f260b65671638
parentda077392486b2f87c384bc12b27a16b29620c5e4
mlxsw: use devlink helper to generate physical port name

Since devlink knows the info needed to generate the physical port name
in a generic way for all devlink users, use the helper to do the job.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/core.c
drivers/net/ethernet/mellanox/mlxsw/core.h
drivers/net/ethernet/mellanox/mlxsw/spectrum.c
drivers/net/ethernet/mellanox/mlxsw/switchx2.c