Thread (1 message) 1 message, 1 author, 2007-07-21

Re: Linux, tcpdump and vlan

From: Krzysztof Halasa <khc@pm.waw.pl>
Date: 2007-07-21 21:15:59
Also in: lkml

Ben Greear [off-list ref] writes:
quoted
IOW: I think all Ethernet interfaces should always be VLAN-aware,
stripping the tag (only one) early on RX and adding it late on TX.
That means tcpdump would see packets with exactly one tag removed
(unless there was no tag), in both RX and TX.

Tcpdump would need other means to get VLAN id...
What benefit will this add?  It will certainly decrease performance to
copy around
the header for every VLAN packet, so there would have to be a good reason to
add this logic...
I'd have to do some tests... Hopefully in this decade, forget it for
now.

The primary reason - consistency with hw VLAN cards -> simpler
code.

The performance is already decreased (not sure if it's noticeable)
most of the time, i.e., when not transparently bridging VLAN
trunks. Bridging VLAN trunks is, of course, theoretically possible,
but it's rather not a common operation when using .1Q.
That is, with header reordering, of course.

Anyway, -ENOPATCH from me for now.
-- 
Krzysztof Halasa
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help