Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1981737imm; Sat, 29 Sep 2018 08:00:45 -0700 (PDT) X-Google-Smtp-Source: ACcGV62CXF8M5BES62sCu6rnXTfiNND7LqO5HB0W0MSTFHajbmvOlfyJnweXtBHtXbQQI2fzkPnC X-Received: by 2002:a17:902:ac8e:: with SMTP id h14-v6mr3528566plr.300.1538233245306; Sat, 29 Sep 2018 08:00:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538233245; cv=none; d=google.com; s=arc-20160816; b=y81noVs6aAnydXlSygKT9VUoxB+3EChf7pQAbNb1gReTw8j+339VFvyDYit/XKTJAu 5H84EOJYIu58ea60iUiBAatZV/tUU65//xGelZ+WSNiTrW9Xbhc0kmhUKiXnTrJ8lz3o dS3uOF+198wvc3a8HI0E1aZ8BJLTMXVKmOyiVMFISdoIynROY7OIO18pT6kSo0vXGHLS XzB1IuusodqUbpWYD4dZqenSppCUTgd2sw1xVE+fIJ4uh5W+sbxEDiUdxJMomLaUzZFh yEek/I+wr2Qhgd9rFo8FMT3OXe3n+IBISpMZB708c9J/fmN6nGyyVhsqEBl9okUD/YoI N/Gw== 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 x73-v6si7962672pfe.58.2018.09.29.08.00.31; Sat, 29 Sep 2018 08:00:45 -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 S1728383AbeI2V10 (ORCPT + 99 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 Content-Type: text/plain 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(-) 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; -- 2.11.0