Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753066AbYLAVxq (ORCPT ); Mon, 1 Dec 2008 16:53:46 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751471AbYLAVxc (ORCPT ); Mon, 1 Dec 2008 16:53:32 -0500 Received: from mailbox2.myri.com ([64.172.73.26]:1824 "EHLO myri.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751352AbYLAVxb (ORCPT ); Mon, 1 Dec 2008 16:53:31 -0500 Message-ID: <49345CCA.1030209@myri.com> Date: Mon, 01 Dec 2008 16:53:14 -0500 From: Andrew Gallatin User-Agent: Thunderbird 2.0.0.16 (X11/20080724) MIME-Version: 1.0 To: David Miller CC: ossthema@de.ibm.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, tklein@de.ibm.com, raisch@de.ibm.com, jb.billaud@gmail.com, hering2@de.ibm.com Subject: Re: [PATCH] lro: IP fragment checking References: <4933A74F.3050809@de.ibm.com> <493423D7.5030203@myri.com> <20081201.131810.158631503.davem@davemloft.net> In-Reply-To: <20081201.131810.158631503.davem@davemloft.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1218 Lines: 31 David Miller wrote: > From: Andrew Gallatin > Date: Mon, 01 Dec 2008 12:50:15 -0500 > >> As to whether or not to do it in the drivers/hardware or in the >> LRO code, I favor doing it in the LRO code just so that it is not >> missed in some driver. > > Then there is no point in the hardware doing the check, if > we're going to check it anyways. > > That's part of my point about why this check doesn't belong > here. What hardware does an explicit check for fragmentation? In most cases, aren't we just relying on the hardware checksum to be wrong on fragmented packets? That works 99.999% of the time, but the TCP checksum is pretty weak, and it is possible to have a fragmented packet where the first fragment has the same checksum as the entire packet. I'd rather have a fragmentation check at the LRO layer to remove any ambiguity. But if you still object, I'll at least have to submit a patch which adds an explicit check in myri10ge. Drew -- 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/