From: Daniel Wagner <wagi@monom.org>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: linux-wireless@vger.kernel.org
Subject: Re: QoS and DSCP
Date: Tue, 19 Aug 2008 14:05:30 +0200 [thread overview]
Message-ID: <48AAB70A.4090402@monom.org> (raw)
In-Reply-To: <48AAAD30.2080207@monom.org>
> Together with some printks I see that the code in wme.c classify_1d does
> exactly the thing which it should. It returns the dscp value correctly.
> Using --set-dscp 0x18 classify_1d returns 3 and with --set-dscp-class
> EF, classify_1d returns 5.
Crap, that's not correct. I think I found the problem:
static unsigned int classify_1d(struct sk_buff *skb)
{
...
if (dscp & 0x1c)
return 0;
return dscp >> 5;
}
--set-dscp 0x28 (precendence level 5) classify_1d returns the correct
value 5.
Setting with --set-dscp-class EF the TOS field it will have value 0xb8 (10111000b)
which maps to
Bit 7-2: DSCP
Bit 1-0: ECN (expliliciet congestion notifaction)
So the question is what the 'if' is for?
stay tuned!
daniel
next prev parent reply other threads:[~2008-08-19 12:05 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-19 8:46 QoS and DSCP Daniel Wagner
2008-08-19 9:04 ` Johannes Berg
2008-08-19 9:11 ` Daniel Wagner
2008-08-19 11:23 ` Daniel Wagner
2008-08-19 12:05 ` Daniel Wagner [this message]
2008-08-19 13:44 ` [PATCH] Use only precedence level of DSCP field for frame classification Daniel Wagner
2008-08-19 13:59 ` Johannes Berg
2008-08-19 14:10 ` Daniel Wagner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=48AAB70A.4090402@monom.org \
--to=wagi@monom.org \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).