netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kuznet@ms2.inr.ac.ru
To: cfriesen@nortelnetworks.com (Chris Friesen)
Cc: davem@redhat.com, jmorris@redhat.com, hadi@znyx.com, netdev@oss.sgi.com
Subject: Re: Fw: issues with SO_PRIORITY and IP_TOS
Date: Thu, 13 Nov 2003 14:08:00 +0300 (MSK)	[thread overview]
Message-ID: <200311131108.OAA24780@yakov.inr.ac.ru> (raw)
In-Reply-To: <3FAA5FF6.50509@nortelnetworks.com> from "Chris Friesen" at îÏÑ 06, 2003 09:51:34

Hello!

> I would like to send a vlan tagged packet, with vlan priority of x and 
> DSCP field of (x<<5).  What is the proper way to do this, if I should 
> not be using skb->priority?

To set DSCP field you set the thing known as TOS with IP_TOS.

To set VLAN priority, you tune VLAN f.e. to use DSCP bits in classifier
to derive VLAN priority from those bits of DSCP, which you desire. DSCP>>5
in your case.


And remember that if the box is DS aware, DS will rewrite your DSCP
in the way consistent with sustem configuration.

Alexey

  reply	other threads:[~2003-11-13 11:08 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20031030120140.678b721b.davem@redhat.com>
2003-11-04 12:33 ` Fw: issues with SO_PRIORITY and IP_TOS kuznet
2003-11-04 16:04   ` Jamal Hadi Salim
2003-11-04 17:02   ` Chris Friesen
2003-11-05 14:54     ` Jamal Hadi Salim
2003-11-06  9:31     ` kuznet
2003-11-06 14:51       ` Chris Friesen
2003-11-13 11:08         ` kuznet [this message]
2003-11-13 17:48           ` Chris Friesen

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=200311131108.OAA24780@yakov.inr.ac.ru \
    --to=kuznet@ms2.inr.ac.ru \
    --cc=cfriesen@nortelnetworks.com \
    --cc=davem@redhat.com \
    --cc=hadi@znyx.com \
    --cc=jmorris@redhat.com \
    --cc=netdev@oss.sgi.com \
    /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).