mlxsw: spectrum: Add support for physical port names
authorIdo Schimmel <idosch@mellanox.com>
Tue, 5 Apr 2016 08:20:04 +0000 (10:20 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Apr 2016 19:07:54 +0000 (15:07 -0400)
commit2bf9a58675c5d6d37cdcb4301e6320009d299080
tree8721b3699a1f6eb7a5a2db796a27810710ab7268
parent75f3a1018f0103025558caa60e24132a4cc9ce8f
mlxsw: spectrum: Add support for physical port names

Export to userspace the front panel name of the port, so that udev can
rename the ports accordingly. The convention suggested by switchdev
documentation is used:

1) Non-split: pX
2) Split: pXsY

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