-
Notifications
You must be signed in to change notification settings - Fork 22
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
Add AF_XDP support #849
Add AF_XDP support #849
Conversation
9be0582
to
4f1a810
Compare
} else { // If we don't have a VPPAPISocket, start VPP and use that | ||
if err = cfg.VppInit.Decode("AF_PACKET"); err != nil { | ||
|
||
if err = cfg.VppInit.Decode("NONE"); err != nil { |
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.
I see that this if branch
comes from the main. But the decode looks unnecessary here. I think we should do decode once on env config decoding.
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.
This Decode("NONE")
was added for Calico-VPP.
Since forwarder uses an external VppAPISocket, Calico already created a management interface and we don't need to do it again (even if the settings has "AF_PACKET" or "AF_XDP").
Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>
Signed-off-by: Artem Glazychev <artem.glazychev@xored.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.
@edwarnicke Do you have any comments?
@edwarnicke Feel free to add comments on these changes and we'll consider them in separate PR. |
…d-forwarder-vpp@main PR link: networkservicemesh/cmd-forwarder-vpp#849 Commit: a15565e Author: Artem Glazychev Date: 2023-04-25 16:20:27 +0700 Message: - Add AF_XDP support (#849) * Add AF_XDP support Signed-off-by: Artem Glazychev <artem.glazychev@xored.com> * Fix review comments Signed-off-by: Artem Glazychev <artem.glazychev@xored.com> --------- Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k-vpp@main PR link: networkservicemesh/sdk-vpp#849 Commit: d1cb444 Author: Nikita Skrynnik Date: 2024-09-13 19:32:28 +0700 Message: - add logs before creating and deleting tap intefaces (#849) Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
Description
This PR adds
AF_XDP
support for the management interface.Main changes:
af_xdp
API callIssue: #283