Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp1856768rdb; Tue, 3 Oct 2023 03:18:10 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFGTBd3wr+dGP4lxAmb8x26gFk1dSz0ZppafWR01jqNQlD/vB4DMb6UR1SRwzBTBv8l4Czm X-Received: by 2002:a17:90a:fe8d:b0:269:3cdb:4edf with SMTP id co13-20020a17090afe8d00b002693cdb4edfmr11695123pjb.16.1696328290126; Tue, 03 Oct 2023 03:18:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696328290; cv=none; d=google.com; s=arc-20160816; b=oDnP2PmNAEQkOq1nF2jLNZC46y1JoKESVMBrK4VhDgxsYnPFFRMBdUNDPBU2AeDuVn JQWzDhQVsSX5313qan1Pl71wxza4sOXoAN5tOyEjMesR7sD8NZMKdkcNHKSuefnRz6Z7 SjD66sfY/uMpp0rXdWJMcDghbcXACZP9Dg2hynjrjFsTcoHBjm5iK9yKP09aG970Cf/1 Vne3aMXmgALI/T3YLz/OJRKFUU6Z+YGdgbkdOmC+doaONNR4fAFDg+FPtNVMliHQXILz Tey2VxpL+bs09kftMPiAf4teDx3WERElhZ01GnaagzlKyw8I3xW52wcmQq+R+/BvLmeU NTmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:dkim-filter; bh=rPoWxArSPTX73zRYqxSh03l9OCqoYJW886p1zjn4TkE=; fh=qoJEgrMhycyOy9esd3DxPgETWksmSeK3vaQbvlvKBHQ=; b=pSlHxl4DbIxwVlROeSpJmwmqUzONszwxG/9Pcmf+W5nDTzVzQevOcAkc8CjmxBCzuc NY1Icw9dVtM4dT1w6byESzZHI5bbrov6yh76kTS7hsLpjQhNijapFGkk5Gz2CN97JpfX DMhmAiiZ5BgKCx4NWOa5x0no8yVGiOXvB6Sxs/OuWiW+h7MLK7n3CfKCTW8SPNuygU5d dedNCVxTYEE6UMQ7j3fBZ05nYvZns+0umWeeb4Hs+C8HJeu8FYPmB0PruwWvw9eRpHU8 6LeUMxiT2W2ozY9H0TGwXLklNUxKxqBxa3NfJrZJRc9fPahLXgpT/W1frnV/OhYlz3k2 EN7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=lgkAWGaE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id a19-20020a17090a8c1300b0026829a94587si1077573pjo.176.2023.10.03.03.18.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 03:18:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=lgkAWGaE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 1A42B802B202; Tue, 3 Oct 2023 03:18:07 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231218AbjJCKRw (ORCPT + 99 others); Tue, 3 Oct 2023 06:17:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229758AbjJCKRv (ORCPT ); Tue, 3 Oct 2023 06:17:51 -0400 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D74E893; Tue, 3 Oct 2023 03:17:48 -0700 (PDT) Received: by linux.microsoft.com (Postfix, from userid 1134) id 477DB20B74C0; Tue, 3 Oct 2023 03:17:48 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 477DB20B74C0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1696328268; bh=rPoWxArSPTX73zRYqxSh03l9OCqoYJW886p1zjn4TkE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=lgkAWGaEOC3pMX+wazaPs/M9R0m0veb/24KBGsMHsZ7MzKCfUocTtLXWo3JjVnqEE kSwh/5P+V5mJJNzFzbnpLFuZ7bB7k4I4CKfjiFnKj9g82mnXlm9xmFsUOCAmFZolOk OFVHYqeqwAlnttFBqL8TBEivQ8xLQuAmNYRFRz3E= Date: Tue, 3 Oct 2023 03:17:48 -0700 From: Shradha Gupta To: Haiyang Zhang Cc: linux-hyperv@vger.kernel.org, netdev@vger.kernel.org, decui@microsoft.com, stephen@networkplumber.org, kys@microsoft.com, paulros@microsoft.com, olaf@aepfle.de, vkuznets@redhat.com, davem@davemloft.net, wei.liu@kernel.org, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, leon@kernel.org, longli@microsoft.com, ssengar@linux.microsoft.com, linux-rdma@vger.kernel.org, daniel@iogearbox.net, john.fastabend@gmail.com, bpf@vger.kernel.org, ast@kernel.org, sharmaajay@microsoft.com, hawk@kernel.org, tglx@linutronix.de, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH net,v2, 2/3] net: mana: Fix the tso_bytes calculation Message-ID: <20231003101748.GA32191@linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net> References: <1696020147-14989-1-git-send-email-haiyangz@microsoft.com> <1696020147-14989-3-git-send-email-haiyangz@microsoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1696020147-14989-3-git-send-email-haiyangz@microsoft.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Status: No, score=-8.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Tue, 03 Oct 2023 03:18:07 -0700 (PDT) On Fri, Sep 29, 2023 at 01:42:26PM -0700, Haiyang Zhang wrote: > sizeof(struct hop_jumbo_hdr) is not part of tso_bytes, so remove > the subtraction from header size. > > Cc: stable@vger.kernel.org > Fixes: bd7fc6e1957c ("net: mana: Add new MANA VF performance counters for easier troubleshooting") > Signed-off-by: Haiyang Zhang > Reviewed-by: Simon Horman > --- > drivers/net/ethernet/microsoft/mana/mana_en.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/net/ethernet/microsoft/mana/mana_en.c b/drivers/net/ethernet/microsoft/mana/mana_en.c > index 5cdcf7561b38..86e724c3eb89 100644 > --- a/drivers/net/ethernet/microsoft/mana/mana_en.c > +++ b/drivers/net/ethernet/microsoft/mana/mana_en.c > @@ -264,8 +264,6 @@ netdev_tx_t mana_start_xmit(struct sk_buff *skb, struct net_device *ndev) > ihs = skb_transport_offset(skb) + sizeof(struct udphdr); > } else { > ihs = skb_tcp_all_headers(skb); > - if (ipv6_has_hopopt_jumbo(skb)) > - ihs -= sizeof(struct hop_jumbo_hdr); > } > > u64_stats_update_begin(&tx_stats->syncp); > -- > 2.25.1 Reviewed-by:Shradha Gupta