Skip to content

Conversation

Apokleos
Copy link
Contributor

To make it aligned with runtime-go, we need add only static ARP entries into the targets.

Fixes #11697

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>
@Apokleos Apokleos marked this pull request as ready for review August 19, 2025 12:12
Copy link
Member

@stevenhorsman stevenhorsman left a 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)
Copy link
Member

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

func validGuestNeighbor(neigh netlink.Neigh) bool {
// We add only static ARP entries
return neigh.State == netlink.NUD_PERMANENT
}
in the go runtime

Copy link
Member

@BbolroC BbolroC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thanks @Apokleos !

Copy link
Member

@danmihai1 danmihai1 left a 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 !

@danmihai1 danmihai1 requested a review from Redent0r August 19, 2025 16:08
@lifupan lifupan merged commit b748688 into kata-containers:main Aug 20, 2025
370 of 405 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

runtime-rs: Nontee CI
6 participants