traffic_mirror增加配置项app_symbol
This commit is contained in:
@@ -134,8 +134,8 @@ char * traffic_mirror_ethdev_send_prepare(struct traffic_mirror_ethdev * ethdev,
|
||||
|
||||
/* =============================== VIRTUAL INTERFACE END =========================================== */
|
||||
|
||||
struct traffic_mirror_ethdev * traffic_mirror_ethdev_mr4_create(const char * str_ethdev,
|
||||
unsigned int nr_threads, void * logger)
|
||||
struct traffic_mirror_ethdev * traffic_mirror_ethdev_mr4_create(const char * str_ethdev,
|
||||
const char * str_app_name, unsigned int nr_threads, void * logger)
|
||||
{
|
||||
struct traffic_mirror_ethdev * ethdev = ALLOC(struct traffic_mirror_ethdev, 1);
|
||||
ethdev->type = TRAFFIC_MIRROR_ETHDEV_MARSIO;
|
||||
@@ -152,7 +152,7 @@ struct traffic_mirror_ethdev * traffic_mirror_ethdev_mr4_create(const char * str
|
||||
detail_mr4->instance = marsio_create();
|
||||
assert(detail_mr4->instance != NULL);
|
||||
|
||||
if (marsio_init(detail_mr4->instance, "tfe-traffic-mirror") < 0)
|
||||
if (marsio_init(detail_mr4->instance, str_app_name) < 0)
|
||||
{
|
||||
TFE_LOG_ERROR(logger, "failed at init MARSIOv4 instance.");
|
||||
goto errout;
|
||||
|
||||
Reference in New Issue
Block a user