diff options
| author | Stefan Metzmacher <metze@samba.org> | 2025-09-20 23:14:15 +0200 |
|---|---|---|
| committer | Steve French <stfrench@microsoft.com> | 2026-04-15 21:58:19 -0500 |
| commit | 822b1f296a4a230425464a7e42a7f180990aed5d (patch) | |
| tree | d8392465beb41f2788faf7be97b9a16d6bab770f /fs/smb/common | |
| parent | 5fe03dd0c52094a2673b829af0f432bab038edcc (diff) | |
| download | lwn-822b1f296a4a230425464a7e42a7f180990aed5d.tar.gz lwn-822b1f296a4a230425464a7e42a7f180990aed5d.zip | |
smb: smbdirect: define SMBDIRECT_RDMA_CM_[RNR_]RETRY
These are copies of {SMBD,SMB_DIRECT}_CM_[RNR_]RETRY.
Cc: Steve French <smfrench@gmail.com>
Cc: Tom Talpey <tom@talpey.com>
Cc: Long Li <longli@microsoft.com>
Cc: Namjae Jeon <linkinjeon@kernel.org>
Cc: linux-cifs@vger.kernel.org
Cc: samba-technical@lists.samba.org
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/smb/common')
| -rw-r--r-- | fs/smb/common/smbdirect/smbdirect_socket.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/fs/smb/common/smbdirect/smbdirect_socket.h b/fs/smb/common/smbdirect/smbdirect_socket.h index 36e6822c3795..dec91a102622 100644 --- a/fs/smb/common/smbdirect/smbdirect_socket.h +++ b/fs/smb/common/smbdirect/smbdirect_socket.h @@ -749,4 +749,13 @@ static inline size_t smbdirect_get_buf_page_count(const void *buf, size_t size) (uintptr_t)buf / PAGE_SIZE; } +/* + * Maximum number of retries on data transfer operations + */ +#define SMBDIRECT_RDMA_CM_RETRY 6 +/* + * No need to retry on Receiver Not Ready since SMB_DIRECT manages credits + */ +#define SMBDIRECT_RDMA_CM_RNR_RETRY 0 + #endif /* __FS_SMB_COMMON_SMBDIRECT_SMBDIRECT_SOCKET_H__ */ |
