Re: Does the driver directly map TOS/DSCP tags toUser Priority into QoS Control field?
Zhu Yi <[email protected]> Thu, 19 Feb 2009 15:44:48 +0800
| Newsgroups | gmane.linux.drivers.ipw2100.devel |
|---|---|
| Message-ID | <1235029488.6354.396.camel@debian> |
On Thu, 2009-02-19 at 15:39 +0800, Alex Chpenst wrote:
> Thanks!! I've looked at ipw2200, there is a function:
>
> ipw_get_tx_queue_number(struct ipw_priv *priv, u16 priority)
>
> which maps the packet priority to the right TX Queue. But I can't find
> out what "priority" is. Does it come from ieee80211? Is it User
> Priority from VLAN tag? Is it User Priority from TOS field of IP
> packet?
>
> This function is called from another one:
>
> ipw_tx_skb(struct ipw_priv *priv, struct ieee80211_txb *txb, int pri)
> {
> ...
> int tx_id = ipw_get_tx_queue_number(priv, pri);
> ...
> }
> where "priority" is "pri". Now, this one is called from:
>
> ipw_net_hard_start_xmit(struct ieee80211_txb *txb, struct net_device
> *dev, int pri) {
> ...
> ret = ipw_tx_skb(priv, txb, pri);
> ...
> }
>
> I stop here, as I can't find where "ipw_net_hard_start_xmit" is called
> from and where this "pri" variable comes from...
Take a look at drivers/net/wireless/ipw2x00/libipw_tx.c.
Thanks,
-yi
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H