On Thu, Nov 19, 2026 at 7:07 AM Guillaume Boutry
<[email protected]> wrote:
>
> This series makes neighbor dumps atomic and keeps EVPN observations
> across failed dumps. The first patch stages learned rows and pending
> kernel changes until the dump completes. The second keeps the last
> complete observations for each monitored link and invalidates them
> when the link monitor detects rename or replacement.
>
Hi Guillaume, thanks for the v2.
I think the current split of the series is wrong, because patch 1 on
its own is a regression. In a series, each patch has to be correct
without relying on the patches after it, since people bisect and
backport individual commits.
Here's the problem: when a dump fails partway through, main still
publishes the entries it got. With only patch 1, received_neighbors
stays empty, and because neighbor_exchange_run() rebuilds remote_vteps,
static_fdbs and static_arps from scratch on every run, that interface
contributes nothing. The EVPN bindings and flows for that VNI get
removed until a dump succeeds again. Patch 2 is what fixes that, so
the two can't be separate. Meanwhile patch 2 also includes an
unrelated fix: the rename handling in if_notifier_cb() fixes an
existing bug where renaming a watched link leaves the old mapping
behind.
I'd reorganize it so each patch fixes one bug:
1. host-if-monitor: Drop stale mapping on rename. Only the rename fix,
keeping the existing simap API.
Fixes: 2257c01f579d ("controller: Add host-if-monitor to track
(Linux) interface indices.")
2. neighbor-exchange: Rate-limit retries after failed operations. Only
the 1s timer. Persistent add/delete failures already busy-loop today,
and this has to land before 3 so that reporting dump errors doesn't
add a new busy loop. Since retrying on the next iteration was
deliberate (see 513048b06606), please explain the change in the commit
message.
Fixes: a6bd68fe5d38 ("controller: Add I-P to monitor host
interfaces and synchronize neighbors.")
3. neighbor-exchange: Don't treat failed dumps as complete. Dump
failure detection and per-interface retention together, since neither
works without the other.
Fixes: ad3a0a55b551 ("controller: Support monitoring/updating
neighbor entries through Netlink.")
With 1 in place, I think keying the snapshots on (if_index, family,
type, vni) is enough. If you want to keep the generation counter,
please put it in 3 so that patch is self-contained.
Best,
Han
> Changes in v2
> - Rebase onto 0781c00775c2 and split dump handling from EVPN retention.
> - Skip unusable records, reject interrupted dumps, and use a one-second
> self-retry timer. Other controller events can trigger a run sooner.
> - Cover rename, link replacement, write errors, and recovery.
>
> Tested with selected OVN userspace and kernel tests. In live EVPN tests
> on Linux 7.0.0-38-generic, the series retained observations during
> injected dump failures and withdrew stale entries after link rename in
> both Southbound monitor modes.
>
> With the pinned OVS version, nl_dump_done() can return success when
> the kernel reports an error only in the NLMSG_DONE payload. OVN may
> then treat a partial dump as complete.
>
> Guillaume Boutry (2):
> controller: Abort sync on failed neighbor dumps.
> controller: Retain EVPN state after failed dumps.
>
> controller/host-if-monitor-stub.c | 6 +-
> controller/host-if-monitor.c | 83 ++--
> controller/host-if-monitor.h | 9 +-
> controller/neighbor-exchange-netlink.c | 114 ++++--
> controller/neighbor-exchange-netlink.h | 2 +-
> controller/neighbor-exchange-stub.c | 11 +-
> controller/neighbor-exchange.c | 139 +++++--
> controller/neighbor-exchange.h | 5 +-
> controller/ovn-controller.c | 12 +-
> tests/automake.mk | 10 +
> tests/system-ovn-netlink.at | 70 ++++
> tests/test-ovn-netlink.c | 504 ++++++++++++++++++++++++-
> 12 files changed, 850 insertions(+), 115 deletions(-)
>
>
> base-commit: 0781c00775c287029f4b7e79442d0b1b9eea1553
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev