From ae1c50767d403184be062c11cfb56847dcb37b5b Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Sat, 19 Jul 2014 15:00:55 +0200 Subject: [PATCH] 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 Date: Mon Nov 28 16:32:44 2011 +0000 net: Add queue state xoff flag for stack Signed-off-by: Hauke Mehrtens --- 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 6979758895b9..e2161b76a1fb 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 */ -- 2.30.2