diff options
| author | Jiri Pirko <jiri@mellanox.com> | 2019-10-21 16:36:26 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2019-11-03 14:20:59 +0100 |
| commit | 97f4b019d87a073ff02a3ff8b08ada59aea6e688 (patch) | |
| tree | cf0edc4a7a8a418942011164d8915d026d47921e /sys/linux/socket_netlink_generic_devlink.txt | |
| parent | fceca3f4b76241ca8a285c9a15c4aa7580184156 (diff) | |
sys/linux: extend devlink for fixed pci handle
Extend devlink to also work with fixed pci handle "pci/0000:00:10.0".
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Diffstat (limited to 'sys/linux/socket_netlink_generic_devlink.txt')
| -rw-r--r-- | sys/linux/socket_netlink_generic_devlink.txt | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/sys/linux/socket_netlink_generic_devlink.txt b/sys/linux/socket_netlink_generic_devlink.txt index 50312f5bb..f090e4104 100644 --- a/sys/linux/socket_netlink_generic_devlink.txt +++ b/sys/linux/socket_netlink_generic_devlink.txt @@ -18,11 +18,21 @@ devlink_devname { z const[0, int8] } [packed] -devlink_handle { +devlink_handle_nsim { DEVLINK_ATTR_BUS_NAME nlattr[DEVLINK_ATTR_BUS_NAME, string["netdevsim"]] DEVLINK_ATTR_DEV_NAME nlattr[DEVLINK_ATTR_DEV_NAME, devlink_devname] } [packed, align_4] +devlink_handle_pci { + DEVLINK_ATTR_BUS_NAME nlattr[DEVLINK_ATTR_BUS_NAME, string["pci"]] + DEVLINK_ATTR_DEV_NAME nlattr[DEVLINK_ATTR_DEV_NAME, string["0000:00:10.0"]] +} [packed, align_4] + +devlink_handle [ + nsim devlink_handle_nsim + pci devlink_handle_pci +] [varlen] + devlink_port_handle { port_handle devlink_handle # 0:3 is in sync with number of ports created by netdevsim_add() |
