From patchwork Sat Sep 29 14:56:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Salil Mehta X-Patchwork-Id: 147840 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp1986141lji; Sat, 29 Sep 2018 07:58:48 -0700 (PDT) X-Google-Smtp-Source: ACcGV62Ugp8F06pQ47J/F29Be5cShCHJoUt3WnNqBNycNcFvRejVkkBP0CL4mVg2mJkIBdz/Ulnk X-Received: by 2002:a63:e54d:: with SMTP id z13-v6mr3233823pgj.169.1538233127955; Sat, 29 Sep 2018 07:58:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538233127; cv=none; d=google.com; s=arc-20160816; b=W/yRxW/a3YP/HX9mhNVYN6i3yhgXIYURZKrn4sXQJQRisVsxpYxDNLtiCfo8tauNNn 0Lu0J/zOkI2+SfTFTaT8MM6hy3rbUGMpS0giKJMdpwVBut2HB7MhPn5Q1gRAga/pMcaE 06pSFMAVWgNm3b8Lk3hGE3EV8LELvHd3v4qRqQrn5xmgwGwGc+5wDO3VTRMo2a+0V/lR iKHa6bzHoAZE2Qmw08JiMN3UKcPPWesJRElayJBGbKfU4ZZLyeJhdAesbMPp8TXLf6Mf Dc9uZY8golvQqJHK5D5wHBpWO/2G8rsGIW8LRB+UWmFRKDXrv5LDq0/WESv3gcWquEvM zaJg== 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=8oSSfY4/peJ1y1jpVebSNsJgRLjR+SxpsoSs1nfcqyU=; b=YqNCGC+I1F2dEsaF6cTfMQUjD0SCioKFvOwNN6CWul/2/iEpoVkIp8zDrjhl6z39Uz McLdKKL0f/rUk/IsjrSX95kQBIenJV7LahWFEPsgvs+r0nPnpWjv3od197PhR8KPJM45 3oy9in9XrBnvdn1ONeJEyBNvlWP6aKsOor2c1vnREtYbY2NfYVdBvLYFuGvrSkax8p6D qIpf/F/4AHSS4yg/lG36wEaTiybTZyxVWSb9cDMF4Thbqm5zkZwHhfNvsKZepjUWIewz 8eN3nLbDF5qgLhKtp+qcSsbgzUvPw0ky7av+9yCP00NSxhw3YJlb7YwYd1tB6U4doRTm 3lbw== 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 w186-v6si715148pgd.471.2018.09.29.07.58.47; Sat, 29 Sep 2018 07:58:47 -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 S1728387AbeI2V10 (ORCPT + 32 others); Sat, 29 Sep 2018 17:27:26 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:57435 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728368AbeI2V1Z (ORCPT ); Sat, 29 Sep 2018 17:27:25 -0400 Received: from DGGEMS412-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id C5B969694B2CC; Sat, 29 Sep 2018 22:58:37 +0800 (CST) Received: from S00293818-DELL1.china.huawei.com (10.47.85.66) by DGGEMS412-HUB.china.huawei.com (10.3.19.212) with Microsoft SMTP Server id 14.3.399.0; Sat, 29 Sep 2018 22:58:30 +0800 From: Salil Mehta To: CC: , , , , , , , Fuyun Liang Subject: [PATCH V2 net-next 01/10] net: hns3: Add support for sctp checksum offload Date: Sat, 29 Sep 2018 15:56:13 +0100 Message-ID: <20180929145622.5448-2-salil.mehta@huawei.com> X-Mailer: git-send-email 2.8.3 In-Reply-To: <20180929145622.5448-1-salil.mehta@huawei.com> References: <20180929145622.5448-1-salil.mehta@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.47.85.66] 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(-) -- 2.11.0 diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c index 5a4773a9b4a5..3fc38228f459 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;