net: busy-poll: remove LL_FLUSH_FAILED and LL_FLUSH_BUSY
authorEric Dumazet <edumazet@google.com>
Fri, 10 Feb 2017 13:46:46 +0000 (05:46 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Feb 2017 03:23:39 +0000 (22:23 -0500)
Commit 79e7fff47b7b ("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>
include/net/busy_poll.h
net/core/dev.c

index d73b849e29a6869e282103f329c3a02f4e1a6882..b8d637225a07ddd2c0183b75a42cd5c9c5a69851 100644 (file)
@@ -33,10 +33,6 @@ struct napi_struct;
 extern unsigned int sysctl_net_busy_read __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)
 {
        return sysctl_net_busy_poll;
index 363c44b9be6368792382fad1a001292ced4398a0..2f1bbe1bf67c731252adb595364a3110eefbac30 100644 (file)
@@ -5008,9 +5008,6 @@ count:
                                        LINUX_MIB_BUSYPOLLRXPACKETS, rc);
                local_bh_enable();
 
-               if (rc == LL_FLUSH_FAILED)
-                       break; /* permanent failure */
-
                if (nonblock || !skb_queue_empty(&sk->sk_receive_queue) ||
                    busy_loop_timeout(end_time))
                        break;