]> git.proxmox.com Git - mirror_iproute2.git/commit
devlink: Expose number of port lanes
authorDanielle Ratson <danieller@mellanox.com>
Thu, 30 Jul 2020 14:33:17 +0000 (17:33 +0300)
committerDavid Ahern <dsahern@kernel.org>
Mon, 3 Aug 2020 14:36:52 +0000 (14:36 +0000)
commitfcbc6c1c71c8a019e4fcd1cacfaa900f52ac7a6e
treeaa03f209e695fdca60ccdd7e8d4b1d75f2bcd065
parent41a9e384694aab818ef0e50ea05ff70f1c2f4102
devlink: Expose number of port lanes

Add a new attribute that indicates the port's number of lanes to devlink port.

Expose the attribute to user space as RO value, for example:

$devlink port show swp1
pci/0000:03:00.0/61: type eth netdev swp1 flavour physical port 1 lanes 1

Signed-off-by: Danielle Ratson <danieller@mellanox.com>
Signed-off-by: David Ahern <dsahern@kernel.org>
devlink/devlink.c