diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/netdevice.h | 8 | ||||
-rw-r--r-- | include/linux/netpoll.h | 11 |
2 files changed, 19 insertions, 0 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 493b065f76d7..be3ebd7e8ce5 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h | |||
@@ -330,6 +330,14 @@ enum | |||
330 | NAPI_STATE_NPSVC, /* Netpoll - don't dequeue from poll_list */ | 330 | NAPI_STATE_NPSVC, /* Netpoll - don't dequeue from poll_list */ |
331 | }; | 331 | }; |
332 | 332 | ||
333 | enum { | ||
334 | GRO_MERGED, | ||
335 | GRO_MERGED_FREE, | ||
336 | GRO_HELD, | ||
337 | GRO_NORMAL, | ||
338 | GRO_DROP, | ||
339 | }; | ||
340 | |||
333 | extern void __napi_schedule(struct napi_struct *n); | 341 | extern void __napi_schedule(struct napi_struct *n); |
334 | 342 | ||
335 | static inline int napi_disable_pending(struct napi_struct *n) | 343 | static inline int napi_disable_pending(struct napi_struct *n) |
diff --git a/include/linux/netpoll.h b/include/linux/netpoll.h index e38d3c9dccda..de99025f2c5d 100644 --- a/include/linux/netpoll.h +++ b/include/linux/netpoll.h | |||
@@ -63,6 +63,13 @@ static inline int netpoll_rx(struct sk_buff *skb) | |||
63 | return ret; | 63 | return ret; |
64 | } | 64 | } |
65 | 65 | ||
66 | static inline int netpoll_rx_on(struct sk_buff *skb) | ||
67 | { | ||
68 | struct netpoll_info *npinfo = skb->dev->npinfo; | ||
69 | |||
70 | return npinfo && (npinfo->rx_np || npinfo->rx_flags); | ||
71 | } | ||
72 | |||
66 | static inline int netpoll_receive_skb(struct sk_buff *skb) | 73 | static inline int netpoll_receive_skb(struct sk_buff *skb) |
67 | { | 74 | { |
68 | if (!list_empty(&skb->dev->napi_list)) | 75 | if (!list_empty(&skb->dev->napi_list)) |
@@ -99,6 +106,10 @@ static inline int netpoll_rx(struct sk_buff *skb) | |||
99 | { | 106 | { |
100 | return 0; | 107 | return 0; |
101 | } | 108 | } |
109 | static inline int netpoll_rx_on(struct sk_buff *skb) | ||
110 | { | ||
111 | return 0; | ||
112 | } | ||
102 | static inline int netpoll_receive_skb(struct sk_buff *skb) | 113 | static inline int netpoll_receive_skb(struct sk_buff *skb) |
103 | { | 114 | { |
104 | return 0; | 115 | return 0; |