]> 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)
commitfa0a5fddc06082b78c5f59c912d302ab574b2070
tree8721b3699a1f6eb7a5a2db796a27810710ab7268
parent521ccc641d82c45ddb1e39c4d6258ebf02950219
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