Attaching to TCX Ingress/Egress makes the BPF program run on both ends for some reason? #1834
Replies: 1 comment
-
Turns out it doesn't happen on actual network interfaces, just loopback. Not sure why, but I don't care too much. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello there.
BPF code is simple:
It just prints a message every time a program fires.
Go code:
The BPF program loads and verifies as expected, I can see the packet in Wireshark and it looks as expected. Problem: upon checking the tracepipe, I see the "Hello world" message twice per sent packet. Which means the BPF program, supposedly attached to egress, fires twice. Which means it fires on both ingress and egress. I tried switching the program and attaching to ingress instead - it produces the same behaviour. I've consulted the docs and TCX example and I don't think I've done anything wrong. This is executed on a VM so there's no other traffic going on.
Any ideas?
Beta Was this translation helpful? Give feedback.
All reactions