[PATCH 06/11] backports: backport __QUEUE_STATE_{DRV,STACK}_XOFF

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
Date:   Mon Nov 28 16:32:44 2011 +0000

    net: Add queue state xoff flag for stack

Signed-off-by: Hauke Mehrtens <hauke@xxxxxxxxxx>
---
 backport/backport-include/linux/netdevice.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/backport/backport-include/linux/netdevice.h b/backport/backport-include/linux/netdevice.h
index 6979758..e2161b7 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 */
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe backports" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux