Re: [PATCH bpf-next v3 08/11] samples/bpf: add unaligned chunks mode support to xdpsock

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 25/07/2019 10:43, Maxim Mikityanskiy wrote:
On 2019-07-24 08:10, Kevin Laatz wrote:
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@xxxxxxxxx>
Signed-off-by: Ciara Loftus <ciara.loftus@xxxxxxxxx>
---
   samples/bpf/xdpsock_user.c | 17 +++++++++++++++--
   1 file changed, 15 insertions(+), 2 deletions(-)
<...>

@@ -372,6 +378,7 @@ static void usage(const char *prog)
   		"  -z, --zero-copy      Force zero-copy mode.\n"
   		"  -c, --copy           Force copy mode.\n"
   		"  -f, --frame-size=n   Set the frame size (must be a power of two, default is %d).\n"
Help text for -f has to be updated, it doesn't have to be a power of two
if -u is specified.

Will fix in the v4, thanks!






[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux