NetworkManager/src
Beniamino Galvani 190fd9aa9f bond: restore MAC on release only when there is a cloned MAC address
Currently we unconditionally reset the MAC to the previous value after
releasing ports. This has some disadvantages:

 - by default, after the last port is removed the bond will have one
   of the previous port's address, which could conflict with the port;

 - in some cases, changing the bond MAC is not possible. For example
   when the bond is active-backup and has fail_over_mac=1|2. In such
   case the netlink call succeeds, but the address doesn't
   change; then NM would keep waiting for some time.

Don't try to restore the MAC unless the bond connection has a cloned
MAC set.

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/775
2021-03-09 10:32:20 +01:00
..
c-list build: move c-util/nettools library from "shared/" to "src/" 2021-02-24 12:48:28 +01:00
c-rbtree build: move c-util/nettools library from "shared/" to "src/" 2021-02-24 12:48:28 +01:00
c-siphash build: move c-util/nettools library from "shared/" to "src/" 2021-02-24 12:48:28 +01:00
c-stdaux build: move c-util/nettools library from "shared/" to "src/" 2021-02-24 12:48:28 +01:00
contrib build/meson: cleanup tests 2021-02-28 18:56:08 +01:00
core bond: restore MAC on release only when there is a cloned MAC address 2021-03-09 10:32:20 +01:00
libnm-base base: move "libnm-core-intern/nm-core-types-internal.h" to libnm-base 2021-03-05 11:27:02 +01:00
libnm-client-aux-extern build: move "clients/common/" to "src/libnmc-{base,setting}/" 2021-03-02 08:38:25 +01:00
libnm-client-impl build/meson: cleanup tests 2021-02-28 18:56:08 +01:00
libnm-client-public build/meson: remove unnecessary nm_version_macro_header to create libnm_client_public_enum_sources 2021-02-28 10:42:05 +01:00
libnm-client-test build/meson: cleanup dependencies for libnm-core-aux-intern 2021-02-28 10:42:05 +01:00
libnm-core-aux-extern build/meson: cleanup dependencies for libnm-core-aux-extern 2021-02-28 10:42:06 +01:00
libnm-core-aux-intern glib-aux: move nm_utils_route_type{2str,_by_name}() to libnm-glib-aux 2021-03-05 11:09:15 +01:00
libnm-core-impl libnm: comment about wrong out parameter of nm_wireguard_peer_get_allowed_ip() 2021-03-08 22:24:12 +01:00
libnm-core-intern base: move "libnm-core-intern/nm-core-types-internal.h" to libnm-base 2021-03-05 11:27:02 +01:00
libnm-core-public libnm-base: add internal _NMVlanFlags type 2021-03-05 11:09:13 +01:00
libnm-glib-aux shared: add nm_vsprintf_buf_or_alloc() macro 2021-03-08 22:29:00 +01:00
libnm-log-core platform: make global logging cache for NMPlatform's sysctl values thread-safe 2021-03-08 22:29:01 +01:00
libnm-log-null build: remove shared/ directory 2021-02-24 12:49:13 +01:00
libnm-platform platform: make global logging cache for NMPlatform's sysctl values thread-safe 2021-03-08 22:29:01 +01:00
libnm-std-aux build: remove "shared/" from include search path 2021-02-24 12:49:06 +01:00
libnm-systemd-shared build/meson: cleanup dependencies for libnm-systemd-shared 2021-02-28 10:42:04 +01:00
libnm-udev-aux build/meson: cleanup dependencies for libnm-udev-aux 2021-02-28 10:42:04 +01:00
libnmc-base build: move "clients/common/" to "src/libnmc-{base,setting}/" 2021-03-02 08:38:25 +01:00
libnmc-setting build: move "clients/common/" to "src/libnmc-{base,setting}/" 2021-03-02 08:38:25 +01:00
libnmt-newt build: move "clients/tui/newt/" to "src/libnmt-newt/" 2021-03-02 08:38:26 +01:00
linux-headers platform: move "linux/nl802154.h" to "src/linux-headers/" 2021-03-05 11:27:15 +01:00
n-acd build: move c-util/nettools library from "shared/" to "src/" 2021-02-24 12:48:28 +01:00
n-dhcp4 build: move c-util/nettools library from "shared/" to "src/" 2021-02-24 12:48:28 +01:00
nm-dispatcher build: move "dispatcher/" to "src/nm-dispatcher/" 2021-02-28 18:56:09 +01:00
nm-online build: move "clients/nm-online.c" to "src/nm-online/" 2021-03-02 08:38:26 +01:00
meson.build build: move "clients/nm-online.c" to "src/nm-online/" 2021-03-02 08:38:26 +01:00