Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1094537imm; Wed, 26 Sep 2018 11:31:59 -0700 (PDT) X-Google-Smtp-Source: ACcGV617mD7J7ynuONcRX98Z2jKDvpSbdnww67IwRH5KFP7S95bOkZRE54uHYECAVHvInbi2GiC0 X-Received: by 2002:a63:31c8:: with SMTP id x191-v6mr6614825pgx.229.1537986719903; Wed, 26 Sep 2018 11:31:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537986719; cv=none; d=google.com; s=arc-20160816; b=sBXsvAqynxT5Ze9Y7U5TGCfiynF/9iWWJ3NwQJr7CVT0VTOksw7PHdLjywUMLv6q4z 6FUGaPqdYNfuVvnDvV+au+FO0qQuO88Lw4jrIADUxg1lHtdb/asfyOmLadMABJzNAcBF ItRUT9zWCXLPKkin8VlO5p2GYgM9XIhuD8LcgTf59qr8n9QWqLfGZPTmUgbRifUSv9Fn Y6lGbks8xSBBkhTXjGIBY04tdN5c8iYh//BRyhqetYh9G3mTbP0OIie3UDJPZxd8FgoB 6f6mwQnnYEGhhs7QXBGxFrfKM7z47BCK5cCavQlfXVnvNqwWf7wVL8tRD8v+UPQtwWIf mMAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=T8irkHPrH/y4SuGmpxDbfNoqesYQmhlHJkKql0JDsjQ=; b=lkvpmGJrjxHJmkAw9HFG3yI9qeOb/tWmoHIrxkNKoC/uVvJFPOW5++aVfIcgAK4HTO qDvq8RjU2uBiwTGu3DWNL48/Om3ZSozZ9U9/CAeDdJpwd2b/RY5uFRrfRqehro/q99do P50MQeRJbFzXZ45YzIRMPDR5O1WYNvjIU5jCb8Rq9K3PwPG3VXFNeJ1/nQlwKRwf/NiS z/OuUmItTBEPNqv+vmTTdbx97JMPbCS6uE5Wf7pLn2X4iu18lQLPvCftSBnHkqSKKWnU TSHNiVzpfdVBQK94onFi5EsB2AEZhFj5G9K8KC+vhSU/x+SLEUXoRbVlYusjNyoSqvFT PJGQ== 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 12-v6si5909206pgq.337.2018.09.26.11.31.45; Wed, 26 Sep 2018 11:31:59 -0700 (PDT) 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 S1728986AbeI0ApE (ORCPT + 99 others); Wed, 26 Sep 2018 20:45:04 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:13129 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728674AbeI0Anr (ORCPT ); Wed, 26 Sep 2018 20:43:47 -0400 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 01117F8B83319; Thu, 27 Sep 2018 02:29:29 +0800 (CST) Received: from S00293818-DELL1.china.huawei.com (10.202.226.54) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.399.0; Thu, 27 Sep 2018 02:29:23 +0800 From: Salil Mehta To: CC: , , , , , , , Fuyun Liang Subject: [PATCH net-next 01/10] net: hns3: Add support for sctp checksum offload Date: Wed, 26 Sep 2018 19:28:31 +0100 Message-ID: <20180926182840.28392-2-salil.mehta@huawei.com> X-Mailer: git-send-email 2.8.3 In-Reply-To: <20180926182840.28392-1-salil.mehta@huawei.com> References: <20180926182840.28392-1-salil.mehta@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.202.226.54] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Peng Li This patch adds support for sctp checksum offload. Signed-off-by: Fuyun Liang Signed-off-by: Peng Li Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c index 5a4773a..3fc3822 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c @@ -1740,7 +1740,7 @@ static void hns3_set_default_feature(struct net_device *netdev) NETIF_F_RXCSUM | NETIF_F_SG | NETIF_F_GSO | NETIF_F_GRO | NETIF_F_TSO | NETIF_F_TSO6 | NETIF_F_GSO_GRE | NETIF_F_GSO_GRE_CSUM | NETIF_F_GSO_UDP_TUNNEL | - NETIF_F_GSO_UDP_TUNNEL_CSUM; + NETIF_F_GSO_UDP_TUNNEL_CSUM | NETIF_F_SCTP_CRC; netdev->hw_enc_features |= NETIF_F_TSO_MANGLEID; @@ -1752,21 +1752,21 @@ static void hns3_set_default_feature(struct net_device *netdev) NETIF_F_RXCSUM | NETIF_F_SG | NETIF_F_GSO | NETIF_F_GRO | NETIF_F_TSO | NETIF_F_TSO6 | NETIF_F_GSO_GRE | NETIF_F_GSO_GRE_CSUM | NETIF_F_GSO_UDP_TUNNEL | - NETIF_F_GSO_UDP_TUNNEL_CSUM; + NETIF_F_GSO_UDP_TUNNEL_CSUM | NETIF_F_SCTP_CRC; netdev->vlan_features |= NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM | NETIF_F_RXCSUM | NETIF_F_SG | NETIF_F_GSO | NETIF_F_GRO | NETIF_F_TSO | NETIF_F_TSO6 | NETIF_F_GSO_GRE | NETIF_F_GSO_GRE_CSUM | NETIF_F_GSO_UDP_TUNNEL | - NETIF_F_GSO_UDP_TUNNEL_CSUM; + NETIF_F_GSO_UDP_TUNNEL_CSUM | NETIF_F_SCTP_CRC; netdev->hw_features |= NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM | NETIF_F_HW_VLAN_CTAG_TX | NETIF_F_HW_VLAN_CTAG_RX | NETIF_F_RXCSUM | NETIF_F_SG | NETIF_F_GSO | NETIF_F_GRO | NETIF_F_TSO | NETIF_F_TSO6 | NETIF_F_GSO_GRE | NETIF_F_GSO_GRE_CSUM | NETIF_F_GSO_UDP_TUNNEL | - NETIF_F_GSO_UDP_TUNNEL_CSUM; + NETIF_F_GSO_UDP_TUNNEL_CSUM | NETIF_F_SCTP_CRC; if (pdev->revision != 0x20) netdev->hw_features |= NETIF_F_HW_VLAN_CTAG_FILTER; -- 2.7.4