Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3799498imm; Mon, 1 Oct 2018 04:50:42 -0700 (PDT) X-Google-Smtp-Source: ACcGV63br+uFEOUjSlcCRckok3tzbpYMmiZDuAAQyI42/GJdecTMRVJeTPv5wc6hFDMqoDNuwPUi X-Received: by 2002:a62:6e45:: with SMTP id j66-v6mr10875440pfc.259.1538394642171; Mon, 01 Oct 2018 04:50:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538394642; cv=none; d=google.com; s=arc-20160816; b=VU1MKE9nNVwUaRNZjAxD7q9wnLHqd2H9+C4O8q4NOTIgbv0GcQEvN475nI2dS8ZbVP embLKvFX8r1Va8ShoKEjeR3oY9VLUFkNKF39so2Cm1GI2cxK38X1PqES+2kgB31e2eMX LRWcq1ebMNwqrYp0jHJ285Em8xe8/Q93P5vD89qiTsIZCuiefzyhktSE+ggX5u2wz4Lr 1EDk0dRj3083w3q2GKCxtrI/U/jZxpS3WmI0Dru8hYeAZcspMeOBeBt+lx8fNBl5jnKH HtQUngNCITLYkPHWraOAZ+5TG/zved1ArfGfco050sQwhm/KlzqKuY6Vp8TtawsJGyhf GiXg== 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=iEtiV8fnS4jeedj59zO+yJi7rGjYLQrNr2hQU5q6gkI=; b=o6bBJKi7S+4ATEVpLLdwds6Eyu3Yw8HjzIqojaoX/8NghOHU18JQMS7HcaXMXUVPk3 hjIvJFXXb3D2Ma+3J4n2HByVR4HV0HEnAuvSZbGgs/XAfFh0LPcQLZbtiD6rWkQKpZF+ GSX8rkvxwiqQUmOdpPgzApRe013SDguPgJlRYjXQsrAogDOUhCifoOTQaCCDs30NpT7f +WnVv7AFsKogM5UVB5JuS69KQTXusgJlqxNp8Y8owjxhhUurkOvU/M/9SwiAukMmPVLg MBxAWWGf0KwtRu3RXp/n8pGz/WNkxriSiHVhpqvU8rBRFQSb/P3bWjl1t4G4kT0bOCMj YKDA== 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 d36-v6si12910067pla.446.2018.10.01.04.50.27; Mon, 01 Oct 2018 04:50:42 -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 S1729286AbeJASZp (ORCPT + 99 others); Mon, 1 Oct 2018 14:25:45 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:13180 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729220AbeJASZp (ORCPT ); Mon, 1 Oct 2018 14:25:45 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 825ABAF74FC58; Mon, 1 Oct 2018 19:48:16 +0800 (CST) Received: from S00293818-DELL1.china.huawei.com (10.202.226.54) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.399.0; Mon, 1 Oct 2018 19:48:09 +0800 From: Salil Mehta To: CC: , , , , , , Subject: [PATCH net-next 0/7] Support of Flow Director in HNS3 Ethernet Driver for HiP08 Rev2 SoC Date: Mon, 1 Oct 2018 12:46:40 +0100 Message-ID: <20181001114647.15504-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.202.226.54] 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 the support of FD(Flow Director) in the HNS3 PF driver for HiP08 Rev2(0x21) SoC of Hisilicon. FD can be used in filtering the flows and deciding to drop the flow or forward it to paricular queue. Configuration consists of rules with input keys and actions. The rules are stored in TCAM. Jian Shen (7): net: hns3: Add flow director initialization net: hns3: Add input key and action config support for flow director net: hns3: Add support for rule add/delete for flow director net: hns3: Add support for rule query of flow director net: hns3: Add reset handle for flow director net: hns3: Remove all flow director rules when unload hns3 driver net: hns3: Add support for enable/disable flow director drivers/net/ethernet/hisilicon/hns3/hnae3.h | 19 + drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 55 +- drivers/net/ethernet/hisilicon/hns3/hns3_enet.h | 5 + drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c | 39 +- .../net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h | 77 ++ .../ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 1303 ++++++++++++++++++++ .../ethernet/hisilicon/hns3/hns3pf/hclge_main.h | 232 ++++ 7 files changed, 1721 insertions(+), 9 deletions(-) -- 2.7.4