]> git.karo-electronics.de Git - linux-beck.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)
commite50e789ce178b6ae7c18b3e90884123398bab5f3
tree084f6d5cd3581af12210f83a351135b95af99a1e
parentf83e21027b4d8871d896f6e180171c289b60718c
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