summaryrefslogtreecommitdiff
path: root/service/src/node_shmdev.c
diff options
context:
space:
mode:
author童宗振 <[email protected]>2024-03-14 10:22:36 +0000
committer童宗振 <[email protected]>2024-03-14 10:22:36 +0000
commit1322f5d401be0292be3135d243fd26b451f60f5a (patch)
treee8a2ceb168595fe63d85be0e850e9ca42c8989fa /service/src/node_shmdev.c
parent2779285dc6a98964e10f7a1c305627c8a56780c7 (diff)
Dp trace modifyv4.6.79-20240314
Diffstat (limited to 'service/src/node_shmdev.c')
-rw-r--r--service/src/node_shmdev.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/service/src/node_shmdev.c b/service/src/node_shmdev.c
index f3dba0d..cf462ff 100644
--- a/service/src/node_shmdev.c
+++ b/service/src/node_shmdev.c
@@ -50,8 +50,7 @@ enum packet_direction
static __rte_always_inline void gen_store_trace_info(struct rte_node * node, struct rte_mbuf * mbuf,
struct vdev * shm_dev_desc, enum packet_direction direction)
{
- struct dp_record_meta meta = {};
- rte_strscpy(meta.module, node->name, sizeof(meta.module));
+ struct dp_trace_record_meta meta = {.module = node->name};
char str_record[MR_STRING_MAX];
int len = snprintf(str_record, sizeof(str_record), "port:%u,%s", shm_dev_desc->port_id, shm_dev_desc->symbol);