NetworkManager/src/platform
Beniamino Galvani 8698f512d7 platform: assume 'sriov_drivers_autoprobe' is 1 when sysfs file is missing
'sriov_drivers_autoprobe' was added in kernel 4.12. With previous
kernel versions NM is currently unable to set any SR-IOV parameter
because it tries to read 'sriov_drivers_autoprobe' which doesn't
exist, assumes that current value is -1 and tries to change it,
failing.

When the file doesn't exist, drivers are automatically probed so we
can assume the value is 1. In this way NM is able to activate a
connection with sriov.autoprobe-drivers=1 (the default) even on older
kernel versions.

Fixes: 1e41495d9a ('platform: sriov: write new values when we can't read old ones')

https://bugzilla.redhat.com/show_bug.cgi?id=1695093
2019-04-04 15:35:13 +02:00
..
linux platform: import nl82154.h 2018-06-26 16:21:54 +02:00
tests platform: set errno to ENOENT for nm_platform_sysctl_get() 2019-04-04 15:35:13 +02:00
wifi platform/wifi: don't use __u32 type in "nm-wifi-utils-nl80211.c" 2019-02-22 10:05:00 +01:00
wpan platform/netlink: cleanup nla_parse*() code by using safer macros 2019-02-22 09:58:09 +01:00
nm-fake-platform.c platform: set errno to ENOENT for nm_platform_sysctl_get() 2019-04-04 15:35:13 +02:00
nm-fake-platform.h core: refactor private data in "src" 2016-10-04 09:50:56 +02:00
nm-linux-platform.c platform: assume 'sriov_drivers_autoprobe' is 1 when sysfs file is missing 2019-04-04 15:35:13 +02:00
nm-linux-platform.h platform: use NMDedupMultiIndex for routes in NMPCache 2017-07-05 18:37:38 +02:00
nm-netlink.c platform/netlink: cleanup nlmsg_append() and add nlmsg_append_struct() macro 2019-02-22 09:58:09 +01:00
nm-netlink.h platform/netlink: cleanup nlmsg_append() and add nlmsg_append_struct() macro 2019-02-22 09:58:09 +01:00
nm-platform-private.h platform: expose emit-signal function from platform 2017-07-05 18:37:39 +02:00
nm-platform-utils.c all: replace strerror() calls with nm_strerror_native() 2019-02-12 08:50:28 +01:00
nm-platform-utils.h platform/ethtool: add code to get/set offload features via ethtool 2018-08-10 10:38:19 +02:00
nm-platform.c platform: set errno to ENOENT for nm_platform_sysctl_get() 2019-04-04 15:35:13 +02:00
nm-platform.h platform: add support for bridge vlans 2019-03-26 17:19:39 +01:00
nmp-netns.c all: replace g_strerror() calls with nm_strerror_native() 2019-02-12 08:50:28 +01:00
nmp-netns.h core: cleanup implementation of nm_auto* macros to use nm_auto() 2017-10-11 08:43:40 +02:00
nmp-object.c platform: add support for routing-rule objects and cache them in platform 2019-03-13 09:03:59 +01:00
nmp-object.h platform: add support for routing-rule objects and cache them in platform 2019-03-13 09:03:59 +01:00
nmp-rules-manager.c core: add handling of IP routing rules to NMDevice 2019-03-27 16:23:30 +01:00
nmp-rules-manager.h core: add handling of IP routing rules to NMDevice 2019-03-27 16:23:30 +01:00