Thread (4 messages) flat view 4 messages, 4 authors, 2021-05-06

Re: [PATCH bpf] samples/bpf: consider frame size in tx_only of xdpsock sample

From: Daniel Borkmann <daniel@iogearbox.net>
Date: 2021-05-06 23:30:14
Also in: bpf

On 5/6/21 2:43 PM, Magnus Karlsson wrote:
From: Magnus Karlsson <magnus.karlsson@intel.com>

Fix the tx_only micro-benchmark in xdpsock to take frame size into
consideration. It was hardcoded to the default value of frame_size
which is 4K. Changing this on the command line to 2K made half of the
packets illegal as they were outside the umem and were therefore
discarded by the kernel.

Fixes: 46738f73ea4f ("samples/bpf: add use of need_wakeup flag in xdpsock")
Signed-off-by: Magnus Karlsson <magnus.karlsson@intel.com>
Applied, thanks!
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help