-
Notifications
You must be signed in to change notification settings - Fork 1.2k
runtime-rs: Add only static ARP entries with handle_neighours #11698
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
Conversation
To make it aligned with runtime-go, we need add only static ARP entries into the targets. Fixes kata-containers#11697 Signed-off-by: Alex Lyn <alex.lyn@antgroup.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks @Apokleos!
| // We add only static ARP entries | ||
| let neighbors: Vec<ARPNeighbor> = all_neighbors | ||
| .iter() | ||
| .filter(|n| n.state == NUD_PERMANENT as i32) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For future reference I think this logic is replicating
kata-containers/src/runtime/virtcontainers/network_linux.go
Lines 1617 to 1620 in c92bb1a
| func validGuestNeighbor(neigh netlink.Neigh) bool { | |
| // We add only static ARP entries | |
| return neigh.State == netlink.NUD_PERMANENT | |
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM thanks @Apokleos !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @Apokleos and @stevenhorsman !
To make it aligned with runtime-go, we need add only static ARP entries into the targets.
Fixes #11697