net: make SO_BUSY_POLL available to all users
authorEric Dumazet <edumazet@google.com>
Thu, 6 Apr 2023 19:46:34 +0000 (19:46 +0000)
committerJakub Kicinski <kuba@kernel.org>
Sat, 8 Apr 2023 03:07:07 +0000 (20:07 -0700)
commit48b7ea1d22ddf657e2692fb2b399138a02d31c17
tree24b070b322b98c4c2958258a4bb8329b180656c0
parent039a692ad93e5d2f7327a26ba19cf37b1d763788
net: make SO_BUSY_POLL available to all users

After commit 217f69743681 ("net: busy-poll: allow preemption
in sk_busy_loop()"), a thread willing to use busy polling
is not hurting other threads anymore in a non preempt kernel.

I think it is safe to remove CAP_NET_ADMIN check.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Link: https://lore.kernel.org/r/20230406194634.1804691-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/core/sock.c