From patchwork Tue Nov 13 10:13:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Salil Mehta X-Patchwork-Id: 150952 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp4213495ljp; Tue, 13 Nov 2018 02:14:21 -0800 (PST) X-Google-Smtp-Source: AJdET5eFQ3yeDqJgsJWyW0VLrqUpP8D2BEc8PYFtWaGzoOf/3H4sKt4nQNrxIYzPPbeDphMEL2aj X-Received: by 2002:a63:f844:: with SMTP id v4mr4173973pgj.82.1542104061114; Tue, 13 Nov 2018 02:14:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542104061; cv=none; d=google.com; s=arc-20160816; b=WjCkFmuShPb0R3KeBFbZ9WCI5Gs7jl6uEowmhoDS3mNmqYJZRIz3ATW9uyNoexVvDN bW7ve0dDrHQkR9ka4WngOmyrSV7s8J/yON2ulC0BB0DgFbVoV117n/RUKXQRgA1N5Gcx 1aQQ1AQ+vwvWlMPYmdYGjzV9ECLBPoNgNMmwCJSZxJBMcmdA5u/Y4SpZ88MlO8TaDi7L q3RGNSpJxH0zL15iu4SUglELpLpkWKDLb1DbkCmDTjY9TCU0YZ4svRc/YE804uxMedyB iNmzvjEbAfNW5F1IQJ6aVD/ovVJqRpiU2/OoQ3tyBiV8phLyZaym/U/AFMAMrDUUtr4x 2ozQ== 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; bh=5kuctnJOC0xy3IRE65pBz7e/x3G2J2VMSs207fDOKao=; b=ShOFut0zSPXRlse6vwxCh1pjAl8oRAigMiGVm9PdLnZApmetSsatkX6MP91Y03nB2f aGAk3eHuLMKhRxeXzDyDInJLn/AUdNiFRjeWXJ0tuy4jpU2yAPNOdV0upy8smBo7ykII qJ0Fxwxg2CEDhCgoBOInTFFdvFLZ8gIVbXKdqeWl2IchPfsrypk1c1f3d1d5ptwmYaTg dXh+pkBEQthGA8K9+xQIs3AJ8245b7QQFiXyE3gxc/rluoQvoKiW3KgqeYCWWLXs2foS joL6IDxC6mhOutR6Z49f515ME84bUUIe7p4KyUtUsYrWAO0w+0h2NYg6Qvfb1Lem41r7 VnUw== 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 x3si18873890pgf.453.2018.11.13.02.14.20; Tue, 13 Nov 2018 02:14:21 -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 S1732088AbeKMULm (ORCPT + 32 others); Tue, 13 Nov 2018 15:11:42 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:15095 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1731878AbeKMULm (ORCPT ); Tue, 13 Nov 2018 15:11:42 -0500 Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 2593A748953AF; Tue, 13 Nov 2018 18:14:15 +0800 (CST) Received: from S00293818-DELL1.china.huawei.com (10.47.86.21) by DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id 14.3.408.0; Tue, 13 Nov 2018 18:14:07 +0800 From: Salil Mehta To: CC: , , , , , , , Subject: [PATCH net-next 0/5] net: hns3: Add support of hardware GRO to HNS3 Driver Date: Tue, 13 Nov 2018 10:13:02 +0000 Message-ID: <20181113101307.6020-1-salil.mehta@huawei.com> X-Mailer: git-send-email 2.8.3 MIME-Version: 1.0 X-Originating-IP: [10.47.86.21] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch-set adds support of hardware assisted GRO feature to HNS3 driver on Rev B(=0x21) platform. Current hardware only supports TCP/IPv{4|6} flows. Peng Li (5): net: hns3: Enable HW GRO for Rev B(=0x21) HNS3 hardware net: hns3: Add handling of GRO Pkts not fully RX'ed in NAPI poll net: hns3: Add support for ethtool -K to enable/disable HW GRO net: hns3: Add skb chain when num of RX buf exceeds MAX_SKB_FRAGS net: hns3: Adds GRO params to SKB for the stack drivers/net/ethernet/hisilicon/hns3/hnae3.h | 7 + .../net/ethernet/hisilicon/hns3/hns3_enet.c | 289 ++++++++++++++---- .../net/ethernet/hisilicon/hns3/hns3_enet.h | 17 +- .../hisilicon/hns3/hns3pf/hclge_cmd.h | 7 + .../hisilicon/hns3/hns3pf/hclge_main.c | 45 +++ .../hisilicon/hns3/hns3vf/hclgevf_cmd.h | 8 + .../hisilicon/hns3/hns3vf/hclgevf_main.c | 45 +++ 7 files changed, 351 insertions(+), 67 deletions(-) -- 2.17.1