-
Notifications
You must be signed in to change notification settings - Fork 769
prog: Allow explicit ifindex specification #1842
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
Conversation
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.
Is it possible to bind an XDP program to lo
? If yes, please add a unit test.
It seems to be possible to bind XDP programs to |
1776e56
to
5d62ce6
Compare
How about adding a test which just loads a minimal XDP program which is bound to lo, without the kfunc? (There are plenty examples in the code base) I think that is enough to validate that binding works. Kfuncs already have coverage otherwise. |
Theres a caveat:
Where ifindex=3 is Intel XL710 NIC. Seems not to work with |
Turned the test into a negative check instead. |
94be5aa
to
51c0529
Compare
2058fd4
to
4a80553
Compare
Signed-off-by: Aapo Poutanen <[email protected]> Co-authored-by: Timo Beckers <[email protected]>
fixes #1841