OSDN Git Service

net: Add SO_BUSY_POLL_BUDGET socket option
authorBjörn Töpel <bjorn.topel@intel.com>
Mon, 30 Nov 2020 18:51:57 +0000 (19:51 +0100)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 30 Nov 2020 23:09:25 +0000 (00:09 +0100)
commit7c951cafc0cb2e575f1d58677b95ac387ac0a5bd
tree1d47f6c2fb6e3734d52c96a1f0abcf38e2c08cf5
parent7fd3253a7de6a317a0683f83739479fb880bffc8
net: Add SO_BUSY_POLL_BUDGET socket option

This option lets a user set a per socket NAPI budget for
busy-polling. If the options is not set, it will use the default of 8.

Signed-off-by: Björn Töpel <bjorn.topel@intel.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: Jakub Kicinski <kuba@kernel.org>
Link: https://lore.kernel.org/bpf/20201130185205.196029-3-bjorn.topel@gmail.com
arch/alpha/include/uapi/asm/socket.h
arch/mips/include/uapi/asm/socket.h
arch/parisc/include/uapi/asm/socket.h
arch/sparc/include/uapi/asm/socket.h
fs/eventpoll.c
include/net/busy_poll.h
include/net/sock.h
include/uapi/asm-generic/socket.h
net/core/dev.c
net/core/sock.c