Repository navigation
fix(gateway): Deliver the first DSR reply to an unresolved client router - #1551
Conversation
edge_return dropped a reply whose route to the client had no neighbour entry (BPF_FIB_LKUP_RET_NO_NEIGH) and counted it as fib_no_neigh. XDP cannot start neighbour resolution, so the reply was lost until something else resolved the neighbour, as after a neighbour flush or a link flap. edge_return_v6 and edge_return_v4 now return XDP_PASS on NO_NEIGH with the frame unmodified, as edge_lb does for an encapsulated request, and count the reply in neigh_fallbacks. The kernel decrements the hop limit or TTL, resolves the neighbour, forwards the reply, tagging it for a tagged public side, and later replies stay in XDP. NOT_FWDED and the other lookup failures remain counted drops. The fallback reply crosses netfilter with no conntrack entry, so a reply conntrack judges INVALID, such as a TCP SYN-ACK, is still dropped by an INVALID-dropping FORWARD rule like kube-proxy's KUBE-FORWARD. Tests: a test run per family checks the verdict, the unchanged frame and the counters. A real-kernel test in the VLAN transport lab leaves the client router's neighbour unresolved and shows the first reply reaching it through the kernel with the public side's tag, and the second staying in XDP, for IPv4 and IPv6, untagged and tagged, in native and generic mode. Fixes #1550
|
Test evidence at
With only Local checks: |
A reply edge_return hands to the kernel for an unresolved neighbor counts in galactic_edge_return_packets_total but is forwarded by the kernel, and never counts as dropped.
|
Review record for
CI is green on |
The lab acceptance report now holds the smoke pass of C1 and C4: the code, deployment and run, each failing row's finding and disposition, and the lab's state after the revert. C1 passes but for V07, which #1551 fixes after these images. C4's datapath rows give no verdict, because the harness left the BGP routes on the untagged parents. C4's V11 and V13 failures are stale XDP hooks, #1552.
The lab acceptance report now holds the smoke pass of C1 and C4: the code, deployment and run, each failing row's finding and disposition, and the lab's state after the revert. C1 passes but for V07, which #1551 fixes after these images. C4's datapath rows give no verdict, because the harness left the BGP routes on the untagged parents. C4's V11 and V13 failures are stale XDP hooks, #1552.
Fixes #1550
The gateway dropped the first DSR reply to a client whose next-hop router it had not yet resolved, so that reply was lost until something else resolved the router. The gateway now hands that reply to the kernel, which resolves the router and delivers it, and counts it as a neighbour fallback instead of a drop. A reply the kernel's connection tracking rejects, such as a TCP SYN-ACK on a node running kube-proxy, is still dropped there, as before.
Test output and the reproduction before the fix are in the first comment.