summaryrefslogtreecommitdiff
path: root/service/src
diff options
context:
space:
mode:
author童宗振 <[email protected]>2024-06-20 06:47:05 +0000
committer童宗振 <[email protected]>2024-06-20 06:47:05 +0000
commita0b9e2713d014ae5293f5fb207dddbd3a6da47d9 (patch)
tree430df3d07f90ce10ba1189caa0e8498e78fd9ded /service/src
parentb4c19cdd847fce4cbb32c6981fbaf9d3a3d30b94 (diff)
Data path perf
Diffstat (limited to 'service/src')
-rw-r--r--service/src/node_eth_ingress.c2
-rw-r--r--service/src/node_shmdev.c17
2 files changed, 1 insertions, 18 deletions
diff --git a/service/src/node_eth_ingress.c b/service/src/node_eth_ingress.c
index 77c8c06..44f6133 100644
--- a/service/src/node_eth_ingress.c
+++ b/service/src/node_eth_ingress.c
@@ -533,7 +533,7 @@ static __rte_always_inline uint16_t eth_ingress_node_process(struct rte_graph *
}
node_enqueue:
-#if 1
+#if 0
/* Check if tracing is enabled for the current Mbuf */
if (unlikely(dp_trace_record_can_emit(mbuf, DP_TRACE_MEASUREMENT_TYPE_TRACE)))
{
diff --git a/service/src/node_shmdev.c b/service/src/node_shmdev.c
index d840866..f838a78 100644
--- a/service/src/node_shmdev.c
+++ b/service/src/node_shmdev.c
@@ -42,23 +42,6 @@ enum packet_direction
PACKET_DIRECTION_RX
};
-/* Generate and store the trace information */
-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)
-{
- 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);
-
- if (direction == PACKET_DIRECTION_RX)
- {
- len += snprintf(str_record + len, sizeof(str_record) - len, ",next:%s", node->nodes[0]->name);
- }
-
- /* Emit the trace record */
- struct dp_trace_record_meta meta = {.appsym = MR_TRACE_APPSYM, .module = node->name};
- dp_trace_record_emit_str(sc_main_get()->trace, mbuf, rte_lcore_id(), &meta, str_record);
-}
-
uint16_t shmdev_rx_node_process(struct rte_graph * graph, struct rte_node * node, void ** objs, uint16_t cnt)
{
struct dev_node_ctx * ctx = (struct dev_node_ctx *)node->ctx;