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 56AF045B37; Mon, 14 Oct 2024 14:04:02 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2D84540E18; Mon, 14 Oct 2024 14:02:00 +0200 (CEST) Received: from inva021.nxp.com (inva021.nxp.com [92.121.34.21]) by mails.dpdk.org (Postfix) with ESMTP id 63E3B406FF for ; Mon, 14 Oct 2024 14:01:38 +0200 (CEST) Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 3CA72201D7F; Mon, 14 Oct 2024 14:01:38 +0200 (CEST) Received: from aprdc01srsp001v.ap-rdc01.nxp.com (aprdc01srsp001v.ap-rdc01.nxp.com [165.114.16.16]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id F19E5202294; Mon, 14 Oct 2024 14:01:37 +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 6193F183DC02; Mon, 14 Oct 2024 20:01:37 +0800 (+08) From: vanshika.shukla@nxp.com To: dev@dpdk.org, Hemant Agrawal , Sachin Saxena Cc: Rohit Raj Subject: [v3 23/43] net/dpaa2: change miss flow ID macro name Date: Mon, 14 Oct 2024 17:31:06 +0530 Message-Id: <20241014120126.170790-24-vanshika.shukla@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20241014120126.170790-1-vanshika.shukla@nxp.com> References: <20240918075056.1838654-2-vanshika.shukla@nxp.com> <20241014120126.170790-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 48e6eedfbc..aab7a71748 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