Re: [PATCH bpf-next 2/6] samples: bpf: Convert XDP samples to libbpf usage

2019-01-25 Thread Jesper Dangaard Brouer
On Thu, 17 Jan 2019 02:01:11 +0100 Maciej Fijalkowski wrote: > Some of XDP samples that are attaching the bpf program to the interface > via libbpf's bpf_set_link_xdp_fd are still using the bpf_load.c for > loading and manipulating the ebpf program and maps. Convert them to do > this through libb

Re: [PATCH bpf-next 2/6] samples: bpf: Convert XDP samples to libbpf usage

2019-01-17 Thread Jesper Dangaard Brouer
On Thu, 17 Jan 2019 02:01:11 +0100 Maciej Fijalkowski wrote: > xdp_redirect_cpu is omitted because of read_trace_pipe() usage, which > doesn't seem to be handled in libbpf ATM. The sample xdp_redirect_cpu, doesn't need to use read_trace_pipe(). I'll send a patch to remove it (that you can includ

[PATCH bpf-next 2/6] samples: bpf: Convert XDP samples to libbpf usage

2019-01-16 Thread Maciej Fijalkowski
Some of XDP samples that are attaching the bpf program to the interface via libbpf's bpf_set_link_xdp_fd are still using the bpf_load.c for loading and manipulating the ebpf program and maps. Convert them to do this through libbpf usage and remove bpf_load from the picture. While at it remove what