aboutsummaryrefslogtreecommitdiffstats
path: root/sys/linux
diff options
context:
space:
mode:
authorJiri Pirko <jiri@mellanox.com>2019-10-24 10:16:19 +0200
committerDmitry Vyukov <dvyukov@google.com>2019-11-03 14:20:59 +0100
commitd40d75d2d787b9d4f949422b88de18ede4ee20b6 (patch)
tree18713cd0e1884616ceee1c74381eba65419aff9f /sys/linux
parent97f4b019d87a073ff02a3ff8b08ada59aea6e688 (diff)
executor: move fixed pci devlink handle into network namespace
In case there is a fixed pci devlink handle "pci/pci/0000:00:10.0" on the system (initial network namespace), it is moved to a working network namespace. Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Diffstat (limited to 'sys/linux')
-rw-r--r--sys/linux/socket_netlink_generic_devlink.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/linux/socket_netlink_generic_devlink.txt b/sys/linux/socket_netlink_generic_devlink.txt
index f090e4104..7a89fc648 100644
--- a/sys/linux/socket_netlink_generic_devlink.txt
+++ b/sys/linux/socket_netlink_generic_devlink.txt
@@ -25,6 +25,7 @@ devlink_handle_nsim {
devlink_handle_pci {
DEVLINK_ATTR_BUS_NAME nlattr[DEVLINK_ATTR_BUS_NAME, string["pci"]]
+# 0000:00:10.0 is a fixed pci address what is moved from initial network namespace by initialize_devlink()
DEVLINK_ATTR_DEV_NAME nlattr[DEVLINK_ATTR_DEV_NAME, string["0000:00:10.0"]]
} [packed, align_4]