From: Ben Greear <greearb@candelatech.com>
To: "Waskiewicz Jr, Peter P" <peter.p.waskiewicz.jr@intel.com>
Cc: Marc Donner <donner@dbd-breitband.de>, netdev@vger.kernel.org
Subject: Re: skb->priority on arp packets
Date: Mon, 04 Jun 2007 15:02:31 -0700 [thread overview]
Message-ID: <46648BF7.3050402@candelatech.com> (raw)
In-Reply-To: <D5C1322C3E673F459512FB59E0DDC32902F578DE@orsmsx414.amr.corp.intel.com>
Waskiewicz Jr, Peter P wrote:
>> is it possible to set the skb->priority on arp packets
>> generated by the kernel?
>> I want to to set the 802.1p priority on arp and ip packets on
>> an interface. On ip packets, this can be done by the iptables
>> CLASSIFY target and the
>> skb->priority mapping from the vlan implementation.
>>
>> any ideas?
>
> Currently unclassified ip packets have skb->priority set in ipsockglue,
> by translating the IP TOS field into a Linux priority. This is not the
> same priority as 802.1p, rather, it's a Linux-based OS priority
> classification for dequeuing priority in schedulers such as sch_prio.
> 802.1p lives in the VLAN tag, which is separate from skb->priority. I'd
> suggest reading http://lartc.org/howto/lartc.qdisc.classless.html to see
> what exactly skb->priority is used for in sch_prio and pfifo_fast, and
> how the ip layer determines a packet's priority. The skb->priority
> field is also used in other ways in other qdiscs I'm not completely
> familiar with, but it's not directly related to priority of the packet.
> I'd need to look closer at those qdiscs to be specific.
>
> That being said, the only way I can think of manipulating skb->priority
> on arp packets (and actually setting it) is modifying a qdisc to set
> skb->priority if it matches a filter created using the tc command.
If you do manage to get the skb->priority set, then you can use vconfig
to set up mapping between skb->priority and the VLAN priority field.
Thanks,
Ben
>
> Cheers,
> -PJ Waskiewicz
> -
> To unsubscribe from this list: send the line "unsubscribe netdev" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc http://www.candelatech.com
prev parent reply other threads:[~2007-06-04 22:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-04 21:32 skb->priority on arp packets Marc Donner
2007-06-04 21:54 ` Waskiewicz Jr, Peter P
2007-06-04 22:02 ` Ben Greear [this message]
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=46648BF7.3050402@candelatech.com \
--to=greearb@candelatech.com \
--cc=donner@dbd-breitband.de \
--cc=netdev@vger.kernel.org \
--cc=peter.p.waskiewicz.jr@intel.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).