Received: by 10.223.164.202 with SMTP id h10csp124689wrb; Wed, 22 Nov 2017 04:53:58 -0800 (PST) X-Google-Smtp-Source: AGs4zMZrxg7SA9PDc9ka2QPbD0DL8DgOmNpqJNx96238RP3qyf72nLaTMHCpZvocUqh+8eWAYCli X-Received: by 10.98.19.92 with SMTP id b89mr6138430pfj.124.1511355238189; Wed, 22 Nov 2017 04:53:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511355238; cv=none; d=google.com; s=arc-20160816; b=t0F+dQxcLtbtygl6g4A92ODe1kFAISFGY+NPu0ixaOQX0aouxGO2EQIuvWcSTPsslg GWX/2AUY+KNPQ8Rn89HeHudxs04rU8AD0NoBoITgvJlelC17YD1wZoazVg4rOvoan/zx FFw6nX/ZKZePUocKPvnr3Lphie2DzF1iVUVb+N5OJJJhgdAwYmpvgDgHSkMpp+Erpoii iJyHefa/xIaD/Qow7yTUzFT1HasE6Mp+xZmbELUXKX79Nms9luQlk8ss94/GvbKFthP6 Q91TlTrzJXH68DTrLuvBXO4A2T2c1fhpzSKCWQtZIFN9mGfGrMOsx4cKBa28/8l0iOG/ yQ4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:arc-authentication-results; bh=TFYM8i8YG4IQO1QDMRQYeHdQXiitW6FoqcFxgtoMtQM=; b=rGG8SeCgX2T/gsJ79Sf35uPz8MdhfUU2kp1YUT1oNLzHd+M6PViUi/LtApe1DiBkGT BaP5R5xbCBqYY9ECIS6E0zkzJ8SdhtjVmMf9rcSQRyTepVs6EWYBBWa4YqNO5qENHAD8 UI7BfPmwpZmcnxmNY6ukV9P9EDFRSVjEkOgvCKvzd7mvCMww9bl4d1F8t7Rj0GKELLIz dpUTViOiAoe2YEJMjR4n8JZHn7ViRO9RazGUrQjrI7LheHySzkfwJG242izIKEDOGGxD SKz/DqrXbetWsdr1k1FbC2y2wn8MpEtPd3iXByd+uAWnuhCvw4Ye9GUNmJRBxQEX1CXO kA8A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f15si13618355plr.601.2017.11.22.04.53.47; Wed, 22 Nov 2017 04:53:58 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751502AbdKVMw7 (ORCPT + 77 others); Wed, 22 Nov 2017 07:52:59 -0500 Received: from nivc-ms.auriga.com ([80.240.102.145]:12391 "EHLO nivc-ms.auriga.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751244AbdKVMw5 (ORCPT ); Wed, 22 Nov 2017 07:52:57 -0500 X-Greylist: delayed 902 seconds by postgrey-1.27 at vger.kernel.org; Wed, 22 Nov 2017 07:52:56 EST Received: from localhost.localdomain (80.240.102.216) by nivc-ms.office.auriga.msk (80.240.102.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.845.34; Wed, 22 Nov 2017 15:37:48 +0300 From: Aleksey Makarov To: CC: , "Goutham, Sunil" , Robert Richter , "Florian Westphal" , Aleksey Makarov , Sunil Goutham , Aleksey Makarov , Subject: [PATCH net] net: thunderx: Fix TCP/UDP checksum offload for IPv6 pkts Date: Wed, 22 Nov 2017 15:37:25 +0300 Message-ID: <20171122123727.23580-1-aleksey.makarov@auriga.com> X-Mailer: git-send-email 2.15.0 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [80.240.102.216] X-ClientProxiedBy: hq-ms.office.auriga.msk (82.97.202.32) To nivc-ms.office.auriga.msk (80.240.102.145) X-TM-AS-Product-Ver: SMEX-12.0.0.1220-8.100.1062-23482.000 X-TM-AS-Result: No--7.118000-8.000000-31 X-TM-AS-MatchedID: 709291-863828-704501-703788-700486-702898-712222-700270-1 88019-704421-702099-703491-711624-702131-121155-148004-148036-42000-42003-63 X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sunil Goutham This fixes a previous patch which missed some changes and due to which L3 checksum offload was getting enabled for IPv6 pkts. And HW is dropping these pkts as it assumes the pkt is IPv4 when IP csum offload is set in the SQ descriptor. Fixes: bbbb494fd005 ("net: thunderx: Enable TSO and checksum offloads for ipv6") Signed-off-by: Sunil Goutham Signed-off-by: Aleksey Makarov --- drivers/net/ethernet/cavium/thunder/nicvf_queues.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/cavium/thunder/nicvf_queues.c b/drivers/net/ethernet/cavium/thunder/nicvf_queues.c index d4496e9afcdf..184d5bdbe7e0 100644 --- a/drivers/net/ethernet/cavium/thunder/nicvf_queues.c +++ b/drivers/net/ethernet/cavium/thunder/nicvf_queues.c @@ -1355,10 +1355,11 @@ nicvf_sq_add_hdr_subdesc(struct nicvf *nic, struct snd_queue *sq, int qentry, /* Offload checksum calculation to HW */ if (skb->ip_summed == CHECKSUM_PARTIAL) { - hdr->csum_l3 = 1; /* Enable IP csum calculation */ hdr->l3_offset = skb_network_offset(skb); hdr->l4_offset = skb_transport_offset(skb); + /* Enable IP HDR csum calculation for V4 pkts */ + hdr->csum_l3 = (ip.v4->version == 4) ? 1 : 0; proto = (ip.v4->version == 4) ? ip.v4->protocol : ip.v6->nexthdr; -- 2.15.0 From 1584856294489241605@xxx Thu Nov 23 11:32:23 +0000 2017 X-GM-THRID: 1584856294489241605 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread