OSDN Git Service

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)
commitc543f54698229b50078b72760b9e8a4731cffa03
treeed13b213a8ce720f0d5439661a11471b0e99643c
parent10d30e301732636d93d7dcd2e0e6cd34d0454509
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