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

[DHCPv6 relay] [202106] Fix DHCPv6 design to support multiple VLANS #9163

Merged
merged 2 commits into from
Nov 18, 2021
Merged

[DHCPv6 relay] [202106] Fix DHCPv6 design to support multiple VLANS #9163

merged 2 commits into from
Nov 18, 2021

Conversation

shlomibitton
Copy link
Contributor

Why I did it

If multiple Vlans are configured to have DHCPv6 relay, only one relay instance is able to capture DHCP packets received from upstream, this is as a result of kernel design to operate this way (SO_REUSEPORT).
DHCPv6 transmit unicast packets to clients, only multicast packets can be captured on multiple application listening on the same UDP port.
This issue causing only one Vlan interface to get packets from servers.

How I did it

Change the design to neglect Vlan isolation and run only one relay instance serving all Vlans with all configured DHCP servers.

How to verify it

Run DHCPv6 relay test with 2 Vlans configured do have a DHCP relay.

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106

Description for the changelog

A picture of a cute animal (not mandatory but encouraged)

Adapt UT to new design

Signed-off-by: Shlomi Bitton <shlomibi@nvidia.com>
@shlomibitton shlomibitton requested a review from lguohan as a code owner November 3, 2021 10:56
@liat-grozovik
Copy link
Collaborator

@yxieca and could you please help to review or assign someone ?

@nazariig
Copy link
Collaborator

@liat-grozovik can you please help to merge?

@liat-grozovik liat-grozovik merged commit 1ebe528 into sonic-net:202106 Nov 18, 2021
@shlomibitton shlomibitton deleted the shlomi_dhcp6_relay_vlans_no_isolation_fix branch March 15, 2022 10:00
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.

4 participants