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)
commit7db6b048da3b9f84fe1d22fb29ff7e7c2ec6c0e5
tree4280f554866625190cd24db1768927764ba2bc77
parent37056719bba500d0d2b8216fdf641e5507ec9a0e
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