Query if a TC program is attached

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, I am attaching an eBPF program to a TC clsacr qdisc both ingress &
egress to intercept traffic. The programs are pinned to ensure that
even if the associated userspace binary gets killed, eBPF programs
continue to run.

If the binary gets killed it is restarted and it gets the reference to
the pinned programs. But there is a possibility that during the time
it takes to relaunch, the qdisc these programs were attached to, goes
away. Lets say due to the network interface going down and coming up.
That means programs are loaded but not attached to the qdisc.

Is there a way to query if a program is attached to a qdisc? There is
an API bpf_tc_query() that can be used to query if any filter is
attached but not to query if a specific program is attached.

Thanks and regards,
Dominic



[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux