[RFC 1/3] net/ntnic: rename nt_log_ types

Stephen Hemminger stephen at networkplumber.org
Fri Sep 26 18:24:46 CEST 2025


Use the driver name as prefix as is commmonly done by other
drivers.

Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
---
 drivers/net/ntnic/ntlog/ntlog.h  | 16 ++++++++--------
 drivers/net/ntnic/ntnic_ethdev.c |  8 ++++----
 2 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/drivers/net/ntnic/ntlog/ntlog.h b/drivers/net/ntnic/ntlog/ntlog.h
index 810b07efd0..c1efa9694f 100644
--- a/drivers/net/ntnic/ntlog/ntlog.h
+++ b/drivers/net/ntnic/ntlog/ntlog.h
@@ -10,14 +10,14 @@
 #include <stdint.h>
 #include <rte_log.h>
 
-extern int nt_log_general;
-#define RTE_LOGTYPE_GENERAL nt_log_general
-extern int nt_log_nthw;
-#define RTE_LOGTYPE_NTHW nt_log_nthw
-extern int nt_log_filter;
-#define RTE_LOGTYPE_FILTER nt_log_filter
-extern int nt_log_ntnic;
-#define RTE_LOGTYPE_NTNIC nt_log_ntnic
+extern int ntnic_logtype_general;
+#define RTE_LOGTYPE_GENERAL ntnic_logtype_general
+extern int ntnic_logtype_nthw;
+#define RTE_LOGTYPE_NTHW ntnic_logtype_nthw
+extern int ntnic_logtype_filter;
+#define RTE_LOGTYPE_FILTER ntnic_logtype_filter
+extern int ntnic_logtype_ntnic;
+#define RTE_LOGTYPE_NTNIC ntnic_logtype_ntnic
 
 #define NT_DRIVER_NAME "ntnic"
 
diff --git a/drivers/net/ntnic/ntnic_ethdev.c b/drivers/net/ntnic/ntnic_ethdev.c
index 42aa2d4095..67908e3807 100644
--- a/drivers/net/ntnic/ntnic_ethdev.c
+++ b/drivers/net/ntnic/ntnic_ethdev.c
@@ -2729,7 +2729,7 @@ RTE_PMD_REGISTER_PCI(net_ntnic, rte_nthw_pmd);
 RTE_PMD_REGISTER_PCI_TABLE(net_ntnic, nthw_pci_id_map);
 RTE_PMD_REGISTER_KMOD_DEP(net_ntnic, "* vfio-pci");
 
-RTE_LOG_REGISTER_SUFFIX(nt_log_general, general, INFO);
-RTE_LOG_REGISTER_SUFFIX(nt_log_nthw, nthw, INFO);
-RTE_LOG_REGISTER_SUFFIX(nt_log_filter, filter, INFO);
-RTE_LOG_REGISTER_SUFFIX(nt_log_ntnic, ntnic, INFO);
+RTE_LOG_REGISTER_SUFFIX(ntnic_logtype_general, general, INFO);
+RTE_LOG_REGISTER_SUFFIX(ntnic_logtype_nthw, nthw, INFO);
+RTE_LOG_REGISTER_SUFFIX(ntnic_logtype_filter, filter, INFO);
+RTE_LOG_REGISTER_SUFFIX(ntnic_logtype_ntnic, ntnic, INFO);
-- 
2.47.3



More information about the dev mailing list