]> git.baikalelectronics.ru Git - kernel.git/commit
samples/bpf: Add busy-poll support to xdpsock
authorBjörn Töpel <bjorn.topel@intel.com>
Mon, 30 Nov 2020 18:52:04 +0000 (19:52 +0100)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 30 Nov 2020 23:09:25 +0000 (00:09 +0100)
commit10c9facddb2a49a87072ae1692f7453a317957cd
treeb042554f7e51e3ab96b2e8c19200b4365646bc6b
parent5aa95b7f715ef7a8d9ec8f22ea3a1921f2ef30ac
samples/bpf: Add busy-poll support to xdpsock

Add a new option to xdpsock, 'B', for busy-polling. This option will
also set the batching size, 'b' option, to the busy-poll budget.

Signed-off-by: Björn Töpel <bjorn.topel@intel.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Magnus Karlsson <magnus.karlsson@intel.com>
Link: https://lore.kernel.org/bpf/20201130185205.196029-10-bjorn.topel@gmail.com
samples/bpf/xdpsock_user.c