Subject: Re: gsip sends byte-swapped vlan tags
To: Pavel Cahyna <pavel.cahyna@st.mff.cuni.cz>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: tech-net
Date: 01/26/2006 11:52:04
On Wed, Jan 25, 2006 at 08:50:31PM +0100, Pavel Cahyna wrote:
> 
> Do you have any explanation why does it help?

The vlan driver has to strip these 4 bytes from the frame.
This is done by a memmove() of the ethernet header 4 bytes ahead
(se vlan_inout()). This has a cost, and as ether_header isn't 32bit-aligned
it has more cost one some architecture than others.

-- 
Manuel Bouyer <bouyer@antioche.eu.org>
     NetBSD: 26 ans d'experience feront toujours la difference
--