All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] Re: vlan interfaces and tc
@ 2007-06-11 11:31 Christian Benvenuti
  2007-06-11 12:34 ` Michal Soltys
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Christian Benvenuti @ 2007-06-11 11:31 UTC (permalink / raw)
  To: lartc

Hi, 

>Hello
>
>I have few questions regarding tc functionality (qdiscs, classes, etc.) when 
>vlans are in use. For example, consider interface eth0, for which I create 
>and extra vlan with vconfig, let's say eth0.11. Then using tc I can add 
>usual things - qdiscs, filters, ... - to both eth0 and eth0.11. The 
>questions are:
>
>- on which interface - virtual or real, should I actually use tc ?

It depends on what you want to control.

The QoS you configure on the VLAN interface is only enforced for the
traffic that goes through the VLAN interface.
(Note that in this case the VLAN interface is a L3 interface).

The QoS you configure on the real interface is enforced for all the
traffic that goes through that interface (regardless of whether it
is injected through a virtual interface).

> Or are either of them allowed, depending on what I need ?

Yes they are both allowed.
This means, for example, that the traffic that originates from
or that is addressed to a VLAN interface can potentially go through
two independent QoS configurations.
Depending on what you want to achieve, you may configure QoS
only on the VLAN interface, only on the real interface, or
on both.

> If so:
>- what happens if both interfaces - virtual and real have disciplines / 
>filters ? Does packet traverse both (I'd assume, first through eth0.11 than 
>through eth0) ?

Yes, it traverses both.
On the egress path, it traverses first eth0.11 and then eth0.
On the ingress path, it traverses first eth0 and then eth0.11

Regards
/Christian
[ http://benve.info ]


_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

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

end of thread, other threads:[~2007-06-12  5:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-11 11:31 [LARTC] Re: vlan interfaces and tc Christian Benvenuti
2007-06-11 12:34 ` Michal Soltys
2007-06-11 16:39 ` Christian Benvenuti
2007-06-11 20:11 ` Michal Soltys
2007-06-11 20:40 ` Christian Benvenuti
2007-06-12  5:10 ` Stephen Hemminger

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.