Thread (4 messages) flat view 4 messages, 4 authors, 2007-07-19

Re: Linux, tcpdump and vlan

From: Stephen Hemminger <hidden>
Date: 2007-07-19 16:21:33
Also in: lkml

On Thu, 19 Jul 2007 08:47:01 -0700 (PDT)
andrei radulescu-banu [off-list ref] wrote:
The consensus seems to be that skb's need to carry vlan accelerated tags in their cb's, on rx as well as tx. VLAN_TX_SKB_CB() is perfect for that.
quoted
[Patrick] On the TX path, it could simply use the CB, but this is actually
also wrong (for both macvlan and real devices) since qdiscs have
ownership of the skb in between, and at least netem *does* modify
the CB, breaking VLAN.
No, VLAN is wrong to expect the CB to survive through layers. The CB is
a private scribble area that can be used by which ever piece of code currently
"owns" the skb.  If data needs to be passed from layer to layer, it needs to
be done as separate fields in the skb itself. If A passes an skb to B, then
the CB can be changed by B (or things it calls) before it arrives at C.


Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help