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 B7F0645DAF; Tue, 26 Nov 2024 18:18:47 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 549884278C; Tue, 26 Nov 2024 18:18:47 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.17]) by mails.dpdk.org (Postfix) with ESMTP id 6288C4278A for ; Tue, 26 Nov 2024 18:18:45 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1732641525; x=1764177525; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=9KwmTfbCgHpGKei9UD1JVXd4lKFIqVKdYa5ERyDV8Y4=; b=F8Paah6EH80/DzGKXmE6LcA//zEcBFOQaMMcqvOdtiLMsPCyfZr+blxo kr/HufuZXNlpYe7mKTKYrgeCqiAxQcVw9e1vcYtWFmeDEZyItRZJM4boC w193AD09X0sO9yDyHyi9vFo3mkJpiy3CSk1D7NuM3AYHv2/R0hxNNrxVF BNMgQqMVeIBpwexqZd6WVcpzumWrvEz4tm79HUD8VgYCAmUrMccmfzV2o VmzJU1Fi1T1NK8eZUxHgpMeS88FHnv+v3EZbu9xQT/wfDHEJ7z7jJrXDV c91/n28ryn+r5fQ0KJpLKMr0COCM9aptF9LmIYEAOPDVZTxuU2ztHvlUt w==; X-CSE-ConnectionGUID: PIURKGHDS5OHJIjdUESAMA== X-CSE-MsgGUID: jegXKAESRS69/0WyTqsuGQ== X-IronPort-AV: E=McAfee;i="6700,10204,11268"; a="32873985" X-IronPort-AV: E=Sophos;i="6.12,186,1728975600"; d="scan'208";a="32873985" Received: from fmviesa004.fm.intel.com ([10.60.135.144]) by orvoesa109.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Nov 2024 09:18:44 -0800 X-CSE-ConnectionGUID: i9d8yaZ1TZqXE62fMB9kUg== X-CSE-MsgGUID: +jOdRE52QEq6vsCC+VPudw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.12,186,1728975600"; d="scan'208";a="96430135" Received: from silpixa00401176.ir.intel.com ([10.243.23.21]) by fmviesa004.fm.intel.com with ESMTP; 26 Nov 2024 09:18:43 -0800 From: Vladimir Medvedkin To: dev@dpdk.org Cc: david.marchand@redhat.com, stephen@networkplumber.org, rjarry@redhat.com, mb@smartsharesystems.com, thomas@monjalon.net Subject: [PATCH] fib: rename configuration flag Date: Tue, 26 Nov 2024 17:18:40 +0000 Message-ID: <20241126171840.1499453-1-vladimir.medvedkin@intel.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Rename RTE_FIB_F_NETWORK_ORDER with RTE_FIB_F_LOOKUP_NETWORK_ORDER to explicitly indicate that it is only used in lookup. Fixes: e194f3cd5685 ("fib: lookup IPv4 address in network order") Signed-off-by: Vladimir Medvedkin --- lib/fib/rte_fib.c | 4 ++-- lib/fib/rte_fib.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/fib/rte_fib.c b/lib/fib/rte_fib.c index db79fc428e..49211fe3fa 100644 --- a/lib/fib/rte_fib.c +++ b/lib/fib/rte_fib.c @@ -111,7 +111,7 @@ init_dataplane(struct rte_fib *fib, __rte_unused int socket_id, if (fib->dp == NULL) return -rte_errno; fib->lookup = dir24_8_get_lookup_fn(fib->dp, - RTE_FIB_LOOKUP_DEFAULT, !!(fib->flags & RTE_FIB_F_NETWORK_ORDER)); + RTE_FIB_LOOKUP_DEFAULT, !!(fib->flags & RTE_FIB_F_LOOKUP_NETWORK_ORDER)); fib->modify = dir24_8_modify; return 0; default: @@ -333,7 +333,7 @@ rte_fib_select_lookup(struct rte_fib *fib, switch (fib->type) { case RTE_FIB_DIR24_8: fn = dir24_8_get_lookup_fn(fib->dp, type, - !!(fib->flags & RTE_FIB_F_NETWORK_ORDER)); + !!(fib->flags & RTE_FIB_F_LOOKUP_NETWORK_ORDER)); if (fn == NULL) return -EINVAL; fib->lookup = fn; diff --git a/lib/fib/rte_fib.h b/lib/fib/rte_fib.h index 362bb8f08c..1eee79c955 100644 --- a/lib/fib/rte_fib.h +++ b/lib/fib/rte_fib.h @@ -88,8 +88,8 @@ enum rte_fib_lookup_type { }; /** If set, fib lookup is expecting IPv4 address in network byte order */ -#define RTE_FIB_F_NETWORK_ORDER 1 -#define RTE_FIB_ALLOWED_FLAGS (RTE_FIB_F_NETWORK_ORDER) +#define RTE_FIB_F_LOOKUP_NETWORK_ORDER 1 +#define RTE_FIB_ALLOWED_FLAGS (RTE_FIB_F_LOOKUP_NETWORK_ORDER) /** FIB configuration structure */ struct rte_fib_conf { -- 2.43.0