From patchwork Wed Nov 29 17:31:03 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xueming Li X-Patchwork-Id: 31757 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 A957F3195; Wed, 29 Nov 2017 18:36:47 +0100 (CET) Received: from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129]) by dpdk.org (Postfix) with ESMTP id 668AB2C55 for ; Wed, 29 Nov 2017 18:36:46 +0100 (CET) Received: from Internal Mail-Server by MTLPINE1 (envelope-from xuemingl@mellanox.com) with ESMTPS (AES256-SHA encrypted); 29 Nov 2017 19: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 vATHahBS009562; Wed, 29 Nov 2017 19: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 vATHVWoE121031; Thu, 30 Nov 2017 01:31:32 +0800 Received: (from xuemingl@localhost) by dev-r630-06.mtbc.labs.mlnx (8.14.7/8.14.7/Submit) id vATHVWQR121030; Thu, 30 Nov 2017 01:31:32 +0800 From: Xueming Li To: Nelio Laranjeiro , Adrien Mazarguil , Thomas Monjalon Cc: Xueming Li , dev@dpdk.org Date: Thu, 30 Nov 2017 01:31:03 +0800 Message-Id: <20171129173106.120828-2-xuemingl@mellanox.com> X-Mailer: git-send-email 2.13.3 In-Reply-To: <20171129173106.120828-1-xuemingl@mellanox.com> References: <20171129173106.120828-1-xuemingl@mellanox.com> Subject: [dpdk-dev] [RFC 1/4] 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 | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/librte_ether/rte_flow.h b/lib/librte_ether/rte_flow.h index 47c88ea..c35558c 100644 --- a/lib/librte_ether/rte_flow.h +++ b/lib/librte_ether/rte_flow.h @@ -1078,6 +1078,7 @@ struct rte_flow_action_dup { */ struct rte_flow_action_rss { const struct rte_eth_rss_conf *rss_conf; /**< RSS parameters. */ + uint8_t level; /**< RSS on tunnel level, 0:outer most, -1:inner most */ uint16_t num; /**< Number of entries in queue[]. */ uint16_t queue[]; /**< Queues indices to use. */ };