Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 4 Sep 2002 20:06:08 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 4 Sep 2002 20:06:08 -0400 Received: from pc-62-30-255-50-az.blueyonder.co.uk ([62.30.255.50]:36494 "EHLO kushida.apsleyroad.org") by vger.kernel.org with ESMTP id ; Wed, 4 Sep 2002 20:06:07 -0400 Date: Thu, 5 Sep 2002 01:09:10 +0100 From: Jamie Lokier To: Alan Cox Cc: Gabriel Paubert , "H. Peter Anvin" , linux-kernel@vger.kernel.org Subject: Re: TCP Segmentation Offloading (TSO) Message-ID: <20020905010910.A14236@kushida.apsleyroad.org> References: <1031181438.3017.125.camel@irongate.swansea.linux.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <1031181438.3017.125.camel@irongate.swansea.linux.org.uk>; from alan@lxorguk.ukuu.org.uk on Thu, Sep 05, 2002 at 12:17:18AM +0100 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 718 Lines: 17 Alan Cox wrote: > On Wed, 2002-09-04 at 23:39, Gabriel Paubert wrote: > > While it would work, this sequence is overkill. Unless I'm mistaken, the > > only property of bswap which is used in this case is that it swaps even > > and odd bytes, which can be done by a simple "roll $8,%eax" (or rorl). > > bswap is a 32bit swap. Yes it's different from the roll $8, but if all you need is to swap odd and even bytes for the IP checksum, either instruction is fine. -- Jamie - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/