Skip to content

Commit c9c70b2

Browse files
mmhalMartin KaFai Lau
authored andcommitted
selftests/bpf: Exercise SOCK_STREAM unix_inet_redir_to_connected()
Constants got switched reducing the test's coverage. Replace SOCK_DGRAM with SOCK_STREAM in one of unix_inet_skb_redir_to_connected() tests. Fixes: 51354f7 ("bpf, sockmap: Add af_unix test with both sockets in map") Reviewed-by: Jakub Sitnicki <[email protected]> Tested-by: Jakub Sitnicki <[email protected]> Suggested-by: Jakub Sitnicki <[email protected]> Signed-off-by: Michal Luczaj <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Martin KaFai Lau <[email protected]>
1 parent b3b15b7 commit c9c70b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/testing/selftests/bpf/prog_tests/sockmap_listen.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1793,7 +1793,7 @@ static void unix_inet_skb_redir_to_connected(struct test_sockmap_listen *skel,
17931793
unix_inet_redir_to_connected(family, SOCK_DGRAM,
17941794
sock_map, -1, verdict_map,
17951795
REDIR_EGRESS, NO_FLAGS);
1796-
unix_inet_redir_to_connected(family, SOCK_DGRAM,
1796+
unix_inet_redir_to_connected(family, SOCK_STREAM,
17971797
sock_map, -1, verdict_map,
17981798
REDIR_EGRESS, NO_FLAGS);
17991799

0 commit comments

Comments
 (0)