NetworkManager/src/nmcli
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
..
agent.c cli: move from "clients/cli/" to "src/nmcli/" 2021-03-15 17:10:54 +01:00
common.c nmcli: remove nmc_dbus_call_sync() 2021-05-03 22:22:01 +02:00
common.h nmcli: remove nmc_dbus_call_sync() 2021-05-03 22:22:01 +02:00
connections.c nmcli: invoke ReloadConnections() D-Bus method asynchronously 2021-05-03 22:22:01 +02:00
connections.h cli: move from "clients/cli/" to "src/nmcli/" 2021-03-15 17:10:54 +01:00
devices.c cli: minor cleanup of code in "devices.c" 2021-05-27 10:42:10 +02:00
devices.h cli: move from "clients/cli/" to "src/nmcli/" 2021-03-15 17:10:54 +01:00
general.c nmcli: invoke Reload() D-Bus method asynchronously 2021-05-03 22:22:01 +02:00
generate-docs-nm-settings-nmcli.c cli: move from "clients/cli/" to "src/nmcli/" 2021-03-15 17:10:54 +01:00
generate-docs-nm-settings-nmcli.xml.in core,libnm: don't touch device TC configuration by default 2021-06-03 09:01:57 +02:00
meson.build cli: move from "clients/cli/" to "src/nmcli/" 2021-03-15 17:10:54 +01:00
nmcli-completion cli: move from "clients/cli/" to "src/nmcli/" 2021-03-15 17:10:54 +01:00
nmcli.c cli: move from "clients/cli/" to "src/nmcli/" 2021-03-15 17:10:54 +01:00
nmcli.h cli: move from "clients/cli/" to "src/nmcli/" 2021-03-15 17:10:54 +01:00
polkit-agent.c cli: move from "clients/cli/" to "src/nmcli/" 2021-03-15 17:10:54 +01:00
polkit-agent.h cli: move from "clients/cli/" to "src/nmcli/" 2021-03-15 17:10:54 +01:00
settings.c cli: move from "clients/cli/" to "src/nmcli/" 2021-03-15 17:10:54 +01:00
settings.h cli: move from "clients/cli/" to "src/nmcli/" 2021-03-15 17:10:54 +01:00
utils.c cli: move from "clients/cli/" to "src/nmcli/" 2021-03-15 17:10:54 +01:00
utils.h cli: use const argument for nmc_string_is_valid() 2021-05-03 10:11:20 +02:00