Linux CIFS filesystem development
 help / color / mirror / Atom feed
* [PATCH 1/2] ksmbd: fix possibly wrong init value for RDMA buffer size
@ 2025-01-06  3:39 He Wang
  2025-01-06  3:39 ` [PATCH 2/2] ksmbd: fix unexpectedly changed path in ksmbd_vfs_kern_path_locked He Wang
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: He Wang @ 2025-01-06  3:39 UTC (permalink / raw)
  Cc: He Wang, Namjae Jeon, Steve French, Sergey Senozhatsky,
	Tom Talpey, linux-cifs, linux-kernel

Field `initiator_depth` is for incoming request.

According to the man page, `max_qp_rd_atom` is the maximum number of
outstanding packaets, and `max_qp_init_rd_atom` is the maximum depth of
incoming requests.

Signed-off-by: He Wang <xw897002528@gmail.com>
---
 fs/smb/server/transport_rdma.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/smb/server/transport_rdma.c b/fs/smb/server/transport_rdma.c
index 0ef3c9f0b..c6dbbbb32 100644
--- a/fs/smb/server/transport_rdma.c
+++ b/fs/smb/server/transport_rdma.c
@@ -1640,7 +1640,7 @@ static int smb_direct_accept_client(struct smb_direct_transport *t)
 	int ret;
 
 	memset(&conn_param, 0, sizeof(conn_param));
-	conn_param.initiator_depth = min_t(u8, t->cm_id->device->attrs.max_qp_rd_atom,
+	conn_param.initiator_depth = min_t(u8, t->cm_id->device->attrs.max_qp_init_rd_atom,
 					   SMB_DIRECT_CM_INITIATOR_DEPTH);
 	conn_param.responder_resources = 0;
 
-- 
2.46.2


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-01-08 16:38 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-06  3:39 [PATCH 1/2] ksmbd: fix possibly wrong init value for RDMA buffer size He Wang
2025-01-06  3:39 ` [PATCH 2/2] ksmbd: fix unexpectedly changed path in ksmbd_vfs_kern_path_locked He Wang
2025-01-06  8:30 ` [PATCH 1/2] ksmbd: fix possibly wrong init value for RDMA buffer size Namjae Jeon
2025-01-07 21:04 ` Tom Talpey
2025-01-07 23:14   ` Namjae Jeon
2025-01-07 23:32     ` Steve French
     [not found]   ` <CAPG2z08PyX3VZ4mxzEr_FtmiafGi=cNGpOzG7rjWxihjxeyTjQ@mail.gmail.com>
2025-01-08 13:58     ` Tom Talpey
     [not found]       ` <CAPG2z08fdWGMLovAo663nTant4S8oyPoWL5Vo7Rdc8JzaTRsMw@mail.gmail.com>
2025-01-08 16:38         ` Tom Talpey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox