On 02/19/2019 04:57 PM, Jesper Dangaard Brouer wrote:
> On Tue, 19 Feb 2019 12:46:57 +0100
> Daniel Borkmann <dan...@iogearbox.net> wrote:
> 
>>> Due to lack of TC examples, lets show howto attach clsact BPF programs:
>>>
>>>  # tc qdisc  add     dev ixgbe2 clsact
>>>  # tc filter replace dev ixgbe2 egress bpf da obj XXX_kern.o sec tc_qmap2cpu
>>>  # tc filter list    dev ixgbe2 egress
> 
> Recommending the "replace" is wrong is seems, as does not replace the
> existing, but keeps adding more filter entries.
> 
> What is the recommended procedure for unloading and loading a newer
> version of the BPF TC program?

You would need to specify prio / handle in order to select a particular
instance for atomic replacement:

tc filter replace dev foo {e,in}gress prio 1 handle 1 bpf da obj foo.o

Reply via email to