]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit185e314131fb87188f1669bcab546fb6d88aabce
tree8721b3699a1f6eb7a5a2db796a27810710ab7268
parentbd8e801a48eaa3921f69556a149920c644cc8134
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