net: busy-poll: remove LL_FLUSH_FAILED and LL_FLUSH_BUSY
Commit 79e7fff47b ("net: remove support for per driver
ndo_busy_poll()") made them obsolete.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
417d18d38b
commit
37fabbf4d4
@@ -33,10 +33,6 @@ struct napi_struct;
|
|||||||
extern unsigned int sysctl_net_busy_read __read_mostly;
|
extern unsigned int sysctl_net_busy_read __read_mostly;
|
||||||
extern unsigned int sysctl_net_busy_poll __read_mostly;
|
extern unsigned int sysctl_net_busy_poll __read_mostly;
|
||||||
|
|
||||||
/* return values from ndo_ll_poll */
|
|
||||||
#define LL_FLUSH_FAILED -1
|
|
||||||
#define LL_FLUSH_BUSY -2
|
|
||||||
|
|
||||||
static inline bool net_busy_loop_on(void)
|
static inline bool net_busy_loop_on(void)
|
||||||
{
|
{
|
||||||
return sysctl_net_busy_poll;
|
return sysctl_net_busy_poll;
|
||||||
|
|||||||
@@ -5008,9 +5008,6 @@ count:
|
|||||||
LINUX_MIB_BUSYPOLLRXPACKETS, rc);
|
LINUX_MIB_BUSYPOLLRXPACKETS, rc);
|
||||||
local_bh_enable();
|
local_bh_enable();
|
||||||
|
|
||||||
if (rc == LL_FLUSH_FAILED)
|
|
||||||
break; /* permanent failure */
|
|
||||||
|
|
||||||
if (nonblock || !skb_queue_empty(&sk->sk_receive_queue) ||
|
if (nonblock || !skb_queue_empty(&sk->sk_receive_queue) ||
|
||||||
busy_loop_timeout(end_time))
|
busy_loop_timeout(end_time))
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user