]> git.baikalelectronics.ru Git - kernel.git/commit
libbpf: add flags to umem config
authorKevin Laatz <kevin.laatz@intel.com>
Tue, 27 Aug 2019 02:25:27 +0000 (02:25 +0000)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 30 Aug 2019 23:08:26 +0000 (01:08 +0200)
commiteff0fc4c95a1658e4b8cbee3239f7d77bda2971d
treea24726ccbccd1988bfe36129545b459acd03d07c
parentead0a562c7402ba6546bf44dcc86b9ae2cf71477
libbpf: add flags to umem config

This patch adds a 'flags' field to the umem_config and umem_reg structs.
This will allow for more options to be added for configuring umems.

The first use for the flags field is to add a flag for unaligned chunks
mode. These flags can either be user-provided or filled with a default.

Since we change the size of the xsk_umem_config struct, we need to version
the ABI. This patch includes the ABI versioning for xsk_umem__create. The
Makefile was also updated to handle multiple function versions in
check-abi.

Signed-off-by: Kevin Laatz <kevin.laatz@intel.com>
Signed-off-by: Ciara Loftus <ciara.loftus@intel.com>
Acked-by: Jonathan Lemon <jonathan.lemon@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/include/uapi/linux/if_xdp.h
tools/lib/bpf/Makefile
tools/lib/bpf/libbpf.map
tools/lib/bpf/xsk.c
tools/lib/bpf/xsk.h