Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp22721pxb; Mon, 13 Sep 2021 11:54:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxvqFKgL9NYzEV7ep8n9ZRagRmgIlhOYmtxovDxlGaQtJOP0qudtU5ATPtB497sUyWB46Fe X-Received: by 2002:a05:6402:c10:: with SMTP id co16mr747999edb.327.1631559260332; Mon, 13 Sep 2021 11:54:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631559260; cv=none; d=google.com; s=arc-20160816; b=q76C1RZpFXiDOKp5ocNw0SHxsAMPPbtn2EYoMveM8BpZ3vOlY/N2Lz/12UMAqiEOY7 zQl9Au7MVhatZgmT90WDOKAsE7ryJSHG9ir9o0Km4zWIgDdV1d7/jmBpfxWhElGp4dDu OUvcg5KTNpWfgZUbBCv33MrOMPrV2zww2Op+hD7eyn16ENowPI9oWTb85odIQTbyUovT Cc3LQTTIyQYPQ7rS9S0ysb7LhfylfQY0h5uHrJDnEMo37jKlOx5ynqQrp0Ki0DlNW+kD e08bomYM3nhq+oslBhFhCUR4aE2SkZxfUDzQC/TlmJAATn2yzgBKPUL7f9/C5jZVSGsu USPw== 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=2pbzq45JSybXQSiAfo7GKURf1Uboo3ZvzJuh9zsMzWE=; b=T1cTt182KeCt8qsEFqZrfkVVSIuJK1qooRvTaxbpTEU0M1ljyqdHee+Y9iP2qkZM3L ZtcUe3aE68yiyT1uCFaR4IQ4RzZWPdKbpziozjSY5JTeEG8pRxvmSXvp2uvQCxPS/WCo KZMobCyxyYvbe0LLWgfmMKtXeRdG1q+F6Okxl9Yq0FdiKO7T9qLj923JqWejMWc+4vEI ROchxuIwTNWmcLJZHs3ECPsttix9Kyv/IJn3uUKmJlsrf5uwzc+8Ox/EnDxBqQINoWDF lQGS7mDfkEJdcN61xfxZ6eqoJCQYKBV9Zyotx4KOEH5nzZEPQ66K0hSN5n7t2JjJRAGE QHDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="d/0IswzX"; 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 s13si7686808edh.555.2021.09.13.11.53.55; Mon, 13 Sep 2021 11:54:20 -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="d/0IswzX"; 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 S242106AbhIMN1G (ORCPT + 99 others); Mon, 13 Sep 2021 09:27:06 -0400 Received: from mail.kernel.org ([198.145.29.99]:37924 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241662AbhIMNYc (ORCPT ); Mon, 13 Sep 2021 09:24:32 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 317FE61211; Mon, 13 Sep 2021 13:22:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631539321; bh=bYQBbAhg4PKSorVTt+k42SFcTQ+v6vWpyrZlMLiUe2Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=d/0IswzX4q7/dky6tWH76SwwfvrEXzimgTYHFqyTWvfC9sY7ur7PhdIAw3wkvnRLa Y9WzWN4ukv4dSUwjspvd84QtH8ekFwXlAHGoyQiIudanDdSqIsyWFuOm8AD8zlxMF4 obnT1NDXnhzFFOg4G7/msdbxCFpf46EbCugWADDM= 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.4 124/144] net: qualcomm: fix QCA7000 checksum handling Date: Mon, 13 Sep 2021 15:15:05 +0200 Message-Id: <20210913131052.077729252@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210913131047.974309396@linuxfoundation.org> References: <20210913131047.974309396@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 baac016f3ec0..15591ad5fe4e 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 0981068504fa..ade70f5df496 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