From 97f4b019d87a073ff02a3ff8b08ada59aea6e688 Mon Sep 17 00:00:00 2001 From: Jiri Pirko Date: Mon, 21 Oct 2019 16:36:26 +0200 Subject: 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 --- sys/linux/socket_netlink_generic_devlink.txt | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'sys/linux/socket_netlink_generic_devlink.txt') 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() -- cgit mrf-deployment