diff options
Diffstat (limited to 'include/net/busy_poll.h')
| -rw-r--r-- | include/net/busy_poll.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/net/busy_poll.h b/include/net/busy_poll.h index 8ffd434676b7..71c72a939bf8 100644 --- a/include/net/busy_poll.h +++ b/include/net/busy_poll.h | |||
| @@ -29,18 +29,18 @@ | |||
| 29 | #include <linux/sched/signal.h> | 29 | #include <linux/sched/signal.h> |
| 30 | #include <net/ip.h> | 30 | #include <net/ip.h> |
| 31 | 31 | ||
| 32 | #ifdef CONFIG_NET_RX_BUSY_POLL | ||
| 33 | |||
| 34 | struct napi_struct; | ||
| 35 | extern unsigned int sysctl_net_busy_read __read_mostly; | ||
| 36 | extern unsigned int sysctl_net_busy_poll __read_mostly; | ||
| 37 | |||
| 38 | /* 0 - Reserved to indicate value not set | 32 | /* 0 - Reserved to indicate value not set |
| 39 | * 1..NR_CPUS - Reserved for sender_cpu | 33 | * 1..NR_CPUS - Reserved for sender_cpu |
| 40 | * NR_CPUS+1..~0 - Region available for NAPI IDs | 34 | * NR_CPUS+1..~0 - Region available for NAPI IDs |
| 41 | */ | 35 | */ |
| 42 | #define MIN_NAPI_ID ((unsigned int)(NR_CPUS + 1)) | 36 | #define MIN_NAPI_ID ((unsigned int)(NR_CPUS + 1)) |
| 43 | 37 | ||
| 38 | #ifdef CONFIG_NET_RX_BUSY_POLL | ||
| 39 | |||
| 40 | struct napi_struct; | ||
| 41 | extern unsigned int sysctl_net_busy_read __read_mostly; | ||
| 42 | extern unsigned int sysctl_net_busy_poll __read_mostly; | ||
| 43 | |||
| 44 | static inline bool net_busy_loop_on(void) | 44 | static inline bool net_busy_loop_on(void) |
| 45 | { | 45 | { |
| 46 | return sysctl_net_busy_poll; | 46 | return sysctl_net_busy_poll; |
