summaryrefslogtreecommitdiff
path: root/infra
diff options
context:
space:
mode:
authorsongyanchao <[email protected]>2024-02-01 03:28:37 +0000
committersongyanchao <[email protected]>2024-02-01 03:29:48 +0000
commit40ead5dea12df7d3156e486d62baf0c92aab50c0 (patch)
tree178d8f0da8b639677b4c6d9fd0fe42729650587c /infra
parent3721c7e60af0bf3087ef92479a757c468aa54c33 (diff)
: Refined log output formatting in node module.v4.6.73-20240201
Refined log output formatting in node module.
Diffstat (limited to 'infra')
-rw-r--r--infra/src/pkt_classifier_engine.c8
-rw-r--r--infra/src/port_adapter_mapping.c1
2 files changed, 6 insertions, 3 deletions
diff --git a/infra/src/pkt_classifier_engine.c b/infra/src/pkt_classifier_engine.c
index 4d36097..169974c 100644
--- a/infra/src/pkt_classifier_engine.c
+++ b/infra/src/pkt_classifier_engine.c
@@ -1509,11 +1509,10 @@ int pkt_classifier_engine_multi_match(struct pkt_classifier_engine * engine, uin
/* Dump all rules information. */
void pkt_classifier_engine_info_dump(struct pkt_classifier_engine * engine)
{
- /* Dump the fast match info */
- pkt_classifier_engine_fast_match_info_dump(engine);
-
+ MR_INFO(" ");
/* Dump the ruleset type */
enum ruleset_type ruleset_type = pkt_classifier_engine_get_ruleset_type(engine);
+
if (ruleset_type == RULESET_TYPE_CLASSIFIER)
{
MR_INFO("Pkt classifier ruleset type: Classifier");
@@ -1533,4 +1532,7 @@ void pkt_classifier_engine_info_dump(struct pkt_classifier_engine * engine)
{
MR_INFO("Pkt classifier engine type: Linear search");
}
+
+ /* Dump the fast match info */
+ pkt_classifier_engine_fast_match_info_dump(engine);
}
diff --git a/infra/src/port_adapter_mapping.c b/infra/src/port_adapter_mapping.c
index 73f8af2..adc7171 100644
--- a/infra/src/port_adapter_mapping.c
+++ b/infra/src/port_adapter_mapping.c
@@ -137,6 +137,7 @@ void port_adapter_mapping_dump(void)
return;
}
+ MR_INFO(" ");
MR_INFO("Port adapter mapping, nr_maps:%d", g_mapping_mgr->nr_maps);
for (int i = 0; i < RTE_DIM(g_mapping_mgr->port_adapter_maps); i++)