From patchwork Sun Dec 3 06:08:08 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xueming Li X-Patchwork-Id: 31891 X-Patchwork-Delegate: ferruh.yigit@amd.com Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B9D937CEF; Sun, 3 Dec 2017 07:36:50 +0100 (CET) Received: from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129]) by dpdk.org (Postfix) with ESMTP id ECD0F56A1 for ; Sun, 3 Dec 2017 07:36:48 +0100 (CET) Received: from Internal Mail-Server by MTLPINE1 (envelope-from xuemingl@mellanox.com) with ESMTPS (AES256-SHA encrypted); 3 Dec 2017 08:36:45 +0200 Received: from dev-r630-06.mtbc.labs.mlnx (dev-r630-06.mtbc.labs.mlnx [10.12.205.180]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id vB36ahDl020465; Sun, 3 Dec 2017 08:36:44 +0200 Received: from dev-r630-06.mtbc.labs.mlnx (localhost [127.0.0.1]) by dev-r630-06.mtbc.labs.mlnx (8.14.7/8.14.7) with ESMTP id vB368bwK075135; Sun, 3 Dec 2017 14:08:37 +0800 Received: (from xuemingl@localhost) by dev-r630-06.mtbc.labs.mlnx (8.14.7/8.14.7/Submit) id vB368bjV075134; Sun, 3 Dec 2017 14:08:37 +0800 From: Xueming Li To: Nelio Laranjeiro , Adrien Mazarguil , Thomas Monjalon Cc: Xueming Li , dev@dpdk.org Date: Sun, 3 Dec 2017 14:08:08 +0800 Message-Id: <20171203060812.74932-2-xuemingl@mellanox.com> X-Mailer: git-send-email 2.13.3 In-Reply-To: <20171203060812.74932-1-xuemingl@mellanox.com> References: <20171203060812.74932-1-xuemingl@mellanox.com> In-Reply-To: <20171129173106.120828-2-xuemingl@mellanox.com> References: <20171129173106.120828-2-xuemingl@mellanox.com> Subject: [dpdk-dev] [RFC v1 1/5] ethdev: support rss level on tunnel X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" There was no RSS hash fields level definition on tunnel, implementations default RSS on tunnel to outer or inner. Adding rss level enable users to specifiy the tunnel level of RSS hash fields. 0: outer most, 1: inner, -1: inner most(PMD auto detection if nested tunnel specified in fields) Signed-off-by: Xueming Li --- lib/librte_ether/rte_flow.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/librte_ether/rte_flow.h b/lib/librte_ether/rte_flow.h index 47c88ea52..41ab91912 100644 --- a/lib/librte_ether/rte_flow.h +++ b/lib/librte_ether/rte_flow.h @@ -1078,6 +1078,14 @@ struct rte_flow_action_dup { */ struct rte_flow_action_rss { const struct rte_eth_rss_conf *rss_conf; /**< RSS parameters. */ + /** + * RSS on tunnel level: + * 0: outer RSS + * 1: inner RSS + * 2-254: deep inner tunnel level RSS + * -1: inner most level according to flow pattern + */ + uint8_t level; uint16_t num; /**< Number of entries in queue[]. */ uint16_t queue[]; /**< Queues indices to use. */ };