-
Notifications
You must be signed in to change notification settings - Fork 130
selftests/bpf: Test sockmap/sockhash redirection #8953
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Upstream branch: d0445d7 |
d48a548
to
c5ed444
Compare
Upstream branch: 4dd372d |
d8bf0e9
to
8bdf2ce
Compare
Upstream branch: 4dd372d |
8bdf2ce
to
06ee9bf
Compare
c5ed444
to
30a6f23
Compare
Upstream branch: 9325d53 |
06ee9bf
to
9f24291
Compare
Upstream branch: 9325d53 |
9f24291
to
1210bdc
Compare
30a6f23
to
abba24e
Compare
Upstream branch: 9325d53 |
1210bdc
to
712c76e
Compare
abba24e
to
b62c574
Compare
Upstream branch: 1cb0f56 |
712c76e
to
225fca9
Compare
b62c574
to
7b56de2
Compare
Upstream branch: b615ce5 |
225fca9
to
b79128d
Compare
7b56de2
to
49174bd
Compare
Upstream branch: b615ce5 |
b79128d
to
d33facb
Compare
49174bd
to
f3a4188
Compare
Upstream branch: 25b6d5d |
d33facb
to
1b3d0ba
Compare
f3a4188
to
f10d83e
Compare
Upstream branch: 4e2e684 |
1b3d0ba
to
5c6ef39
Compare
f10d83e
to
9857a0f
Compare
Upstream branch: d90f0bc |
5c6ef39
to
3408614
Compare
9857a0f
to
b93b30b
Compare
Handle af_unix in init_addr_loopback(). For pair creation, bind() the peer socket to make SOCK_DGRAM connect() happy. Reviewed-by: Jakub Sitnicki <[email protected]> Acked-by: John Fastabend <[email protected]> Signed-off-by: Michal Luczaj <[email protected]>
Add function that returns string representation of socket's domain/type. Suggested-by: Jakub Sitnicki <[email protected]> Reviewed-by: Jakub Sitnicki <[email protected]> Acked-by: John Fastabend <[email protected]> Signed-off-by: Michal Luczaj <[email protected]>
Add integer wrappers for convenient sockmap usage. While there, fix misaligned trailing slashes. Suggested-by: Jakub Sitnicki <[email protected]> Reviewed-by: Jakub Sitnicki <[email protected]> Acked-by: John Fastabend <[email protected]> Signed-off-by: Michal Luczaj <[email protected]>
Instead of piggybacking on test_sockmap_listen, introduce test_sockmap_redir especially for sockmap redirection tests. Suggested-by: Jiayuan Chen <[email protected]> Acked-by: John Fastabend <[email protected]> Signed-off-by: Michal Luczaj <[email protected]> Acked-by: John Fastabend <[email protected]>
Test redirection logic. All supported and unsupported redirect combinations are tested for success and failure respectively. BPF_MAP_TYPE_SOCKMAP BPF_MAP_TYPE_SOCKHASH x sk_msg-to-egress sk_msg-to-ingress sk_skb-to-egress sk_skb-to-ingress x AF_INET, SOCK_STREAM AF_INET6, SOCK_STREAM AF_INET, SOCK_DGRAM AF_INET6, SOCK_DGRAM AF_UNIX, SOCK_STREAM AF_UNIX, SOCK_DGRAM AF_VSOCK, SOCK_STREAM AF_VSOCK, SOCK_SEQPACKET Suggested-by: Jakub Sitnicki <[email protected]> Acked-by: John Fastabend <[email protected]> Signed-off-by: Michal Luczaj <[email protected]>
Remove tests covered by sockmap_redir. Acked-by: John Fastabend <[email protected]> Signed-off-by: Michal Luczaj <[email protected]>
Remove tests covered by sockmap_redir. Acked-by: John Fastabend <[email protected]> Signed-off-by: Michal Luczaj <[email protected]>
…tests Remove tests covered by sockmap_redir. Acked-by: John Fastabend <[email protected]> Signed-off-by: Michal Luczaj <[email protected]>
Upstream branch: 5ead949 |
3408614
to
e1118e7
Compare
b93b30b
to
f4bae1b
Compare
At least one diff in series https://patchwork.kernel.org/project/netdevbpf/list/?series=963002 irrelevant now. Closing PR. |
Pull request for series with
subject: selftests/bpf: Test sockmap/sockhash redirection
version: 3
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=963002