From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH net-2.6 v2 2/3] bnx2x: Look inside vlan when determining checksum proto. Date: Fri, 12 Nov 2010 12:24:27 -0800 (PST) Message-ID: <20101112.122427.59665851.davem@davemloft.net> References: <1289519279-20641-1-git-send-email-jesse@nicira.com> <1289519279-20641-2-git-send-email-jesse@nicira.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, hzheng@nicira.com, eilong@broadcom.com To: jesse@nicira.com Return-path: Received: from 74-93-104-97-Washington.hfc.comcastbusiness.net ([74.93.104.97]:47673 "EHLO sunset.davemloft.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932413Ab0KLUYC (ORCPT ); Fri, 12 Nov 2010 15:24:02 -0500 In-Reply-To: <1289519279-20641-2-git-send-email-jesse@nicira.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Jesse Gross Date: Thu, 11 Nov 2010 15:47:58 -0800 > From: Hao Zheng > > Currently the skb->protocol field is used to setup checksum > offloading on transmit for the correct protocol. However, if > vlan offloading is disabled or otherwise not used, the protocol > field will be ETH_P_8021Q, not the actual protocol. This will > cause the checksum to be not computed correctly, even though the > hardware is capable of looking inside vlan tags. Instead, > look inside the header if necessary to determine the correct > protocol type. > > To some extent this fixes a regression from 2.6.36 because it > was previously not possible to disable vlan offloading and this > error case was not exposed. > > Signed-off-by: Hao Zheng > CC: Eilon Greenstein > Signed-off-by: Jesse Gross Applied.