-
Notifications
You must be signed in to change notification settings - Fork 48
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
Attaching EBPF program returns no such file or directory #32
Comments
Thanks for your report 👍 The feedback from the netlink subsystem of the kernel is limited. Reading your code I noticed some differences to the gist example.
Wrt deleting the filer - there is already issue #17 . But I didn't find time taking a closer look so far. |
Hi Florian, Thank you for your response. I am actually a bit confused on the I actually tried to run the program with the |
I just remember that The following settings I applied to your example and it works now:
|
Hi Florian, I noticed that the changes you made are Based on my understanding, since the parent of the qdisc is In terms of Thank you so much for your help, I really appreciate it. |
Besides the man page tc(8) there is more documentation at https://www.infradead.org/~tgr/libnl/doc/route.html#route_tc. Therefore I'm closing this issue. |
Hi Florian,
I am currently working on a project which requires to load ebpf program to the tc ingress hook. I followed the example you provided a while ago: https://gist.github.com/florianl/8f421e57f419fa9a50eb5b085363de66. There are some changes on the go-tc package but I tried to update the sample code to adapt the newest version.
The error I got is: could not assign eBPF: netlink receive: no such file or directory.
Brief introduction on what I did:
bpf program trying to load:
then using the gobpf library to load bpf program
after that, open the rtnl and find the deviceID
once that part is covered, I added clsact qdisc for adding ebpf filter
the delete method provided in sample code seems not working, so I modified it a little bit for testing purpose:
at the end, I created a tc bpf filter
That's pretty much it, I am also gonna to include a full program at the end. After run the program, I got could not assign ebpf: netlink receive: no such file or directory error. My assumption is that when adding the bpf filter, it is trying to find the ebpf file but cannot find it. I am wondering if I did something wrong? Thank you.
The text was updated successfully, but these errors were encountered: