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: 10680183 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id F0FA913BB for ; Tue, 13 Nov 2018 10:14:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E15EC2996A for ; Tue, 13 Nov 2018 10:14:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D52CC29AAD; Tue, 13 Nov 2018 10:14:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7264E2996A for ; Tue, 13 Nov 2018 10:14:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731914AbeKMULm (ORCPT ); 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-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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(-)