TSG-15601 7400&9140 app_symbol提供默认配置项

This commit is contained in:
wangmenglan
2023-06-16 17:59:35 +08:00
parent b76e5452a6
commit 88cb803124

View File

@@ -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)
{