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

How to attach same XDP program to multiple interfaces #385

Open
byxzone opened this issue Jan 13, 2024 · 2 comments
Open

How to attach same XDP program to multiple interfaces #385

byxzone opened this issue Jan 13, 2024 · 2 comments

Comments

@byxzone
Copy link

byxzone commented Jan 13, 2024

I want to simultaneously attach the same XDP program to multiple InterFaces.
In libxdp, xdp_program__attach only can attach to one InterFace , if I use this function multi times, it will create multi Maps , but i want they use same Maps to interact with others
How can i do it ?

@byxzone
Copy link
Author

byxzone commented Jan 13, 2024

My scenario is like this: a machine loaded with XDP programs acts as a gateway, while attaching XDP programs on two (or more)InterFaces to complete SNAT/DNAT operations

@tohojo
Copy link
Member

tohojo commented Jan 14, 2024 via email

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

No branches or pull requests

2 participants