diff options
author | Geliang Tang <geliang.tang@suse.com> | 2023-10-06 18:32:16 +0800 |
---|---|---|
committer | Martin KaFai Lau <martin.lau@kernel.org> | 2023-10-06 11:25:22 -0700 |
commit | fdd11c14c33b949a4d59fab159fb2da834073914 (patch) | |
tree | bc564e2ddb02548f19c28d26992bdfe7e4cfcdfd /kernel/bpf/stackmap.c | |
parent | 0af3aace5b91b0e46b33f4e5eb137bea5730fa76 (diff) | |
download | lwn-fdd11c14c33b949a4d59fab159fb2da834073914.tar.gz lwn-fdd11c14c33b949a4d59fab159fb2da834073914.zip |
selftests/bpf: Add pairs_redir_to_connected helper
Extract duplicate code from these four functions
unix_redir_to_connected()
udp_redir_to_connected()
inet_unix_redir_to_connected()
unix_inet_redir_to_connected()
to generate a new helper pairs_redir_to_connected(). Create the
different socketpairs in these four functions, then pass the
socketpairs info to the new common helper to do the connections.
Signed-off-by: Geliang Tang <geliang.tang@suse.com>
Link: https://lore.kernel.org/r/54bb28dcf764e7d4227ab160883931d2173f4f3d.1696588133.git.geliang.tang@suse.com
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Diffstat (limited to 'kernel/bpf/stackmap.c')
0 files changed, 0 insertions, 0 deletions