NetworkManager/src/core/devices
Beniamino Galvani a48edd0410 core,libnm: don't touch device TC configuration by default
NetworkManager supports a very limited set of qdiscs. If users want to
configure a unsupported qdisc, they need to do it outside of
NetworkManager using tc.

The problem is that NM also removes all qdiscs and filters during
activation if the connection doesn't contain a TC setting. Therefore,
setting TC configuration outside of NM is hard because users need to
do it *after* the connection is up (for example through a dispatcher
script).

Let NM consider the presence (or absence) of a TC setting in the
connection to determine whether NM should configure (or not) qdiscs
and filters on the interface. We already do something similar for
SR-IOV configuration.

Since new connections don't have the TC setting, the new behavior
(ignore existing configuration) will be the default. The impact of
this change in different scenarios is:

 - the user previously configured TC settings via NM. This continues
   to work as before;

 - the user didn't set any qdiscs or filters in the connection, and
   expected NM to clear them from the interface during activation.
   Here there is a change in behavior, but it seems unlikely that
   anybody relied on the old one;

 - the user didn't care about qdiscs and filters; NM removed all
   qdiscs upon activation, and so the default qdisc from kernel was
   used. After this change, NM will not touch qdiscs and the default
   qdisc will be used, as before;

 - the user set a different qdisc via tc and NM cleared it during
   activation. Now this will work as expected.

So, the new default behavior seems better than the previous one.

