prog: Allow explicit ifindex specification#1842
Conversation
lmb
left a comment
There was a problem hiding this comment.
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