]> git.proxmox.com Git - mirror_iproute2.git/commit
devlink: Expose port split ability
authorDanielle Ratson <danieller@mellanox.com>
Thu, 30 Jul 2020 14:33:18 +0000 (17:33 +0300)
committerDavid Ahern <dsahern@kernel.org>
Mon, 3 Aug 2020 14:37:14 +0000 (14:37 +0000)
commite5f4165a9e018dcc51d4c544b90bf065ac401132
treec2fb4adf0e70c10fe11a743038f5de4b100e2a74
parentfcbc6c1c71c8a019e4fcd1cacfaa900f52ac7a6e
devlink: Expose port split ability

Add a new attribute that indicates the port split ability 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
splittable false lanes 1

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