]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: switchx2: Add support for physical port names
authorElad Raz <eladr@mellanox.com>
Fri, 28 Oct 2016 19:35:50 +0000 (21:35 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 30 Oct 2016 20:50:17 +0000 (16:50 -0400)
commit1bf892162333684f028e2e511089b3e8a14e7237
tree084f6d5cd3581af12210f83a351135b95af99a1e
parentcf6aae97922bc0919736ebed88d516347274c74c
mlxsw: switchx2: 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: pX

Signed-off-by: Elad Raz <eladr@mellanox.com>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Reviewed-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/switchx2.c