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
Showing
- arch/alpha/include/uapi/asm/socket.h 1 addition, 0 deletionsarch/alpha/include/uapi/asm/socket.h
- arch/mips/include/uapi/asm/socket.h 1 addition, 0 deletionsarch/mips/include/uapi/asm/socket.h
- arch/parisc/include/uapi/asm/socket.h 1 addition, 0 deletionsarch/parisc/include/uapi/asm/socket.h
- arch/sparc/include/uapi/asm/socket.h 1 addition, 0 deletionsarch/sparc/include/uapi/asm/socket.h
- fs/eventpoll.c 2 additions, 1 deletionfs/eventpoll.c
- include/net/busy_poll.h 5 additions, 2 deletionsinclude/net/busy_poll.h
- include/net/sock.h 2 additions, 0 deletionsinclude/net/sock.h
- include/uapi/asm-generic/socket.h 1 addition, 0 deletionsinclude/uapi/asm-generic/socket.h
- net/core/dev.c 10 additions, 11 deletionsnet/core/dev.c
- net/core/sock.c 10 additions, 0 deletionsnet/core/sock.c
Loading
Please register or sign in to comment