]> 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)
commite7a6488040a775a0a18aa8d1fdd009adc4cedff0
tree084f6d5cd3581af12210f83a351135b95af99a1e
parentb203872714a2ffd28fd786ac2c6e5dea3f4bf5e1
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