All of lore.kernel.org
 help / color / mirror / Atom feed
* [ath9k-devel] queue priority mapping
@ 2014-11-20 18:00 Hubert Feurstein
  2014-11-24  9:10 ` M. Braun
  0 siblings, 1 reply; 11+ messages in thread
From: Hubert Feurstein @ 2014-11-20 18:00 UTC (permalink / raw)
  To: ath9k-devel

Hi,

in ath9k_init_queues are the AC levels mapped to the hardware-queues by
this loop below. But doesn't this map the priorities in the wrong
direction? The hardware queue 0 has the lowest priority, but is mapped to
IEEE80211_AC_VO. And the hardware queue 3 (with higher priority) is mapped
to IEEE80211_AC_BK. Shouldn't that be the other way around (as changed
below) ?

@@ -323,11 +323,12 @@ static int ath9k_init_queues(struct ath_softc *sc)
  sc->beacon.cabq = ath_txq_setup(sc, ATH9K_TX_QUEUE_CAB, 0);
  ath_cabq_update(sc);

  sc->tx.uapsdq = ath_txq_setup(sc, ATH9K_TX_QUEUE_UAPSD, 0);

- for (i = 0; i < IEEE80211_NUM_ACS; i++) {
+ for (i = IEEE80211_NUM_ACS - 1; i >= 0; i--) {
  sc->tx.txq_map[i] = ath_txq_setup(sc, ATH9K_TX_QUEUE_DATA, i);
  sc->tx.txq_map[i]->mac80211_qnum = i;
  sc->tx.txq_max_pending[i] = ATH_MAX_QDEPTH;
  }
  return 0;

Best regards
Hubert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20141120/43448825/attachment.htm 

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2014-11-30 22:11 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-20 18:00 [ath9k-devel] queue priority mapping Hubert Feurstein
2014-11-24  9:10 ` M. Braun
2014-11-25 21:14   ` Hubert Feurstein
2014-11-25 21:22     ` Dave Taht
2014-11-26  7:46     ` M. Braun
2014-11-26 12:25     ` Sujith Manoharan
2014-11-27 12:04       ` Hubert Feurstein
2014-11-30 11:30         ` Thomas Hühn
2014-11-30 18:18           ` Sergey Ryazanov
2014-11-30 21:57             ` Thomas Hühn
2014-11-30 22:11               ` Sergey Ryazanov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.