All of lore.kernel.org
 help / color / mirror / Atom feed
* skb->priority on arp packets
@ 2007-06-04 20:23 Marc Donner
  2007-06-05 16:04 ` Chuck Ebbert
  0 siblings, 1 reply; 5+ messages in thread
From: Marc Donner @ 2007-06-04 20:23 UTC (permalink / raw)
  To: linux-kernel

hi @all,

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?

thx
Marc

^ permalink raw reply	[flat|nested] 5+ messages in thread

* skb->priority on arp packets
@ 2007-06-04 21:32 Marc Donner
  2007-06-04 21:54 ` Waskiewicz Jr, Peter P
  0 siblings, 1 reply; 5+ messages in thread
From: Marc Donner @ 2007-06-04 21:32 UTC (permalink / raw)
  To: netdev

hi @all,

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?

thx
Marc

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: skb->priority on arp packets
  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
  0 siblings, 1 reply; 5+ messages in thread
From: Waskiewicz Jr, Peter P @ 2007-06-04 21:54 UTC (permalink / raw)
  To: Marc Donner, netdev

> 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.

Cheers,
-PJ Waskiewicz

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: skb->priority on arp packets
  2007-06-04 21:54 ` Waskiewicz Jr, Peter P
@ 2007-06-04 22:02   ` Ben Greear
  0 siblings, 0 replies; 5+ messages in thread
From: Ben Greear @ 2007-06-04 22:02 UTC (permalink / raw)
  To: Waskiewicz Jr, Peter P; +Cc: Marc Donner, netdev

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: skb->priority on arp packets
  2007-06-04 20:23 Marc Donner
@ 2007-06-05 16:04 ` Chuck Ebbert
  0 siblings, 0 replies; 5+ messages in thread
From: Chuck Ebbert @ 2007-06-05 16:04 UTC (permalink / raw)
  To: Marc Donner; +Cc: linux-kernel

On 06/04/2007 04:23 PM, Marc Donner wrote:
> hi @all,
> 
> 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?
> 

Try asking on netdev?


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-06-05 16:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
  -- strict thread matches above, loose matches on Subject: below --
2007-06-04 20:23 Marc Donner
2007-06-05 16:04 ` Chuck Ebbert

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.