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

Fix ARP and NDP next-hop detection with RSS #984

Merged
merged 5 commits into from
Sep 29, 2017
Merged

Conversation

wingo
Copy link

@wingo wingo commented Sep 28, 2017

Attempt to fix #981 by having the ARP app that receives an ARP response write that MAC to shared memory. Likewise for NDP. When apps are still resolving addresses, they will try to read from a shared file also.

Add shared_next_mac_key to ARP configuration to allow workers behind RSS
to share next-hop information.
Add shared_next_mac_key to NDP configuration to allow workers behind RSS
to share next-hop information.
print(("ARP: '%s' resolved (%s)"):format(ipv4:ntop(ip), ethernet:ntop(mac)))
if self.alarm_notification then
resolve_alarm:clear()
end
self.next_mac = mac
if self.shared_next_mac_key then
local ok, shared_mac = pcall(shm.create, self.shared_next_mac_key, mac_t)
Copy link
Member

@takikawa takikawa Sep 28, 2017

Choose a reason for hiding this comment

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

Does shared_mac need to be shm.unmaped at the end of the block or is it ok to leave it?

Copy link
Member

@takikawa takikawa left a comment

Choose a reason for hiding this comment

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

LGTM (one minor nit commented)

@wingo wingo merged commit db74dd1 into lwaftr Sep 29, 2017
@wingo wingo deleted the shared-next-mac-key branch April 18, 2018 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Next-hop discovery versus RSS
2 participants