{"object_kind":"push","event_name":"push","before":"70f51527fc660c1b33c071ec441fa66c38c8f6d0","after":"ea60638ebb76ad9917597687053598ebea866e7d","ref":"refs/heads/main","ref_protected":false,"checkout_sha":"ea60638ebb76ad9917597687053598ebea866e7d","message":null,"user_id":1050,"user_name":"Beniamino Galvani","user_username":"bgalvani","user_email":"[REDACTED]","user_avatar":"https://gitlab.freedesktop.org/uploads/-/system/user/avatar/1050/avatar.png?v=1795147389","project_id":411,"project":{"id":411,"name":"NetworkManager","description":"NetworkManager — network management daemon","web_url":"https://gitlab.freedesktop.org/NetworkManager/NetworkManager","avatar_url":"https://gitlab.freedesktop.org/uploads/-/system/project/avatar/411/nm_logo.png?v=1795184211","git_ssh_url":"git@ssh.gitlab.freedesktop.org:NetworkManager/NetworkManager.git","git_http_url":"https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git","namespace":"NetworkManager","visibility_level":20,"path_with_namespace":"NetworkManager/NetworkManager","default_branch":"main","ci_config_path":"","homepage":"https://gitlab.freedesktop.org/NetworkManager/NetworkManager","url":"git@ssh.gitlab.freedesktop.org:NetworkManager/NetworkManager.git","ssh_url":"git@ssh.gitlab.freedesktop.org:NetworkManager/NetworkManager.git","http_url":"https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git"},"commits":[{"id":"d35e40b9c81ed79c682cf30a8ecf9d6f5b91a81c","message":"core: move the l3cd test to a dedicated file\n\nOther tests will be added to the new file in the following commits.\n","title":"core: move the l3cd test to a dedicated file","timestamp":"2026-11-20T15:13:49+01:00","url":"https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/commit/d35e40b9c81ed79c682cf30a8ecf9d6f5b91a81c","author":{"name":"Beniamino Galvani","email":"bgalvani@redhat.com"},"added":["src/core/tests/test-l3-config-data.c"],"modified":["src/core/tests/meson.build","src/core/tests/test-core.c"],"removed":[]},{"id":"54dfa44ad6ee913938c4cae178d8ccd1e642f1b0","message":"libnm-glib-aux: add nm_icmpv6_router_pref_to_priority()\n\nThe function returns a ordered priority for the values of the IPv6\ngateway preference, and replaces the existing static helper\n_preference_to_priority(). The new function will be used in different\nplaces to compare gateway preferences.\n\nWhile at it, return the same value as MEDIUM for INVALID, to follow\nRFC 4191 2.2.\n","title":"libnm-glib-aux: add nm_icmpv6_router_pref_to_priority()","timestamp":"2026-11-20T15:13:50+01:00","url":"https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/commit/54dfa44ad6ee913938c4cae178d8ccd1e642f1b0","author":{"name":"Beniamino Galvani","email":"bgalvani@redhat.com"},"added":[],"modified":["src/core/ndisc/nm-ndisc.c","src/libnm-glib-aux/nm-inet-utils.h"],"removed":[]},{"id":"e5a3c7432ac47a251047b50175271fd6aca25107","message":"platform: add nexthop support\n\nAdd support for route nexthop objects to the platform, which will be\nused in next commits for IPv6 routes.\n\nContrary to other object types, we don't track nexthops in the\nplatform cache because it's not strictly necessary and on some systems\nthere could be many of them; if we tracked them in the cache, we would\nneed to care also about nexthops on interfaces not managed by\nNetworkManager.\n\nTo configure a desired list of nexthops for an interface it is\nnecessary to first dump the current list, delete the unwanted ones and\nadd the desired ones. The dump returns only the nexthops for the given\ninterface and address family.\n","title":"platform: add nexthop support","timestamp":"2026-11-20T15:13:51+01:00","url":"https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/commit/e5a3c7432ac47a251047b50175271fd6aca25107","author":{"name":"Beniamino Galvani","email":"bgalvani@redhat.com"},"added":[],"modified":["src/core/platform/tests/test-route.c","src/libnm-platform/nm-linux-platform.c","src/libnm-platform/nm-netlink.c","src/libnm-platform/nm-platform.c","src/libnm-platform/nm-platform.h","src/libnm-platform/nmp-base.h","src/libnm-platform/nmp-object.c","src/libnm-platform/nmp-object.h","src/libnm-platform/nmp-plobj.c","src/libnm-platform/nmp-plobj.h"],"removed":[]},{"id":"afbe19fe754461693d4948e82c16bb6ffcf62f0c","message":"platform: add nexthop support to NMPlatformFake\n\nNMPlatformFake is a mock platform implementation used for\ntesting. Instead of using netlink to set the addresses, routes,\netc. in kernel, it only stores them internally.\n\nAdd support for nexthop objects. This will be used later to test the\nNDisc implementation.\n","title":"platform: add nexthop support to NMPlatformFake","timestamp":"2026-11-20T15:13:52+01:00","url":"https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/commit/afbe19fe754461693d4948e82c16bb6ffcf62f0c","author":{"name":"Beniamino Galvani","email":"bgalvani@redhat.com"},"added":[],"modified":["src/core/platform/nm-fake-platform.c","src/core/platform/tests/test-route.c"],"removed":[]},{"id":"375015ab6b06ba428ca0c16db4c495e9dcf5ebc4","message":"platform: support setting nexthop IDs in IPv6 routes\n\nIPv6 routes can now reference an optional nexthop ID.\n\nEven though the nexthop ID uniquely identifies a nexthop object (and\nthus an ifindex-gateway tuple), IPv6 route objects in the platform\nalways store the ifindex (needed for proper tracking) and the gateway\n(for logging purposes). So, if you do:\n\n ip -6 nexthop add id 1000 dev enp1s0 via fe80::1111\n ip -6 route add 3fff::/64 nhid 1000\n\nthe route will appear in the platform as:\n\n type unicast 3fff::/64 nhid 1000 via fe80::1111 dev 2\n\nWhen using a group nexthop:\n\n ip -6 nexthop add id 1001 dev enp1s0 via fe80::11\n ip -6 nexthop add id 1002 dev enp7s0 via fe80::77\n ip nexthop add id 1003 group 1001/1002\n ip -6 route add 3fff:1::/64 nhid 1003\n\nthe IPv6 route is announced by the kernel as a multipath route:\n\n [...]\n [{nla_len=20, nla_type=RTA_DST}, inet_pton(AF_INET6, \"3fff:1::\")],\n [{nla_len=8, nla_type=RTA_NH_ID}, 1003],\n [{nla_len=60, nla_type=RTA_MULTIPATH}, [\n [\n {rtnh_len=28, rtnh_flags=0, rtnh_hops=0, rtnh_ifindex=if_nametoindex(\"enp1s0\")},\n [{nla_len=20, nla_type=RTA_GATEWAY}, inet_pton(AF_INET6, \"fe80::11\")]\n ],\n [\n {rtnh_len=28, rtnh_flags=0, rtnh_hops=0, rtnh_ifindex=if_nametoindex(\"enp7s0\")},\n [{nla_len=20, nla_type=RTA_GATEWAY}, inet_pton(AF_INET6, \"fe80::77\")]\n ]\n ]],\n\nPrior to this commit, NetworkManager already treated such a route as\nmultiple non-multipath routes. Now, each of these individual routes\nwill also track the nexthop ID:\n\n type unicast 3fff:1::/64 nhid 1003 via fe80::11 dev 2\n type unicast 3fff:1::/64 nhid 1003 via fe80::77 dev 3\n\nThis is currently implemented only for IPv6 routes because it is\nrequired by the ndisc code. There are behavioral differences with\nIPv4 that will require further work.\n","title":"platform: support setting nexthop IDs in IPv6 routes","timestamp":"2026-11-20T15:13:53+01:00","url":"https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/commit/375015ab6b06ba428ca0c16db4c495e9dcf5ebc4","author":{"name":"Beniamino Galvani","email":"bgalvani@redhat.com"},"added":[],"modified":["src/core/platform/nm-fake-platform.c","src/core/platform/tests/test-route.c","src/libnm-platform/nm-linux-platform.c","src/libnm-platform/nm-platform.c","src/libnm-platform/nm-platform.h"],"removed":[]},{"id":"f00630314554130da635b00f053acd94201fb584","message":"core: support nexthops in l3cd\n\nIn the following commits we are going to add ndisc routes that\nreference nexthop objects. The l3cfg will receive a l3cd to apply that\ncontains a list of routes and a list of nexthops.\n\nThe idea is to track the routes and the nexthops from a single source\n(for example, ndisc) in the same l3cd. Each nexthop will be referenced\nby a route; a nexthop that is not referenced can be dropped during the\nmerge (except during a clone, which does an exact copy of the existing\nl3cd).\n","title":"core: support nexthops in l3cd","timestamp":"2026-11-20T15:13:55+01:00","url":"https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/commit/f00630314554130da635b00f053acd94201fb584","author":{"name":"Beniamino Galvani","email":"bgalvani@redhat.com"},"added":[],"modified":["src/core/nm-l3-config-data.c","src/core/nm-l3-config-data.h","src/core/tests/test-l3-config-data.c"],"removed":[]},{"id":"ff3e3962cdd02361e519e4ef3ecbdd53e08e9ae7","message":"core: sync nexthops in l3cfg\n\nWhen committing the configuration in the NML3Cfg, also sync the\nnexthops. Since we don't track them in the platform cache, we can't\nuse the existing \"zombie\" mechanism to detect which objects were added\nby us and are no longer needed. For that, we need to keep track\nexplicitly of what nexthop we added.\n","title":"core: sync nexthops in l3cfg","timestamp":"2026-11-20T15:13:57+01:00","url":"https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/commit/ff3e3962cdd02361e519e4ef3ecbdd53e08e9ae7","author":{"name":"Beniamino Galvani","email":"bgalvani@redhat.com"},"added":["src/core/tests/test-l3cfg-nexthop.c"],"modified":["src/core/nm-l3cfg.c","src/core/platform/nm-fake-platform.c","src/core/platform/nm-fake-platform.h","src/core/tests/meson.build","src/libnm-platform/nm-platform.h"],"removed":[]},{"id":"daee4464013285ce5601e0865a09a2c562617baf","message":"device: also flush nexthops\n\nWhen resetting the IP configuration, we also need to delete the\nnexthops, together with addresses and routes; otherwise they would\nlinger on the interface.\n","title":"device: also flush nexthops","timestamp":"2026-11-20T15:13:59+01:00","url":"https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/commit/daee4464013285ce5601e0865a09a2c562617baf","author":{"name":"Beniamino Galvani","email":"bgalvani@redhat.com"},"added":[],"modified":["src/core/devices/nm-device.c"],"removed":[]},{"id":"d83b2f276cf6390422e0e95b9a0e8bbbe7d89a03","message":"core: add nexthop id reservation functions in the netns\n\nWhen an IP configuration method (e.g. NDisc) wants to use a nexthop,\nit needs to allocate a free id. Add functions to keep track of the\nused ids in the namespace so that we avoid collisions.\n","title":"core: add nexthop id reservation functions in the netns","timestamp":"2026-11-20T15:14:01+01:00","url":"https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/commit/d83b2f276cf6390422e0e95b9a0e8bbbe7d89a03","author":{"name":"Beniamino Galvani","email":"bgalvani@redhat.com"},"added":[],"modified":["src/core/nm-netns.c","src/core/nm-netns.h","src/core/tests/test-netns.c"],"removed":[]},{"id":"f52738479812084944d70fa730f81cf7bd0abba1","message":"core: consider preferences when looking for the best IPv6 default route\n\nCurrently, IPv6 routes from RA are merged by the kernel into a single\nECMP route if they have the same destination and metric. In case of\nmultiple default routes with different preferences, NetworkManager\nimplements a hack that bumps the metric of certain routes to avoid\nthe merge, to honor the preference.\n\nThis hack will be removed in a following commit. After that, multiple\nIPv6 default routes can coexist with the same metric and different\npreferences.\n\nUpdate the \"best default route\" selection algorithm to not only\nconsider the metric but also the IPv6 preference, so that the router\nwith the highest preference is selected by NM as the best IPv6 default\nroute.\n","title":"core: consider preferences when looking for the best IPv6 default route","timestamp":"2026-11-20T15:14:04+01:00","url":"https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/commit/f52738479812084944d70fa730f81cf7bd0abba1","author":{"name":"Beniamino Galvani","email":"bgalvani@redhat.com"},"added":[],"modified":["src/core/nm-ip-config.c","src/core/nm-l3-config-data.c","src/core/tests/test-l3-config-data.c","src/libnm-platform/nmp-object.c","src/libnm-platform/nmp-object.h"],"removed":[]},{"id":"99f303d5fb89e08f2161d451d3727c0e21aea8ca","message":"ndisc: generate IPv6 routes with nexthops to avoid merging\n\nPreviously the NDisc code could generate multiple IPv6 routes with the\nsame destination and metric. The kernel then would merge them into a\nsingle ECMP route. This behavior does not conform to RFC 6724 section\n5 rule 5.5 and also violates RFC 8028.\n\nWhen the kernel is managing IPv6 on the interface it is able to add\nmultiple independent routes with the same destination and metric\nbecause it sets the internal flag RTF_ADDRCONF on them, which prevents\nECMP coalescing. This flag can't be set from userspace, and proposals\nto expose it were rejected:\n\n https://lore.kernel.org/netdev/20241105031841.10730-2-Matt.Muggeridge@hpe.com/\n\nThe recommended way to avoid route coalescing is via the nexthop API.\n\nNow each IPv6 route from RA (a default routes or a route from a RIO -\nRoute Information Option) refers to a nexthop object via the RTA_NH_ID\nattribute. The nexthop id is generated by hashing the interface name\nand the gateway, so that the id remains stable across restarts. In\ncase of collisions with other nexthops created by NetworkManager, or\nwith nexthops configured externally, a different id is chosen. To\nmitigate the chance of collisions with external nexthops, we only\nchoose ids with the high bit set.\n\nIn some cases, nexthops can't be used and we fall back to the previous\nbehavior that causes route coalescing. Those cases are:\n\n - If /proc/sys/net/ipv4/nexthop_compat_mode is changed from the\n default 1 to 0, the platform code can't associate routes with the\n corresponding gateway and ifindex, and nexthops must be disabled.\n\n - If the kernel is old, it might lack nexthop support.\n\nAs a final note, in some circumstances the NDisc code previously used\na hack to avoid the merge of routes. If the routes had different\npreferences, the NDisc used to bump the metric of routes with lower\npreference, so that the one with higher preference would normally be\nused. Since this approach was limited to a corner case, it was\nremoved. On a recent kernel with default configuration, the new\nnexthop mechanism will provide a better fix.\n","title":"ndisc: generate IPv6 routes with nexthops to avoid merging","timestamp":"2026-11-20T15:14:06+01:00","url":"https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/commit/99f303d5fb89e08f2161d451d3727c0e21aea8ca","author":{"name":"Beniamino Galvani","email":"bgalvani@redhat.com"},"added":[],"modified":["src/core/ndisc/nm-ndisc-private.h","src/core/ndisc/nm-ndisc.c","src/core/ndisc/nm-ndisc.h"],"removed":[]},{"id":"b8655355ce85eb749e25d499eeef4da39e6ad315","message":"ndisc: add tests for nexthop support\n\nAdd unit tests for the nexthop support in NMNDisc using the\nNMFakePlatform and NMFakeNDisc mocks.\n","title":"ndisc: add tests for nexthop support","timestamp":"2026-11-20T15:14:09+01:00","url":"https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/commit/b8655355ce85eb749e25d499eeef4da39e6ad315","author":{"name":"Beniamino Galvani","email":"bgalvani@redhat.com"},"added":[],"modified":["src/core/ndisc/tests/test-ndisc-fake.c","src/core/platform/nm-fake-platform.c","src/core/platform/nm-fake-platform.h"],"removed":[]},{"id":"7ceabcf225e4fcd78ff68586987993a960ea6555","message":"README: document the minimum kernel version requirements\n\nAfter the last changes, for IPv6 support we need RTA_NH_ID which was\nadded in kernel 5.3 (released in 2019). There was already a note in\nthe README requiring kernel 5.6 (released in 2020) for some ethtool\nfunctionality.\n\nUpdate the requirements to indicate 5.6 as minimum kernel version.\n\nNote that some specific, optional functionality like CLAT might\nrequire a newer kernel. That also needs to be documented, but it will\nbe addressed separately.\n","title":"README: document the minimum kernel version requirements","timestamp":"2026-11-20T15:14:11+01:00","url":"https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/commit/7ceabcf225e4fcd78ff68586987993a960ea6555","author":{"name":"Beniamino Galvani","email":"bgalvani@redhat.com"},"added":[],"modified":["README.md"],"removed":[]},{"id":"ee8af999858dcac5425e7bd7b54da99f2b4ad90c","message":"NEWS: mention nexthop changes\n","title":"NEWS: mention nexthop changes","timestamp":"2026-11-20T15:14:14+01:00","url":"https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/commit/ee8af999858dcac5425e7bd7b54da99f2b4ad90c","author":{"name":"Beniamino Galvani","email":"bgalvani@redhat.com"},"added":[],"modified":["NEWS"],"removed":[]},{"id":"ea60638ebb76ad9917597687053598ebea866e7d","message":"merge: branch 'bg/nexthop'\n\nGenerate IPv6 default routes using nexthop objects\n\nhttps://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/2329","title":"merge: branch 'bg/nexthop'","timestamp":"2026-11-20T14:17:53+00:00","url":"https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/commit/ea60638ebb76ad9917597687053598ebea866e7d","author":{"name":"Beniamino Galvani","email":"bgalvani@redhat.com"},"added":["src/core/tests/test-l3-config-data.c","src/core/tests/test-l3cfg-nexthop.c"],"modified":["NEWS","README.md","src/core/devices/nm-device.c","src/core/ndisc/nm-ndisc-private.h","src/core/ndisc/nm-ndisc.c","src/core/ndisc/nm-ndisc.h","src/core/ndisc/tests/test-ndisc-fake.c","src/core/nm-ip-config.c","src/core/nm-l3-config-data.c","src/core/nm-l3-config-data.h","src/core/nm-l3cfg.c","src/core/nm-netns.c","src/core/nm-netns.h","src/core/platform/nm-fake-platform.c","src/core/platform/nm-fake-platform.h","src/core/platform/tests/test-route.c","src/core/tests/meson.build","src/core/tests/test-core.c","src/core/tests/test-netns.c","src/libnm-glib-aux/nm-inet-utils.h","src/libnm-platform/nm-linux-platform.c","src/libnm-platform/nm-netlink.c","src/libnm-platform/nm-platform.c","src/libnm-platform/nm-platform.h","src/libnm-platform/nmp-base.h","src/libnm-platform/nmp-object.c","src/libnm-platform/nmp-object.h","src/libnm-platform/nmp-plobj.c","src/libnm-platform/nmp-plobj.h"],"removed":[]}],"total_commits_count":15,"push_options":{},"repository":{"name":"NetworkManager","url":"git@ssh.gitlab.freedesktop.org:NetworkManager/NetworkManager.git","description":"NetworkManager — network management daemon","homepage":"https://gitlab.freedesktop.org/NetworkManager/NetworkManager","git_http_url":"https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git","git_ssh_url":"git@ssh.gitlab.freedesktop.org:NetworkManager/NetworkManager.git","visibility_level":20}}