From 56e4e6a53cc1f5396993e557b0472fb730349e38 Mon Sep 17 00:00:00 2001 From: Geliang Tang Date: Wed, 23 Oct 2024 10:01:36 +0800 Subject: [PATCH] fix Signed-off-by: Geliang Tang --- tools/testing/selftests/bpf/progs/mptcp_bpf_bytes.c | 4 ++-- tools/testing/selftests/bpf/progs/mptcp_bpf_rr.c | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/bpf/progs/mptcp_bpf_bytes.c b/tools/testing/selftests/bpf/progs/mptcp_bpf_bytes.c index 28b4339331e03..7708e64ad68ef 100644 --- a/tools/testing/selftests/bpf/progs/mptcp_bpf_bytes.c +++ b/tools/testing/selftests/bpf/progs/mptcp_bpf_bytes.c @@ -30,10 +30,10 @@ int BPF_PROG(trace_mptcp_sched_get_send, struct mptcp_sock *msk) tp = bpf_core_cast(ssk, struct tcp_sock); if (subflow->subflow_id == 1) { - bpf_printk("bytes 1: sent %lu received %lu subflows %u", tp->bytes_sent, tp->bytes_received, msk->pm.subflows); + //bpf_printk("bytes 1: sent %lu received %lu subflows %u", tp->bytes_sent, tp->bytes_received, msk->pm.subflows); bytes_sent_1 += tp->bytes_sent; } else if (subflow->subflow_id == 2) { - bpf_printk("bytes 2: sent %lu received %lu subflows %u", tp->bytes_sent, tp->bytes_received, msk->pm.subflows); + //bpf_printk("bytes 2: sent %lu received %lu subflows %u", tp->bytes_sent, tp->bytes_received, msk->pm.subflows); bytes_sent_2 += tp->bytes_sent; } } diff --git a/tools/testing/selftests/bpf/progs/mptcp_bpf_rr.c b/tools/testing/selftests/bpf/progs/mptcp_bpf_rr.c index c901ed045fdc6..7d4d29a50aa00 100644 --- a/tools/testing/selftests/bpf/progs/mptcp_bpf_rr.c +++ b/tools/testing/selftests/bpf/progs/mptcp_bpf_rr.c @@ -60,6 +60,7 @@ int BPF_PROG(bpf_rr_get_subflow, struct mptcp_sock *msk, out: next = bpf_core_cast(next, struct mptcp_subflow_context); mptcp_subflow_set_scheduled(next, true); + //bpf_printk("rr subflow=%u/%u", next->subflow_id, msk->pm.subflows + 1); ptr->last_snd = mptcp_subflow_tcp_sock(next); return 0; }