selftests/bpf: Correct two typos
authorLu Hongfei <luhongfei@vivo.com>
Fri, 7 Jul 2023 08:12:50 +0000 (16:12 +0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 7 Jul 2023 17:36:04 +0000 (19:36 +0200)
When wrapping code, use ';' better than using ',' which is more in line with
the coding habits of most engineers.

Signed-off-by: Lu Hongfei <luhongfei@vivo.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Hou Tao <houtao1@huawei.com>
Acked-by: Stanislav Fomichev <sdf@google.com>
Link: https://lore.kernel.org/bpf/20230707081253.34638-1-luhongfei@vivo.com
tools/testing/selftests/bpf/benchs/bench_ringbufs.c
tools/testing/selftests/bpf/prog_tests/tcp_hdr_options.c

index 3ca14ad36607143a166b61994df9eba0d3ae4ddd..e1ee979e6acc6ffaf82b726822062aedf2e9d5c0 100644 (file)
@@ -399,7 +399,7 @@ static void perfbuf_libbpf_setup(void)
        ctx->skel = perfbuf_setup_skeleton();
 
        memset(&attr, 0, sizeof(attr));
-       attr.config = PERF_COUNT_SW_BPF_OUTPUT,
+       attr.config = PERF_COUNT_SW_BPF_OUTPUT;
        attr.type = PERF_TYPE_SOFTWARE;
        attr.sample_type = PERF_SAMPLE_RAW;
        /* notify only every Nth sample */
index 13bcaeb028b844edcf51ce788cbeb6efa5f27de0..56685fc03c7e9ecedb4212f888abd38ab7ff1152 100644 (file)
@@ -347,7 +347,7 @@ static void syncookie_estab(void)
        exp_active_estab_in.max_delack_ms = 22;
 
        exp_passive_hdr_stg.syncookie = true;
-       exp_active_hdr_stg.resend_syn = true,
+       exp_active_hdr_stg.resend_syn = true;
 
        prepare_out();