summaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorwangmenglan <[email protected]>2023-06-16 17:59:35 +0800
committerwangmenglan <[email protected]>2023-06-16 17:59:35 +0800
commit88cb803124ac6e73e3221b03db5acbec62266fdb (patch)
treedca3f2473b9f9af7f277132f84415bedef0ba7d7 /plugin
parentb76e5452a6e75d01bca80e9c1e824307fb053836 (diff)
TSG-15601 7400&9140 app_symbol提供默认配置项
Diffstat (limited to 'plugin')
-rw-r--r--plugin/business/traffic-mirror/src/entry.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/plugin/business/traffic-mirror/src/entry.cpp b/plugin/business/traffic-mirror/src/entry.cpp
index e435534..3f34c7d 100644
--- a/plugin/business/traffic-mirror/src/entry.cpp
+++ b/plugin/business/traffic-mirror/src/entry.cpp
@@ -408,13 +408,7 @@ static int traffic_mirror_ethdev_init(struct traffic_mirror_instance * instance)
unsigned int device_type;
MESA_load_profile_uint_def(profile, "traffic_mirror", "type", &device_type, TRAFFIC_MIRROR_ETHDEV_AF_PACKET);
- ret = MESA_load_profile_string_nodef(profile, "traffic_mirror", "app_symbol", app_symbol, sizeof(app_symbol));
- if (ret < 0)
- {
- TFE_LOG_ERROR(instance->logger, "failed at reading conffile, "
- "[traffic_mirror]app_symbol is not defined.");
- return -1;
- }
+ MESA_load_profile_string_def(profile, "traffic_mirror", "app_symbol", app_symbol, sizeof(app_symbol), "tfe-traffic-mirror");
if (device_type == TRAFFIC_MIRROR_ETHDEV_AF_PACKET)
{