From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 4611229CA for ; Thu, 7 Dec 2017 22:02:40 +0100 (CET) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 Dec 2017 13:02:39 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.45,374,1508828400"; d="scan'208";a="10005432" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.241.225.165]) ([10.241.225.165]) by FMSMGA003.fm.intel.com with ESMTP; 07 Dec 2017 13:02:39 -0800 To: Jasvinder Singh , dev@dpdk.org Cc: cristian.dumitrescu@intel.com, Thomas Monjalon References: <20171130200843.98621-1-jasvinder.singh@intel.com> <20171130200843.98621-2-jasvinder.singh@intel.com> From: Ferruh Yigit Message-ID: Date: Thu, 7 Dec 2017 13:02:38 -0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <20171130200843.98621-2-jasvinder.singh@intel.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Subject: Re: [dpdk-dev] [PATCH 1/2] net/softnic: enable flow classification function 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: , X-List-Received-Date: Thu, 07 Dec 2017 21:02:40 -0000 On 11/30/2017 12:08 PM, Jasvinder Singh wrote: > Enables flow classification on softnic rx path so that proceding > functions of the packet processing pipeline such as metering and > policing could be implemented. > > Example: Create "soft" port for "hard" port "0000:02:00.1", > enable the Flow Classification (FC) feature with default > settings: > --vdev 'net_softnic0,hard_name=0000:02:00.1,soft_fc=on' > > Signed-off-by: Jasvinder Singh <...> > +#define PMD_PARAM_SOFT_FC "soft_fc" > +#define PMD_PARAM_SOFT_FC_NB_RULES "soft_fc_nb_rules" > +#define PMD_PARAM_SOFT_FC_FLOW_KEY_SIZE "soft_fc_flow_key_size" > +#define PMD_PARAM_SOFT_FC_FLOW_KEY_OFFSET "soft_fc_flow_key_offset" > +#define PMD_PARAM_SOFT_FC_FLOW_KEY_MASK "soft_fc_flow_key_mask" > + > #define PMD_PARAM_HARD_NAME "hard_name" > #define PMD_PARAM_HARD_TX_QUEUE_ID "hard_tx_queue_id" I wouldn't mention if you won't be already sending a new version but can you please align them :) <...> > @@ -60,7 +60,9 @@ _LDLIBS-y += -L$(RTE_SDK_BIN)/lib > # > _LDLIBS-$(CONFIG_RTE_LIBRTE_FLOW_CLASSIFY) += -lrte_flow_classify > _LDLIBS-$(CONFIG_RTE_LIBRTE_PIPELINE) += -lrte_pipeline > +_LDLIBS-$(CONFIG_RTE_LIBRTE_TABLE) += --whole-archive > _LDLIBS-$(CONFIG_RTE_LIBRTE_TABLE) += -lrte_table > +_LDLIBS-$(CONFIG_RTE_LIBRTE_TABLE) += --no-whole-archive I think it is better to move rte_table between whole-archive flags, but I vaguely remember Thomas preferred this in the past, so adding him for comment.