Skip to content

Commit

Permalink
selftests/bpf: Correct two typos
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Lu Hongfei authored and Daniel Borkmann committed Jul 7, 2023
1 parent 56baeeb commit 856fe03
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tools/testing/selftests/bpf/benchs/bench_ringbufs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
2 changes: 1 addition & 1 deletion tools/testing/selftests/bpf/prog_tests/tcp_hdr_options.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 856fe03

Please sign in to comment.