* Re[2]: [leo@yuriev.ru: [PATCH] ethernet-bridge: update skb->priority in case forwarded frame has VLAN-header]
@ 2005-03-10 14:13 Leo Yuriev
0 siblings, 0 replies; only message in thread
From: Leo Yuriev @ 2005-03-10 14:13 UTC (permalink / raw)
To: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 1508 bytes --]
>>From looking at the patch:
j> ------
j> + /*
j> + * We map VLAN_TCI priority (0..7) to skb->priority (0..15)
j> + * most similarly e.g. 0->0, 1->1, .., 7->7
j> + */
j> + skb->priority = (vlan_TCI >> 13) & 7;
j> ------
j> This is wrong. IEEE priorities are opposite of IETF priorities (as used by
skb->>prio).
j> Unless you install a prio qdisc and rewrite the priomap, you are screwed.
j> So you should do opposite mapping, i.e something along the lines of
j> VLAN_TCI priority (0..7) to skb->priority (15..8) i,e skb->priority = 15 - vlan_TCI;
j> cheers,
j> jamal
Jamal, you are wrong!
802.1p defines priority as "linear" from 0 to 7,
the 0 is lowest priority and 7 is highest.
couple FoC links:
http://www.linktionary.com/q/qos.html
http://www.nwfusion.com/details/475.html
--
С уважением,
Leo mailto:leo@yuriev.ru
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: 2.6
mQCPA0HMImkBbQEEALnWXpnchl1dHaCfwnXe2RO8ft9e7K5IGRW1lE9RERMy6R3L
JnMXMPiuWm/4tx6H/yTRUML8LbuACzf2Np9oHTxbDWxP40wGxQKrPDlzv/9gLEp6
ZwGF8mSfvZrPHux1LwIbryQxjlmwfNCkE+qiVOBWMsD7yAFCWrZztbWTWJ6pABEB
AAG0GkxlbyBZdXJpZXYgPGxlb0B5dXJpZXYucnU+iQCVAwUQQcwiabZztbWTWJ6p
AQG6cAP9H0O+MMa0WDlGE2JGG+SWuu9Iuqg76Hp6tjtrz2pLWEzbq8oqCkE0THff
/YUUaKqnrLELwEaptE+MrWSv9Zt1K/PauMpKUWXhlYqGcGB2NqJL69AONQte0M4B
rPSSts4CU7gK2Zuds1DOLiON7e9Sbpjc5T+4D7Jw5XGKMz66nhY=
=qGIk
-----END PGP PUBLIC KEY BLOCK-----
[-- Attachment #2: Type: application/pgp-signature, Size: 282 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-03-10 14:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-10 14:13 Re[2]: [leo@yuriev.ru: [PATCH] ethernet-bridge: update skb->priority in case forwarded frame has VLAN-header] Leo Yuriev
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®