Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753434AbYLARum (ORCPT ); Mon, 1 Dec 2008 12:50:42 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752587AbYLARua (ORCPT ); Mon, 1 Dec 2008 12:50:30 -0500 Received: from mailbox2.myri.com ([64.172.73.26]:1974 "EHLO myri.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751708AbYLARu3 (ORCPT ); Mon, 1 Dec 2008 12:50:29 -0500 Message-ID: <493423D7.5030203@myri.com> Date: Mon, 01 Dec 2008 12:50:15 -0500 From: Andrew Gallatin User-Agent: Thunderbird 2.0.0.16 (X11/20080724) MIME-Version: 1.0 To: Jan-Bernd Themann CC: David Miller , netdev@vger.kernel.org, linux-kernel , tklein@de.ibm.com, Christoph Raisch , jb.billaud@gmail.com, hering2@de.ibm.com Subject: Re: [PATCH] lro: IP fragment checking References: <4933A74F.3050809@de.ibm.com> In-Reply-To: <4933A74F.3050809@de.ibm.com> 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: 715 Lines: 25 Jan-Bernd Themann wrote: > This patch prevents that ip fragmented TCP packets are considered vaild > for aggregation <...> > + if (iph->frag_off & IP_MF) > + return -1; > + I think there is an endian bug, and that you should also check IP_OFFSET. What about: if (iph->frag_off & htons(IP_MF|IP_OFFSET)) 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. 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/