Attach bpf program to clsact qdisc #1220
reshmasreekumar
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!
I see that IPRoute's tc has support to add ingress "bpf" filter on clsact qdisc (https://github.com/svinota/pyroute2/blob/master/pyroute2/netlink/rtnl/tcmsg/sched_clsact.py)
In linux , a similar filter is added as follows:
tc filter add dev ingress bpf da obj <bpf_object_file.o> sec <section_name>
However, in pyroute2, there seems to be no support to use an object file as input. Rather it seems to take only the fd of source file as valid argument. Am I missing something? Being able to use an object file as input is really useful specially when it's CO-RE feature of eBPF program is put to use.
Thanks in advance for any input !
Regards,
RS
Beta Was this translation helpful? Give feedback.
All reactions