From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 57F2CA0487 for ; Thu, 4 Jul 2019 07:29:35 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 3136E4CA6; Thu, 4 Jul 2019 07:29:35 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id F02474C93 for ; Thu, 4 Jul 2019 07:29:33 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Jul 2019 22:29:32 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,449,1557212400"; d="scan'208";a="184925123" Received: from npg-dpdk-cvl-simeisu-116d180.sh.intel.com ([10.67.116.162]) by fmsmga001.fm.intel.com with ESMTP; 03 Jul 2019 22:29:31 -0700 From: simei To: qi.z.zhang@intel.com, jingjing.wu@intel.com, beilei.xing@intel.com, qiming.yang@intel.com Cc: dev@dpdk.org, simei.su@intel.com Date: Thu, 4 Jul 2019 12:47:09 +0800 Message-Id: <1562215629-75520-1-git-send-email-simei.su@intel.com> X-Mailer: git-send-email 1.8.3.1 Subject: [dpdk-dev] [RFC] ethdev: support input set change by RSS action 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" From: Simei Su This RFC introduces inputset structure to rte_flow_action_rss to support input set specific configuration by rte_flow RSS action. We can give an testpmd command line example to make it more clear. For example, below flow selects the l4 port as inputset for any eth/ipv4/tcp packet: #flow create 0 ingress pattern eth / ipv4 / tcp / end actions rss inputset tcp src mask 0xffff dst mask 0xffff /end Signed-off-by: Simei Su --- lib/librte_ethdev/rte_flow.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/librte_ethdev/rte_flow.h b/lib/librte_ethdev/rte_flow.h index f3a8fb1..2a455b6 100644 --- a/lib/librte_ethdev/rte_flow.h +++ b/lib/librte_ethdev/rte_flow.h @@ -1796,6 +1796,9 @@ struct rte_flow_action_rss { uint32_t queue_num; /**< Number of entries in @p queue. */ const uint8_t *key; /**< Hash key. */ const uint16_t *queue; /**< Queue indices to use. */ + struct rte_flow_item *inputset; /** Provide more specific inputset configuration. + * ignore spec, only mask. + */ }; /** -- 1.8.3.1