]> git.baikalelectronics.ru Git - kernel.git/commit
samples/bpf: add unaligned chunks mode support to xdpsock
authorKevin Laatz <kevin.laatz@intel.com>
Tue, 27 Aug 2019 02:25:28 +0000 (02:25 +0000)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 30 Aug 2019 23:08:26 +0000 (01:08 +0200)
commitc489db1ad20f24083c4efe683b5e0bc30c55ce21
treeed13b213a8ce720f0d5439661a11471b0e99643c
parenteff0fc4c95a1658e4b8cbee3239f7d77bda2971d
samples/bpf: add unaligned chunks mode support to xdpsock

This patch adds support for the unaligned chunks mode. The addition of the
unaligned chunks option will allow users to run the application with more
relaxed chunk placement in the XDP umem.

Unaligned chunks mode can be used with the '-u' or '--unaligned' command
line options.

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>
samples/bpf/xdpsock_user.c