Re: [PATCH bpf-next] libbpf: add xsk_umem__adjust_offset

2019-09-13 Thread Yonghong Song
On 9/12/19 8:28 AM, Kevin Laatz wrote: > Currently, xsk_umem_adjust_offset exists as a kernel internal function. > This patch adds xsk_umem__adjust_offset to libbpf so that it can be used > from userspace. This will take the responsibility of properly storing the > offset away from the applicatio

Re: [PATCH bpf-next] libbpf: add xsk_umem__adjust_offset

2019-09-13 Thread Björn Töpel
On 2019-09-13 12:21, Laatz, Kevin wrote: On 13/09/2019 05:59, Björn Töpel wrote: On Thu, 12 Sep 2019 at 17:47, Kevin Laatz wrote: Currently, xsk_umem_adjust_offset exists as a kernel internal function. This patch adds xsk_umem__adjust_offset to libbpf so that it can be used from userspace. Thi

Re: [PATCH bpf-next] libbpf: add xsk_umem__adjust_offset

2019-09-13 Thread Laatz, Kevin
On 13/09/2019 05:59, Björn Töpel wrote: On Thu, 12 Sep 2019 at 17:47, Kevin Laatz wrote: Currently, xsk_umem_adjust_offset exists as a kernel internal function. This patch adds xsk_umem__adjust_offset to libbpf so that it can be used from userspace. This will take the responsibility of properly

Re: [PATCH bpf-next] libbpf: add xsk_umem__adjust_offset

2019-09-12 Thread Björn Töpel
On Thu, 12 Sep 2019 at 17:47, Kevin Laatz wrote: > > Currently, xsk_umem_adjust_offset exists as a kernel internal function. > This patch adds xsk_umem__adjust_offset to libbpf so that it can be used > from userspace. This will take the responsibility of properly storing the > offset away from the

[PATCH bpf-next] libbpf: add xsk_umem__adjust_offset

2019-09-12 Thread Kevin Laatz
Currently, xsk_umem_adjust_offset exists as a kernel internal function. This patch adds xsk_umem__adjust_offset to libbpf so that it can be used from userspace. This will take the responsibility of properly storing the offset away from the application, making it less error prone. Since xsk_umem__a