Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

node-neigh: Avoid flooding the same next hop #15882

Merged
merged 2 commits into from May 7, 2021
Merged

Conversation

brb
Copy link
Member

@brb brb commented Apr 27, 2021

See commit msgs.

Fixes #14817

@brb brb added area/daemon Impacts operation of the Cilium daemon. needs-backport/1.8 labels Apr 27, 2021
@maintainer-s-little-helper maintainer-s-little-helper bot added the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label Apr 27, 2021
@maintainer-s-little-helper maintainer-s-little-helper bot added this to In progress in 1.10.0 Apr 27, 2021
@maintainer-s-little-helper maintainer-s-little-helper bot added this to Needs backport from master in 1.9.7 Apr 27, 2021
@maintainer-s-little-helper maintainer-s-little-helper bot added this to Needs backport from master in 1.8.10 Apr 27, 2021
@brb brb added the release-note/misc This PR makes changes that have no direct user impact. label Apr 27, 2021
@maintainer-s-little-helper maintainer-s-little-helper bot removed the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label Apr 27, 2021
@brb
Copy link
Member Author

brb commented Apr 28, 2021

test-net-next

When nodes are connected via L3 GW, the periodic ARP refresher pings the
same IP (GW). To avoid that, introduce neighLastPingByNextHop which
stores a timestamp of the last successful arping for a given next hop.
If delta between the last and the next arping is less than
option.Config.ARPPingRefreshPeriod, then the arping is skipped until the
next time the refresher is scheduled.

Signed-off-by: Martynas Pumputis <m@lambda.lt>
@brb brb force-pushed the pr/brb/arping-no-flood branch from 956ee6b to e88b5c4 Compare May 6, 2021 08:44
The impact of the wrong removal was very small - unnecessary neigh
insert via netlink and dangling unused value. This could have happened
under very rare circumstances when a next hop to a node had changed.

Fixes: 0483ba0 ("node-neigh: Do not inc neighbor refcount for the same node")
Signed-off-by: Martynas Pumputis <m@lambda.lt>
@brb brb marked this pull request as ready for review May 6, 2021 08:46
@brb brb requested review from a team and borkmann May 6, 2021 08:46
@brb
Copy link
Member Author

brb commented May 6, 2021

test-me-please

@brb
Copy link
Member Author

brb commented May 6, 2021

CI net-next hit #13853.

@brb
Copy link
Member Author

brb commented May 7, 2021

The CI failure is explained in #15882 (comment), got ACK from reviewers, marking as ready to merge.

@brb brb added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label May 7, 2021
@maintainer-s-little-helper maintainer-s-little-helper bot added this to Needs backport from master in 1.10.0-rc2 May 7, 2021
@ti-mo ti-mo merged commit a753b38 into master May 7, 2021
1.10.0 automation moved this from In progress to Done May 7, 2021
@ti-mo ti-mo deleted the pr/brb/arping-no-flood branch May 7, 2021 09:02
@brb brb mentioned this pull request May 7, 2021
@maintainer-s-little-helper maintainer-s-little-helper bot moved this from Needs backport from master to Backport pending to v1.8 in 1.8.10 May 7, 2021
@brb brb mentioned this pull request May 7, 2021
@maintainer-s-little-helper maintainer-s-little-helper bot moved this from Needs backport from master to Backport pending to v1.9 in 1.9.7 May 7, 2021
@brb brb mentioned this pull request May 7, 2021
@maintainer-s-little-helper maintainer-s-little-helper bot moved this from Backport pending to v1.8 to Backport done to v1.8 in 1.8.10 May 7, 2021
@maintainer-s-little-helper maintainer-s-little-helper bot moved this from Backport pending to v1.8 to Backport done to v1.8 in 1.8.10 May 7, 2021
@maintainer-s-little-helper maintainer-s-little-helper bot moved this from Needs backport from master to Backport pending to v1.10 in 1.10.0-rc2 May 7, 2021
@maintainer-s-little-helper maintainer-s-little-helper bot moved this from Backport pending to v1.9 to Backport done to v1.9 in 1.9.7 May 10, 2021
@aanm aanm moved this from Backport pending to v1.10 to Backport done to v1.10 in 1.10.0-rc2 May 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/daemon Impacts operation of the Cilium daemon. ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/misc This PR makes changes that have no direct user impact.
Projects
No open projects
1.10.0-rc2
Backport done to v1.10
1.8.10
Backport done to v1.8
1.9.7
Backport done to v1.9
Development

Successfully merging this pull request may close these issues.

node-neigh: Do not arping if last request to nexthop was issued less than ARP timeout ago
4 participants