Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp1648123pxy; Mon, 2 Aug 2021 07:03:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJywk9PZvvqhkCU7V5eDMVxhcyFxHeCm/oXQIXa1WHZcuBgHQ+lV67P1mGczI0CMgJg4rHVV X-Received: by 2002:a02:cb4d:: with SMTP id k13mr1949995jap.31.1627912998400; Mon, 02 Aug 2021 07:03:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627912998; cv=none; d=google.com; s=arc-20160816; b=uWRqeUBnIoCzdcxJz5TLqvq8rxI9fBBtsF3HKZjf9QU4PFUYOP+xQ/TorXqugTgTfy 0n4iDAQ9CkYjXujsf4bnPJ0QVjEzuoPvM0wPhsE9/wAQ9CLAfCPJ6GjFq6WUvf1eOj3J axAWhKyEmZgtYp550G9IUB3EkY7zGxt8RowRVtvBPqrSJ9P2pTFHmrRurpfsaKPPYHOO AKq253/E0D3yBMc7hQ/yvVvOhJcwjZk8VHom7KGf0l5GlHrlAYbIvopiAYaxX3meeudN ySXQl4AZSclm6OEQTxEaUnMG+LW/bX2M/cispsl3q4uf8RRAiibkG/wW1u5qdJVXvE8j /IKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=q+bcWbcxIr1hGcq4NpvzHvy5B/REtm0CnqvVTuCYt5w=; b=RdkNM2XQFo+iCEiPq8BCoioEBh1xtpRR1R7lTiikkdjU+v9m4pJGrrGQbOgKY+nBWi QD14gGsPhatwF8k3kCjFKAW/ebVXFZOnsbDkOR0+IwqG0bLaVrklJ0zLI1h6xHBS0ZK2 G/b70wOqvYANwfpDBpCTH4PKkWNn3jUT/OPjyx6q92/FII1kcpROmzS0X9l5hePeUvCT bTtf5md7xbuBKpBwVmUG+ccxiCXqP3ifXl9FsAs/ejRp4c7U5EfVv2KKf2IcYwT/7F+3 xNCNKELXCtr4HcKgzC67Wf515Do/gkyZ/WFQYu5jtBIcnEpgjzg0gL0dSn41hjUUu2wX o13g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="0+T7mhj/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h21si11041092ila.73.2021.08.02.07.03.06; Mon, 02 Aug 2021 07:03:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="0+T7mhj/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235728AbhHBOAq (ORCPT + 99 others); Mon, 2 Aug 2021 10:00:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:40742 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236136AbhHBNzA (ORCPT ); Mon, 2 Aug 2021 09:55:00 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C243661154; Mon, 2 Aug 2021 13:53:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1627912402; bh=m0C8kAZoPsq6olJP700FwWPh1M+fNjYI/O7wHlYoRm0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=0+T7mhj/5sye4VwWwTKj8JH171gZOeAP3Mac7AYJlE/AdyYlUi+9DO5bkmlrHuK/T qDYiu93erIemFAfzDPnjBHii+sq12acvm5IonyuDIZsCQcRW9buhC0fgvqX3esrtcN BbujlJ7jOnBQTfZXa3qrlynWnjkQLErSoq6WtVTA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Shannon Nelson , "David S. Miller" , Sasha Levin Subject: [PATCH 5.10 43/67] ionic: count csum_none when offload enabled Date: Mon, 2 Aug 2021 15:45:06 +0200 Message-Id: <20210802134340.483627490@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210802134339.023067817@linuxfoundation.org> References: <20210802134339.023067817@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Shannon Nelson [ Upstream commit f07f9815b7046e25cc32bf8542c9c0bbc5eb6e0e ] Be sure to count the csum_none cases when csum offload is enabled. Fixes: 0f3154e6bcb3 ("ionic: Add Tx and Rx handling") Signed-off-by: Shannon Nelson Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/pensando/ionic/ionic_txrx.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/net/ethernet/pensando/ionic/ionic_txrx.c b/drivers/net/ethernet/pensando/ionic/ionic_txrx.c index 52213fee054d..46dbb49f837c 100644 --- a/drivers/net/ethernet/pensando/ionic/ionic_txrx.c +++ b/drivers/net/ethernet/pensando/ionic/ionic_txrx.c @@ -197,12 +197,11 @@ static void ionic_rx_clean(struct ionic_queue *q, } } - if (likely(netdev->features & NETIF_F_RXCSUM)) { - if (comp->csum_flags & IONIC_RXQ_COMP_CSUM_F_CALC) { - skb->ip_summed = CHECKSUM_COMPLETE; - skb->csum = (__force __wsum)le16_to_cpu(comp->csum); - stats->csum_complete++; - } + if (likely(netdev->features & NETIF_F_RXCSUM) && + (comp->csum_flags & IONIC_RXQ_COMP_CSUM_F_CALC)) { + skb->ip_summed = CHECKSUM_COMPLETE; + skb->csum = (__force __wsum)le16_to_cpu(comp->csum); + stats->csum_complete++; } else { stats->csum_none++; } -- 2.30.2