From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xueming Li Subject: [RFC 1/4] ethdev: support rss level on tunnel Date: Thu, 30 Nov 2017 01:31:03 +0800 Message-ID: <20171129173106.120828-2-xuemingl@mellanox.com> References: <20171129173106.120828-1-xuemingl@mellanox.com> Cc: Xueming Li , dev@dpdk.org To: Nelio Laranjeiro , Adrien Mazarguil , Thomas Monjalon Return-path: 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) In-Reply-To: <20171129173106.120828-1-xuemingl@mellanox.com> 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. */ }; -- 1.8.3.1