TSG-15601 7400&9140 app_symbol提供默认配置项
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user