Search Linux Wireless

Re: [PATCH 4/9] rt2x00: Use rt2x00 queue numbering

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

 



Hi Ivo,

On Mon, 2008-04-21 at 19:00 +0200, Ivo van Doorn wrote:
> Use the rt2x00 queue enumeration as much as possible,
> removing the usage of the mac80211 queue numbering
> wherever it is possible.
> 
> This makes it easier for mac80211 to change it queue
> identification scheme without having to deal with
> big changes in the rt2x00 code.

Cool, thanks a lot. One small note:

> +static inline enum data_queue_qid mac80211_queue_to_qid(unsigned int queue)
> +{
> +	/* Regular TX queues are mapped directly */
> +	if (queue < NUM_TX_DATA_QUEUES)
> +		return queue;
> +	else if (queue == IEEE80211_TX_QUEUE_BEACON)
> +		return QID_BEACON;
> +	else if (queue == IEEE80211_TX_QUEUE_AFTER_BEACON)
> +		return QID_ATIM;
> +	return QID_OTHER;

Are you actually using TX_QUEUE_AFTER_BEACON? That queue number is a
historical accident (imho) and not used, we actually use the
IEEE80211_TXCTL_SEND_AFTER_DTIM tx control flag.

Also, with the QoS patch, those queue numbers should finally go away and
mac80211 will not pass anything but the data queues, hence, this small
inline would probably be reduced to "return queue;" by the patch.

johannes

Attachment: signature.asc
Description: This is a digitally signed message part


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux