summaryrefslogtreecommitdiff
path: root/backport
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2014-07-19 15:00:55 +0200
committerHauke Mehrtens <hauke@hauke-m.de>2014-07-23 23:30:08 +0200
commitae1c50767d403184be062c11cfb56847dcb37b5b (patch)
treeb46fb688fb880c7ef9880f011f82179e426bc9a6 /backport
parent5401d846af449313418b95478a52f206803df365 (diff)
backports: backport __QUEUE_STATE_{DRV,STACK}_XOFF
The old __QUEUE_STATE_XOFF was divided into __QUEUE_STATE_DRV_XOFF and __QUEUE_STATE_STACK_XOFF, in this patch we map both to the old version on old kernel vesions. This backports this upstream commit: commit 7346649826382b769cfadf4a2fe8a84d060c55e9 Author: Tom Herbert <therbert@google.com> Date: Mon Nov 28 16:32:44 2011 +0000 net: Add queue state xoff flag for stack Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Diffstat (limited to 'backport')
-rw-r--r--backport/backport-include/linux/netdevice.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/backport/backport-include/linux/netdevice.h b/backport/backport-include/linux/netdevice.h
index 69797588..e2161b76 100644
--- a/backport/backport-include/linux/netdevice.h
+++ b/backport/backport-include/linux/netdevice.h
@@ -157,4 +157,9 @@ static inline void netdev_reset_queue(struct net_device *dev_queue)
#define IFF_UNICAST_FLT 0x20000 /* Supports unicast filtering */
#endif
+#ifndef QUEUE_STATE_ANY_XOFF
+#define __QUEUE_STATE_DRV_XOFF __QUEUE_STATE_XOFF
+#define __QUEUE_STATE_STACK_XOFF __QUEUE_STATE_XOFF
+#endif
+
#endif /* __BACKPORT_NETDEVICE_H */