backports: backport __QUEUE_STATE_{DRV,STACK}_XOFF
authorHauke Mehrtens <hauke@hauke-m.de>
Sat, 19 Jul 2014 13:00:55 +0000 (15:00 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Wed, 23 Jul 2014 21:30:08 +0000 (23:30 +0200)
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>
backport/backport-include/linux/netdevice.h

index 6979758895b9dd5d600b0bf6ca85aa71c33adb2a..e2161b76a1fbc0bf73c3885465cbf7a7da10f2b1 100644 (file)
@@ -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 */