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

2019-08-02 Thread Daniel T. Lee
On Fri, Aug 2, 2019 at 3:26 PM Y Song wrote: > > On Thu, Aug 1, 2019 at 2:04 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 -

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

2019-08-01 Thread Y Song
On Thu, Aug 1, 2019 at 2:04 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 > --- > Changes in v2

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

2019-08-01 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 --- Changes in v2: - command 'unload' changed to 'detach' for the consistency too