Skip to content

Commit af6d797

Browse files
committed
rxrpc: Implement an in-kernel rxperf server for testing purposes
jira LE-1907 Rebuild_History Non-Buildable kernel-5.14.0-284.30.1.el9_2 commit-author David Howells <[email protected]> commit 75bfdbf Implement an in-kernel rxperf server to allow kernel-based rxrpc services to be tested directly, unlike with AFS where they're accessed by the fileserver when the latter decides it wants to. This is implemented as a module that, if loaded, opens UDP port 7009 (afs3-rmtsys) and listens on it for incoming calls. Calls can be generated using the rxperf command shipped with OpenAFS, for example. Changes ======= ver #2) - Use min_t() instead of min(). Signed-off-by: David Howells <[email protected]> cc: Marc Dionne <[email protected]> cc: [email protected] cc: Jakub Kicinski <[email protected]> (cherry picked from commit 75bfdbf) Signed-off-by: Jonathan Maple <[email protected]>
1 parent d25e44f commit af6d797

File tree

5 files changed

+655
-0
lines changed

5 files changed

+655
-0
lines changed

include/net/af_rxrpc.h

+1
Original file line numberDiff line numberDiff line change
@@ -71,5 +71,6 @@ void rxrpc_kernel_set_max_life(struct socket *, struct rxrpc_call *,
7171
unsigned long);
7272

7373
int rxrpc_sock_set_min_security_level(struct sock *sk, unsigned int val);
74+
int rxrpc_sock_set_security_keyring(struct sock *, struct key *);
7475

7576
#endif /* _NET_RXRPC_H */

net/rxrpc/Kconfig

+7
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,11 @@ config RXKAD
5858

5959
See Documentation/networking/rxrpc.rst.
6060

61+
config RXPERF
62+
tristate "RxRPC test service"
63+
help
64+
Provide an rxperf service tester. This listens on UDP port 7009 for
65+
incoming calls from the rxperf program (an example of which can be
66+
found in OpenAFS).
67+
6168
endif

net/rxrpc/Makefile

+3
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,6 @@ rxrpc-y := \
3636
rxrpc-$(CONFIG_PROC_FS) += proc.o
3737
rxrpc-$(CONFIG_RXKAD) += rxkad.o
3838
rxrpc-$(CONFIG_SYSCTL) += sysctl.o
39+
40+
41+
obj-$(CONFIG_RXPERF) += rxperf.o

0 commit comments

Comments
 (0)