-
Notifications
You must be signed in to change notification settings - Fork 726
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
ipvs: add nat-mode support in single-core dpvs #277
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
o In full-nat mode, the link address is added via local_address_group{} and laddr_group_name configured under virtual_server {}. o However within non-full-nat mode, like NAT-mode, we fail to configure the link address via static_address{} because dpdk_port is set to NULL within start_vrrp().
Here is the test result.
|
o In nat-mode, the received ARP entry is targeted to some IP address configured on dpdk interface, we need to find the route of the targeted IP address. However since the route is not of RTF_LOCALIN type, we fails to update the related created ARP entry previously created via the sent ARP request. So the solutiuon is to allow updating the ARP entry if the route is of RTF_KNI type.
andrewhit
changed the title
keepalived: support adding link address via static_ipaddress{}.
ipvs: add nat-mode support
Sep 18, 2018
andrewhit
changed the title
ipvs: add nat-mode support
ipvs: add nat-mode support in decentralized packet dispatch
Sep 18, 2018
andrewhit
changed the title
ipvs: add nat-mode support in decentralized packet dispatch
ipvs: add nat-mode support in single-core dpvs
Sep 18, 2018
mscbg
reviewed
Sep 19, 2018
strcpy(param->ifname, dpdk_port); | ||
} else { | ||
strcpy(param->ifname, ipaddress->ifp->ifname); | ||
} | ||
param->plen = ipaddress->ifa.ifa_prefixlen; |
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 for your pr. And can you add some configuration example in tutorial.md?
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.
Sure. Please check commit 6f57d1d
o In nat-mode, there is no need to configure local_address_group{}, but to configure static_ipaddress{} for the link addresses of dpvs.
o In nat-mode, there is no need to configure local_address_group{}, but to configure static_ipaddress{} for the link addresses of dpvs.
ytwang0320
pushed a commit
to ytwang0320/dpvs
that referenced
this pull request
Dec 22, 2020
ipvs: add nat-mode support in single-core dpvs
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
o In full-nat mode, the link address is added via local_address_group{}
and laddr_group_name configured under virtual_server {}.
o However within non-full-nat mode, like NAT-mode, we fail to configure
the link address via static_address{} because dpdk_port is set to NULL
within start_vrrp().