Subject: Re: gsip sends byte-swapped vlan tags
To: None <tech-net@netbsd.org>
From: Ignatios Souvatzis <is@netbsd.org>
List: tech-net
Date: 01/26/2006 16:07:40
--s2ZSL+KKDSLx8OML
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Jan 26, 2006 at 11:52:04AM +0100, Manuel Bouyer wrote:
> On Wed, Jan 25, 2006 at 08:50:31PM +0100, Pavel Cahyna wrote:
> >=20
> > Do you have any explanation why does it help?
>=20
> 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-align=
ed
> it has more cost one some architecture than others.

Splitting the mbuf chain would be even more expensive, I guess, than=20
copying 14 octets....

	-is
--=20
seal your e-mail: http://www.gnupg.org/

--s2ZSL+KKDSLx8OML
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (NetBSD)

iD8DBQFD2OW8N4tiz3B8hB0RAjgmAKDDkYlMAEKN5gU2wPAmrm4Jxgbj0QCfbzlr
c7O3HqfOLs6b0eq3aP5OCFM=
=T3Q4
-----END PGP SIGNATURE-----

--s2ZSL+KKDSLx8OML--