summaryrefslogtreecommitdiff
path: root/service/src/node_shmdev.c
diff options
context:
space:
mode:
authorsongyanchao <[email protected]>2024-03-05 17:02:27 +0800
committersongyanchao <[email protected]>2024-03-05 17:02:27 +0800
commit27ffb806036d7fe9d3ff3c41d09e00c08b46a613 (patch)
treed84035e7e03655363ab467b960af6add3cf538ee /service/src/node_shmdev.c
parent487407c9c13d80f482ddbcf965bad1991e871c11 (diff)
🎈 perf: Standardize initialization style for all node structure instances.
Standardize initialization style for all node structure instances.
Diffstat (limited to 'service/src/node_shmdev.c')
-rw-r--r--service/src/node_shmdev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/service/src/node_shmdev.c b/service/src/node_shmdev.c
index c503a37..41ef97a 100644
--- a/service/src/node_shmdev.c
+++ b/service/src/node_shmdev.c
@@ -48,10 +48,10 @@ 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 = {0};
+ struct dp_record_meta meta = {};
rte_strscpy(meta.module, node->name, sizeof(meta.module));
- char str_record[MR_STRING_MAX] = {0};
+ char str_record[MR_STRING_MAX] = {};
int len = snprintf(str_record, sizeof(str_record), "prot:%u,%s", shm_dev_desc->port_id, shm_dev_desc->symbol);
if (direction == PACKET_DIRECTION_RX)