summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/b43legacy/dma.h
diff options
context:
space:
mode:
authorLarry Finger2011-12-22 01:47:59 +0100
committerJohn W. Linville2012-01-04 20:30:43 +0100
commit5d07a3d62f63f3a9ce769c37108f8411c014903e (patch)
tree8545015a8ee333adad1a1f98dc1fbd0c05025539 /drivers/net/wireless/b43legacy/dma.h
parentb43: N-PHY: fix typo in TX power fix (diff)
downloadkernel-qcow2-linux-5d07a3d62f63f3a9ce769c37108f8411c014903e.tar.gz
kernel-qcow2-linux-5d07a3d62f63f3a9ce769c37108f8411c014903e.tar.xz
kernel-qcow2-linux-5d07a3d62f63f3a9ce769c37108f8411c014903e.zip
b43legacy: Avoid packet losses in the dma worker code
This patch addresses a bug in the dma worker code that keeps draining packets even when the hardware queues are full. In such cases packets can not be passed down to the device and are erroneusly dropped by the code. It is based on commit bad6919469662b7c92bc6353642aaaa777b36bac, which fixes the same problem in b43. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/b43legacy/dma.h')
-rw-r--r--drivers/net/wireless/b43legacy/dma.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/wireless/b43legacy/dma.h b/drivers/net/wireless/b43legacy/dma.h
index 504a58767e95..c3282f906bc7 100644
--- a/drivers/net/wireless/b43legacy/dma.h
+++ b/drivers/net/wireless/b43legacy/dma.h
@@ -150,8 +150,9 @@ struct b43legacy_dmaring {
enum b43legacy_dmatype type;
/* Boolean. Is this ring stopped at ieee80211 level? */
bool stopped;
- /* Lock, only used for TX. */
- spinlock_t lock;
+ /* The QOS priority assigned to this ring. Only used for TX rings.
+ * This is the mac80211 "queue" value. */
+ u8 queue_prio;
struct b43legacy_wldev *dev;
#ifdef CONFIG_B43LEGACY_DEBUG
/* Maximum number of used slots. */