]> git.baikalelectronics.ru Git - kernel.git/commit
net: Commonize busy polling code to focus on napi_id instead of socket
authorSridhar Samudrala <sridhar.samudrala@intel.com>
Fri, 24 Mar 2017 17:08:24 +0000 (10:08 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 25 Mar 2017 03:49:31 +0000 (20:49 -0700)
commitbabbb65acf6d83de30866965cb07e25474fbda28
tree4280f554866625190cd24db1768927764ba2bc77
parent8cbe4043792507bf1ca9dc49bdfe13bc66e27574
net: Commonize busy polling code to focus on napi_id instead of socket

Move the core functionality in sk_busy_loop() to napi_busy_loop() and
make it independent of sk.

This enables re-using this function in epoll busy loop implementation.

Signed-off-by: Sridhar Samudrala <sridhar.samudrala@intel.com>
Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/busy_poll.h
net/core/dev.c
net/core/sock.c