From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id C9185459C6; Wed, 18 Sep 2024 09:54:31 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2504442F99; Wed, 18 Sep 2024 09:51:38 +0200 (CEST) Received: from inva020.nxp.com (inva020.nxp.com [92.121.34.13]) by mails.dpdk.org (Postfix) with ESMTP id 71B1D42E80 for ; Wed, 18 Sep 2024 09:51:08 +0200 (CEST) Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 56BEC1A13B5; Wed, 18 Sep 2024 09:51:08 +0200 (CEST) Received: from aprdc01srsp001v.ap-rdc01.nxp.com (aprdc01srsp001v.ap-rdc01.nxp.com [165.114.16.16]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 1DF331A0343; Wed, 18 Sep 2024 09:51:08 +0200 (CEST) Received: from lsv03379.swis.in-blr01.nxp.com (lsv03379.swis.in-blr01.nxp.com [92.120.147.188]) by aprdc01srsp001v.ap-rdc01.nxp.com (Postfix) with ESMTP id 886F1183C480; Wed, 18 Sep 2024 15:51:07 +0800 (+08) From: vanshika.shukla@nxp.com To: dev@dpdk.org, Hemant Agrawal , Sachin Saxena Cc: Rohit Raj Subject: [v2 23/43] net/dpaa2: change miss flow ID macro name Date: Wed, 18 Sep 2024 13:20:36 +0530 Message-Id: <20240918075056.1838654-24-vanshika.shukla@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240918075056.1838654-1-vanshika.shukla@nxp.com> References: <20240913055959.3246917-1-vanshika.shukla@nxp.com> <20240918075056.1838654-1-vanshika.shukla@nxp.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Virus-Scanned: ClamAV using ClamSMTP X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org From: Rohit Raj Remove miss flow id macro name to DPNI_FS_MISS_DROP since its conflicting with enum. Also, set default miss flow id to 0. Signed-off-by: Rohit Raj --- drivers/net/dpaa2/dpaa2_flow.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/net/dpaa2/dpaa2_flow.c b/drivers/net/dpaa2/dpaa2_flow.c index 15f3343db4..c30c5225c7 100644 --- a/drivers/net/dpaa2/dpaa2_flow.c +++ b/drivers/net/dpaa2/dpaa2_flow.c @@ -30,8 +30,7 @@ int mc_l4_port_identification; static char *dpaa2_flow_control_log; -static uint16_t dpaa2_flow_miss_flow_id = - DPNI_FS_MISS_DROP; +static uint16_t dpaa2_flow_miss_flow_id; /* Default miss flow id is 0. */ #define FIXED_ENTRY_SIZE DPNI_MAX_KEY_SIZE @@ -3994,7 +3993,7 @@ struct rte_flow *dpaa2_flow_create(struct rte_eth_dev *dev, struct dpaa2_dev_priv *priv = dev->data->dev_private; dpaa2_flow_miss_flow_id = - atoi(getenv("DPAA2_FLOW_CONTROL_MISS_FLOW")); + (uint16_t)atoi(getenv("DPAA2_FLOW_CONTROL_MISS_FLOW")); if (dpaa2_flow_miss_flow_id >= priv->dist_queues) { DPAA2_PMD_ERR( "The missed flow ID %d exceeds the max flow ID %d", -- 2.25.1