https://bugzilla.redhat.com/show_bug.cgi?id=1928078
2021-06-03 09:01:57 +02:00
..
adsl core: drop deprecated PropertiesChanged D-Bus signal (API BREAK) 2021-05-14 10:57:34 +02:00
bluetooth bluetooth: ensure function-like behavior of _LOG_bzobj() macro 2021-05-25 13:27:26 +02:00
ovs ovs: block auto activation of ovs-interfaces until ovsdb is ready 2021-05-19 10:29:11 +02:00
team core: rework string handling in enslave_slave() 2021-05-25 13:56:42 +02:00
tests systemd: move "src/core/systemd" to "src/libnm-systemd-core" 2021-05-30 09:45:05 +02:00
wifi iwd: If no EAP anonymous identity set fall back to identity 2021-06-01 09:02:42 +00:00
wwan core: drop deprecated PropertiesChanged D-Bus signal (API BREAK) 2021-05-14 10:57:34 +02:00
meson.build all: move "src/" directory to "src/core/" 2021-02-04 09:45:55 +01:00
nm-acd-manager.c platform: move more platform code to src/libnm-platform/ 2021-03-05 11:27:16 +01:00
nm-acd-manager.h all: move "src/" directory to "src/core/" 2021-02-04 09:45:55 +01:00
nm-device-6lowpan.c platform: move more platform code to src/libnm-platform/ 2021-03-05 11:27:16 +01:00
nm-device-6lowpan.h all: move "src/" directory to "src/core/" 2021-02-04 09:45:55 +01:00
nm-device-bond.c core: drop deprecated PropertiesChanged D-Bus signal (API BREAK) 2021-05-14 10:57:34 +02:00
nm-device-bond.h all: move "src/" directory to "src/core/" 2021-02-04 09:45:55 +01:00
nm-device-bridge.c core: drop deprecated PropertiesChanged D-Bus signal (API BREAK) 2021-05-14 10:57:34 +02:00
nm-device-bridge.h all: move "src/" directory to "src/core/" 2021-02-04 09:45:55 +01:00
nm-device-dummy.c core: drop deprecated PropertiesChanged D-Bus signal (API BREAK) 2021-05-14 10:57:34 +02:00
nm-device-dummy.h all: move "src/" directory to "src/core/" 2021-02-04 09:45:55 +01:00
nm-device-ethernet-utils.c all: add "src/core/nm-default-daemon.h" as replacement for "nm-default.h" 2021-02-09 12:38:18 +01:00
nm-device-ethernet-utils.h all: move "src/" directory to "src/core/" 2021-02-04 09:45:55 +01:00
nm-device-ethernet.c core: drop deprecated PropertiesChanged D-Bus signal (API BREAK) 2021-05-14 10:57:34 +02:00
nm-device-ethernet.h all: move "src/" directory to "src/core/" 2021-02-04 09:45:55 +01:00
nm-device-factory.c platform: move more platform code to src/libnm-platform/ 2021-03-05 11:27:16 +01:00
nm-device-factory.h all: move "src/" directory to "src/core/" 2021-02-04 09:45:55 +01:00
nm-device-generic.c core: drop deprecated PropertiesChanged D-Bus signal (API BREAK) 2021-05-14 10:57:34 +02:00
nm-device-generic.h all: move "src/" directory to "src/core/" 2021-02-04 09:45:55 +01:00
nm-device-infiniband.c core: drop deprecated PropertiesChanged D-Bus signal (API BREAK) 2021-05-14 10:57:34 +02:00
nm-device-infiniband.h all: move "src/" directory to "src/core/" 2021-02-04 09:45:55 +01:00
nm-device-ip-tunnel.c core: drop deprecated PropertiesChanged D-Bus signal (API BREAK) 2021-05-14 10:57:34 +02:00
nm-device-ip-tunnel.h all: move "src/" directory to "src/core/" 2021-02-04 09:45:55 +01:00
nm-device-logging.h all: move "src/" directory to "src/core/" 2021-02-04 09:45:55 +01:00
nm-device-macsec.c core: drop deprecated PropertiesChanged D-Bus signal (API BREAK) 2021-05-14 10:57:34 +02:00
nm-device-macsec.h all: move "src/" directory to "src/core/" 2021-02-04 09:45:55 +01:00
nm-device-macvlan.c core: drop deprecated PropertiesChanged D-Bus signal (API BREAK) 2021-05-14 10:57:34 +02:00
nm-device-macvlan.h all: move "src/" directory to "src/core/" 2021-02-04 09:45:55 +01:00
nm-device-ppp.c core: drop deprecated PropertiesChanged D-Bus signal (API BREAK) 2021-05-14 10:57:34 +02:00
nm-device-ppp.h all: move "src/" directory to "src/core/" 2021-02-04 09:45:55 +01:00
nm-device-private.h device: refactor dhcp-anycast-address handling for OLPC mesh device 2021-05-18 09:41:53 +02:00
nm-device-tun.c core: drop deprecated PropertiesChanged D-Bus signal (API BREAK) 2021-05-14 10:57:34 +02:00
nm-device-tun.h all: move "src/" directory to "src/core/" 2021-02-04 09:45:55 +01:00
nm-device-utils.c core: add "nm-device-utils.[ch]" with simple helper functions 2021-05-06 12:19:44 +02:00
nm-device-utils.h core: add "nm-device-utils.[ch]" with simple helper functions 2021-05-06 12:19:44 +02:00
nm-device-veth.c core: drop deprecated PropertiesChanged D-Bus signal (API BREAK) 2021-05-14 10:57:34 +02:00
nm-device-veth.h all: move "src/" directory to "src/core/" 2021-02-04 09:45:55 +01:00
nm-device-vlan.c core: drop deprecated PropertiesChanged D-Bus signal (API BREAK) 2021-05-14 10:57:34 +02:00
nm-device-vlan.h all: move "src/" directory to "src/core/" 2021-02-04 09:45:55 +01:00
nm-device-vrf.c platform: move more platform code to src/libnm-platform/ 2021-03-05 11:27:16 +01:00
nm-device-vrf.h all: move "src/" directory to "src/core/" 2021-02-04 09:45:55 +01:00
nm-device-vxlan.c core: drop deprecated PropertiesChanged D-Bus signal (API BREAK) 2021-05-14 10:57:34 +02:00
nm-device-vxlan.h all: move "src/" directory to "src/core/" 2021-02-04 09:45:55 +01:00
nm-device-wireguard.c clang-format: reformat code with clang 12 2021-05-04 13:56:26 +02:00
nm-device-wireguard.h all: move "src/" directory to "src/core/" 2021-02-04 09:45:55 +01:00
nm-device-wpan.c platform: move more platform code to src/libnm-platform/ 2021-03-05 11:27:16 +01:00
nm-device-wpan.h all: move "src/" directory to "src/core/" 2021-02-04 09:45:55 +01:00
nm-device.c core,libnm: don't touch device TC configuration by default 2021-06-03 09:01:57 +02:00
nm-device.h device: refactor dhcp-anycast-address handling for OLPC mesh device 2021-05-18 09:41:53 +02:00
nm-lldp-listener.c systemd: move "src/core/systemd" to "src/libnm-systemd-core" 2021-05-30 09:45:05 +02:00
nm-lldp-listener.h device/lldp: simplify NMLldpListener API 2021-04-16 15:18:27 +02:00