summaryrefslogtreecommitdiff
path: root/include/uapi/linux/poll.h
diff options
context:
space:
mode:
authorTanner Love <tannerlove@google.com>2020-11-06 13:07:40 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-05-14 09:50:38 +0200
commit3a1c395703bef879cc13b4b02530db72d2c3aeb6 (patch)
tree35dc25fb87b0d2917c76073d857971353bb2ddb3 /include/uapi/linux/poll.h
parentd10c5162b4931a48bf95783e67c380f2af3397cd (diff)
net/packet: make packet_fanout.arr size configurable up to 64K
[ Upstream commit 9c661b0b85444e426d3f23250305eeb16f6ffe88 ] One use case of PACKET_FANOUT is lockless reception with one socket per CPU. 256 is a practical limit on increasingly many machines. Increase PACKET_FANOUT_MAX to 64K. Expand setsockopt PACKET_FANOUT to take an extra argument max_num_members. Also explicitly define a fanout_args struct, instead of implicitly casting to an integer. This documents the API and simplifies the control flow. If max_num_members is not specified or is set to 0, then 256 is used, same as before. Signed-off-by: Tanner Love <tannerlove@google.com> Signed-off-by: Willem de Bruijn <willemb@google.com> Reviewed-by: Eric Dumazet <edumazet@google.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/uapi/linux/poll.h')
0 files changed, 0 insertions, 0 deletions