linux-yocto/net/sunrpc
Nikhil Jha c3616dfddf sunrpc: don't immediately retransmit on seqno miss
[ Upstream commit fadc0f3bb2 ]

RFC2203 requires that retransmitted messages use a new gss sequence
number, but the same XID. This means that if the server is just slow
(e.x. overloaded), the client might receive a response using an older
seqno than the one it has recorded.

Currently, Linux's client immediately retransmits in this case. However,
this leads to a lot of wasted retransmits until the server eventually
responds faster than the client can resend.

Client -> SEQ 1 -> Server
Client -> SEQ 2 -> Server
Client <- SEQ 1 <- Server (misses, expecting seqno = 2)
Client -> SEQ 3 -> Server (immediate retransmission on miss)
Client <- SEQ 2 <- Server (misses, expecting seqno = 3)
Client -> SEQ 4 -> Server (immediate retransmission on miss)
... and so on ...

This commit makes it so that we ignore messages with bad checksums
due to seqnum mismatch, and rely on the usual timeout behavior for
retransmission instead of doing so immediately.

Signed-off-by: Nikhil Jha <njha@janestreet.com>
Acked-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <anna.schumaker@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-07-06 11:00:05 +02:00
..
auth_gss gss_krb5: Fix the error handling path for crypto_sync_skcipher_setkey 2024-08-03 08:53:42 +02:00
xprtrdma svcrdma: fix miss destroy percpu_counter in svc_rdma_proc_init() 2024-12-09 10:32:30 +01:00
.kunitconfig
addr.c net: sunrpc: Fix an off by one in rpc_sockaddr2uaddr() 2024-03-26 18:20:01 -04:00
auth_null.c
auth_tls.c
auth_unix.c
auth.c cred: get rid of CONFIG_DEBUG_CREDENTIALS 2023-12-20 17:01:51 +01:00
backchannel_rqst.c
cache.c sunrpc: suppress warnings for unused procfs functions 2025-03-07 16:45:37 +01:00
clnt.c sunrpc: don't immediately retransmit on seqno miss 2025-07-06 11:00:05 +02:00
debugfs.c
fail.h
Kconfig
Makefile
netns.h
rpc_pipe.c
rpcb_clnt.c SUNRPC: rpcbind should never reset the port to the value '0' 2025-06-04 14:41:55 +02:00
sched.c SUNRPC: Don't allow waiting for exiting tasks 2025-06-04 14:41:54 +02:00
socklib.c
socklib.h
stats.c sunrpc: use the struct net as the svc proc private 2024-08-19 06:04:23 +02:00
sunrpc_syms.c
sunrpc.h
svc_xprt.c SUNRPC: Revert 5f7fc5d69f 2024-01-01 12:42:26 +00:00
svc.c sunrpc: handle SVC_GARBAGE during svc auth processing as auth error 2025-06-27 11:09:00 +01:00
svcauth_unix.c
svcauth.c
svcsock.c Revert "SUNRPC: Reduce thread wake-up rate when receiving large RPC messages" 2025-02-08 09:52:35 +01:00
sysctl.c
sysfs.c
sysfs.h
timer.c
xdr.c
xprt.c
xprtmultipath.c SUNRPC: Fix a suspicious RCU usage warning 2024-02-05 20:14:17 +00:00
xprtsock.c SUNRPC: Prevent hang on NFS mount with xprtsec=[m]tls 2025-06-27 11:08:44 +01:00