Date: Mon, 2 May 2005 18:12:44 -0500 (CDT) From: Mike Silbersack <silby@silby.com> To: Bruce M Simpson <bms@spc.org> Cc: Sten Spans <sten@blinkenlights.nl> Subject: Re: if_tap unaligned access problem Message-ID: <20050502180353.T787@odysseus.silby.com> In-Reply-To: <20050428165026.GG747@empiric.icir.org> References: <20050428135120.GB21428@cell.sick.ru> <427111BF.2050607@savvis.net> <20050428165026.GG747@empiric.icir.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 28 Apr 2005, Bruce M Simpson wrote: > jmg's suggestion of bringing in the NetBSD patches to allow the entire > network stack to be compiled with unaligned accesses (for those platforms > which support it) is interesting because it can simplify or eliminate > some of the acrobatics needed in network drivers to deal with the mbuf > alignment. I'm too lazy to benchmark, but I suspect that having the ethernet code shift the packet backwards by two bytes after it strips off the ethernet header is going to be faster than requiring ip_input to allocate a new mbuf for each received packet. Such a change would also ensure that we don't break all the other protocols that jmg didn't touch in his patch. Mike "Silby" Silbersack
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050502180353.T787>