summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsongyanchao <[email protected]>2023-10-10 03:37:19 +0000
committersongyanchao <[email protected]>2023-10-10 03:37:19 +0000
commit95de63f73e34c3668aa1f20f5e8b00c7490653f8 (patch)
treea5a8ee7b766e1ff4f15c2402b686912662db8767
parent57e467e0e384434ef05f249860b5d25ec9bfd03c (diff)
🎈 perf: Bridge configuration now supports a single devicev4.6.56-20231010
Bridge configuration now supports a single device
-rw-r--r--service/src/node_bridge.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/service/src/node_bridge.c b/service/src/node_bridge.c
index e7e4ff0..7178c83 100644
--- a/service/src/node_bridge.c
+++ b/service/src/node_bridge.c
@@ -93,9 +93,9 @@ int parser_bridge_conf(struct sc_main * sc, struct node_bridge_main * bridge_mai
/* Split devices */
char * str_tokens[MR_TOKENS_MAX] = {};
int nr_str_tokens = rte_strsplit(str_devices, sizeof(str_devices), str_tokens, MR_TOKENS_MAX, ',');
- if (nr_str_tokens <= 1)
+ if (nr_str_tokens <= 0)
{
- MR_ERROR("Bridge config : %s, only config one 'devices' .", str_section);
+ MR_ERROR("Bridge config : %s ,devices '%s' Is invalid .", str_section, str_devices);
return RT_ERR;
}