summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel T. Lee <danieltimlee@gmail.com>2024-10-11 04:48:44 +0000
committerAlexei Starovoitov <ast@kernel.org>2024-10-11 09:51:31 -0700
commitec6c4be073237814f4dd7f56ef72f08760cfaa90 (patch)
tree2c660f25d2589930b01754a77d9d9766cb65022d /lib
parentba4fb3b3f7d891ba2fb82fe344d5068f87d7481c (diff)
selftests/bpf: migrate cgroup sock create test for setting iface/mark/prio
This patch migrates the old test for cgroup BPF that sets sk_bound_dev_if, mark, and priority when AF_INET{6} sockets are created. The most closely related tests under selftests are 'test_sock' and 'sockopt'. However, these existing tests serve different purposes. 'test_sock' focuses mainly on verifying the socket binding process, while 'sockopt' concentrates on testing the behavior of getsockopt and setsockopt operations for various socket options. Neither of these existing tests directly covers the ability of cgroup BPF to set socket attributes such as sk_bound_dev_if, mark, and priority during socket creation. To address this gap, this patch introduces a migration of the old cgroup socket attribute test, now included as the 'sock_create' test in selftests/bpf. This ensures that the ability to configure these attributes during socket creation is properly tested. Signed-off-by: Daniel T. Lee <danieltimlee@gmail.com> Link: https://lore.kernel.org/r/20241011044847.51584-2-danieltimlee@gmail.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions