Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp93053pxb; Mon, 13 Sep 2021 13:53:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzSGDEt2cKq15meWOT1HiZ4Jvj3Y0bu4WSJjRNU+k7JVyhODVuxRYE/cysZSAqAyikcEBKA X-Received: by 2002:a17:906:c005:: with SMTP id e5mr11119497ejz.480.1631566410130; Mon, 13 Sep 2021 13:53:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631566410; cv=none; d=google.com; s=arc-20160816; b=ej/9hKPeh1TcSsWPLilBcW1P8w+nLqQfS2481MvHvs0BJU82ScK3W3iznEV+iiAQxc 8uOcrr4GG246jeHFq11tvXmMl8oaoA7uivEM2j2ntBy7Se3U4o89SHOPc6j6gpWbptDb 1I88E5O/bB1Z03mjy2EbPeigK16eDZnY+RXSjK/8RN6e+yGJGO6gG6odNnzRmZRm6xUJ MHRXuFsQV0XNRJZ+SZ6fRz3iietBZqDVSHJ6gA4vZKmqcGe9eFOr78X+nq/eQlKixOFe TENTn71+dCAe9cvTzqL3Oe6xxL18Pj7194F1rFROIkNU/doFMoQxyMgMgcGBt7AmJB26 9yxQ== 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=bjBebRvQZWaPtW3SNMRO/JsMU5JzYb2O3vgK2wHbQko=; b=P+OZqnJTLCJpnOaeBpY4hfzSRYxGYwmwGFdR31Yi6h6eXTupOihCdzQI8P/iVKi4td 67daC97fLd9YQmVhpF+eGJ8tAZUSEt6JS/sDyaea56yhy+fiUUmjrgO3GiExMgBE2/Ye vZATJxo4qD1+5fS8yLh84G6Qga8CSXj4kfeVzF6HHPk+CGRfFRITzmSnWyfZKGWuffzg v7G/BYuA3276WdVhfhPSD0U/V6llR2VYdUS2eoUgsdGriimCqix64ICpGowl1oWAP+gE bUL73IdbIVsmaTZemFdmH3nOI1l+4ZrPRYwxd56WZWzN9IlrX5pqp9yt4mFIXLn/kX3S de+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=0ZaiCSK1; 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 k9si10237323edv.565.2021.09.13.13.53.07; Mon, 13 Sep 2021 13:53:30 -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=0ZaiCSK1; 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 S244366AbhIMNxI (ORCPT + 99 others); Mon, 13 Sep 2021 09:53:08 -0400 Received: from mail.kernel.org ([198.145.29.99]:56744 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244522AbhIMNtd (ORCPT ); Mon, 13 Sep 2021 09:49:33 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0476D615E1; Mon, 13 Sep 2021 13:33:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631539987; bh=+AISKgyH32nmGVrLl3k0AJKomFgzEsafT0z1jIBQIp0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=0ZaiCSK16kKM4u+MQ7bEpSvN5pEjjF+W3bN4C2v9pHx7BQIQlKRspTGXsH4Q4oN9e 7Zg4lb2Dtjp50hjS1ClDAVud4MxMKa4I9jx7RRdMOFHz1GJLG9gjIeGfBVAzepuyTI SRjvaPVMb3EuuuGFW3DqKuqESZqmYnHjBiUm7ohg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Michael Heimpold , Stefan Wahren , "David S. Miller" , Sasha Levin Subject: [PATCH 5.10 210/236] net: qualcomm: fix QCA7000 checksum handling Date: Mon, 13 Sep 2021 15:15:15 +0200 Message-Id: <20210913131107.520498423@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210913131100.316353015@linuxfoundation.org> References: <20210913131100.316353015@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: Stefan Wahren [ Upstream commit 429205da6c834447a57279af128bdd56ccd5225e ] Based on tests the QCA7000 doesn't support checksum offloading. So assume ip_summed is CHECKSUM_NONE and let the kernel take care of the checksum handling. This fixes data transfer issues in noisy environments. Reported-by: Michael Heimpold Fixes: 291ab06ecf67 ("net: qualcomm: new Ethernet over SPI driver for QCA7000") Signed-off-by: Stefan Wahren Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/qualcomm/qca_spi.c | 2 +- drivers/net/ethernet/qualcomm/qca_uart.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/qualcomm/qca_spi.c b/drivers/net/ethernet/qualcomm/qca_spi.c index 5a3b65a6eb4f..36bcb5db3be9 100644 --- a/drivers/net/ethernet/qualcomm/qca_spi.c +++ b/drivers/net/ethernet/qualcomm/qca_spi.c @@ -434,7 +434,7 @@ qcaspi_receive(struct qcaspi *qca) skb_put(qca->rx_skb, retcode); qca->rx_skb->protocol = eth_type_trans( qca->rx_skb, qca->rx_skb->dev); - qca->rx_skb->ip_summed = CHECKSUM_UNNECESSARY; + skb_checksum_none_assert(qca->rx_skb); netif_rx_ni(qca->rx_skb); qca->rx_skb = netdev_alloc_skb_ip_align(net_dev, net_dev->mtu + VLAN_ETH_HLEN); diff --git a/drivers/net/ethernet/qualcomm/qca_uart.c b/drivers/net/ethernet/qualcomm/qca_uart.c index 362b4f5c162c..0b7301db20ed 100644 --- a/drivers/net/ethernet/qualcomm/qca_uart.c +++ b/drivers/net/ethernet/qualcomm/qca_uart.c @@ -107,7 +107,7 @@ qca_tty_receive(struct serdev_device *serdev, const unsigned char *data, skb_put(qca->rx_skb, retcode); qca->rx_skb->protocol = eth_type_trans( qca->rx_skb, qca->rx_skb->dev); - qca->rx_skb->ip_summed = CHECKSUM_UNNECESSARY; + skb_checksum_none_assert(qca->rx_skb); netif_rx_ni(qca->rx_skb); qca->rx_skb = netdev_alloc_skb_ip_align(netdev, netdev->mtu + -- 2.30.2