Replies: 2 comments
-
|
For the record, I've added support for ingress_ifindex on my local copy of Aya to support what I need, which was trivial. I am happy to create a PR, but I'm still not clear on why this wasn't added in the first place. If it was intentional, then I don't want to waste people's time with the PR. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
I'm opening #1140 for this and I plan to submit a PR. I'll close this out in favor of tracking the answers there. |
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.
-
Hi,
I saw that the C
struct xdp_mddefined in the Linux headers underinclude/uapi/linux/bpf.hhas a fieldingress_ifindex. When I look at the definition of the XdpContext in Aya here I do not see a way to access that field. Is there a reason for that?At this point I am just playing around, but one of the things I was trying to do was attach the eBPF program to multiple interfaces and get packet counters. In order to do that per-interface with the C API, I was relying on the
ingress_ifindex. Is there an alternative way to do that in Aya?Thanks!
Tim
Beta Was this translation helpful? Give feedback.
All reactions