Skip to content

Commit 37fabbf

Browse files
edumazetdavem330
authored andcommitted
net: busy-poll: remove LL_FLUSH_FAILED and LL_FLUSH_BUSY
Commit 79e7fff ("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>
1 parent 417d18d commit 37fabbf

2 files changed

Lines changed: 0 additions & 7 deletions

File tree

‎include/net/busy_poll.h‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,6 @@ struct napi_struct;
3333
extern unsigned int sysctl_net_busy_read __read_mostly;
3434
extern unsigned int sysctl_net_busy_poll __read_mostly;
3535

36-
/* return values from ndo_ll_poll */
37-
#define LL_FLUSH_FAILED -1
38-
#define LL_FLUSH_BUSY -2
39-
4036
static inline bool net_busy_loop_on(void)
4137
{
4238
return sysctl_net_busy_poll;

‎net/core/dev.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5008,9 +5008,6 @@ bool sk_busy_loop(struct sock *sk, int nonblock)
50085008
LINUX_MIB_BUSYPOLLRXPACKETS, rc);
50095009
local_bh_enable();
50105010

5011-
if (rc == LL_FLUSH_FAILED)
5012-
break; /* permanent failure */
5013-
50145011
if (nonblock || !skb_queue_empty(&sk->sk_receive_queue) ||
50155012
busy_loop_timeout(end_time))
50165013
break;

0 commit comments

Comments
 (0)