Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7798264imu; Thu, 15 Nov 2018 01:31:32 -0800 (PST) X-Google-Smtp-Source: AJdET5eHH8IZMvhWynbzcLu4i95OOU9+P1VU1eJ8h1oqR0+2Q3MFaahDIu9trkomyZYmlb40b11q X-Received: by 2002:a17:902:b48b:: with SMTP id y11-v6mr5508611plr.135.1542274292242; Thu, 15 Nov 2018 01:31:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542274292; cv=none; d=google.com; s=arc-20160816; b=XVbahr85vq6fxfnqe0Q6tDU5NRwT00m5pSVF4VIbh5fT1gRJK5aicsEYnKzrwqmOrK JZJ2WVhNLIL1U/h54iBvXDhWV84sSBLT59C/yMNu/G/vK6Cq2NNzIEixYp02WqP95kPg ahiEm0DAox/xe6xiQ8+6nJpAjsGsYWXujKHAPT0BCTm9Pdq8rOVagmq6f9eTRWaCzpFl UKWGPsnUcqyKiWmWMX3H8fOP3qE7NM37yC+PBCBV6BJmwrDUi43b2zr3D7atjLOzkZ+R HH3EtejLlQWjb10wJG0VDmsWSJ2T2hXpkk8F1x8esAzUxYSIFSN7E978qsqzZ0HGuGGp Ur8A== 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=W86A7UaGCXTNluuhIW0wT4cWuPBj0yMv0/f33TmLWpk=; b=ZycWc6pCeFgvk+MFlvsC45WNcQYWt4rhEZE80DvoFVKgPGOPyEE7uwC9BqGeyCkOaY DW21JtrT30PHUJfXGE9MvprElwSXg8J7QqMAlEIBD7wfVsaFVNq01uqC6v+lgn3rroCf hNLSOb+iZFsgc/kq/bt4ocDZdpo9XV69ZP6AwU/rCi+EzMrKAm6Rn0P3fpTqdYhE9Mib 5OCHGn2MbeFu7UU19ENQvGMfB77apYE6z2nPdMAY84xKBbhu1HYkgtmentqJQHKmYjHH 1wyIm/dC+T1XqhhTLms4eVG7Qf3scZLqj5nxhuzVxzZfUSP7In3GNpbv/OmO6MVNWc3l jOYg== 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 e71-v6si11739674pfc.130.2018.11.15.01.31.16; Thu, 15 Nov 2018 01:31:32 -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 S2387776AbeKOThb (ORCPT + 99 others); Thu, 15 Nov 2018 14:37:31 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:52394 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727265AbeKOThb (ORCPT ); Thu, 15 Nov 2018 14:37:31 -0500 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 1A3571540D233; Thu, 15 Nov 2018 17:30:27 +0800 (CST) Received: from S00293818-DELL1.china.huawei.com (10.47.88.106) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.408.0; Thu, 15 Nov 2018 17:30:18 +0800 From: Salil Mehta To: CC: , , , , , , , Subject: [PATCH V2 net-next 0/5] net: hns3: Add support of hardware GRO to HNS3 Driver Date: Thu, 15 Nov 2018 09:29:20 +0000 Message-ID: <20181115092925.11812-1-salil.mehta@huawei.com> X-Mailer: git-send-email 2.8.3 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.47.88.106] 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. Change Log: V1->V2: 1. Remove redundant print reported by Leon Romanovsky. Link: https://lkml.org/lkml/2018/11/13/715 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 | 39 +++ .../hisilicon/hns3/hns3vf/hclgevf_cmd.h | 8 + .../hisilicon/hns3/hns3vf/hclgevf_main.c | 39 +++ 7 files changed, 339 insertions(+), 67 deletions(-) -- 2.17.1