summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authortongzongzhen <[email protected]>2024-10-18 14:33:40 +0800
committertongzongzhen <[email protected]>2024-10-18 14:33:40 +0800
commit2d714a5cec1232f9bd855fc2461141248785858c (patch)
tree557cdeb429e36406cc2427e7e10b041fff43e03f /include
parent78d4bc884c5c395f785b949633a2b1dcea79ff79 (diff)
increase bpf expr len to 256 charv4.8.21-20241018
Diffstat (limited to 'include')
-rw-r--r--include/external/marsio.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/external/marsio.h b/include/external/marsio.h
index 12e4bd1..b789ec2 100644
--- a/include/external/marsio.h
+++ b/include/external/marsio.h
@@ -309,7 +309,7 @@ int marsio_dp_trace_measurement_emit_fmt(struct mr_instance * instance, marsio_b
/////////////////////// only for data path trace telemetry ////////////
#ifndef MR_BPF_EXPRESSION_MAX
-#define MR_BPF_EXPRESSION_MAX 128
+#define MR_BPF_EXPRESSION_MAX 256
#endif
#define DP_TRACE_TRAFFIC_LINK_ID_ARRAY_SIZE_MAX 8
@@ -352,12 +352,12 @@ struct dp_trace_job_desc
bool enable;
uint8_t measurement_type;
int8_t rule_index;
- char bpf_expr[MR_BPF_EXPRESSION_MAX];
unsigned int pkt_cnt_max; // The final number of captured packets
unsigned int sampling;
unsigned int snaplen;
uint8_t traffic_link_id_cnt;
uint16_t traffic_link_ids[DP_TRACE_TRAFFIC_LINK_ID_ARRAY_SIZE_MAX];
+ char bpf_expr[MR_BPF_EXPRESSION_MAX];
};
int marsio_dp_trace_job_id_uesd_get(struct mr_instance * instance, job_bitmap_t * jobs_id);