Re: [v4,2/4] tools: bpftool: add net detach command to detach XDP on interface

2019-08-11 Thread Y Song
On Fri, Aug 9, 2019 at 6:35 AM Daniel T. Lee wrote: > > By this commit, using `bpftool net detach`, the attached XDP prog can > be detached. Detaching the BPF prog will be done through libbpf > 'bpf_set_link_xdp_fd' with the progfd set to -1. > > Signed-off-by: Daniel T. Lee > --- > tools/bpf/bp

[v4,2/4] tools: bpftool: add net detach command to detach XDP on interface

2019-08-09 Thread Daniel T. Lee
By this commit, using `bpftool net detach`, the attached XDP prog can be detached. Detaching the BPF prog will be done through libbpf 'bpf_set_link_xdp_fd' with the progfd set to -1. Signed-off-by: Daniel T. Lee --- tools/bpf/bpftool/net.c | 42 - 1 file c