mirror of
https://github.com/torvalds/linux.git
synced 2026-07-31 19:47:08 +02:00
smb: server: pass struct smbdirect_socket to smb_direct_init_params()
This will make it easier to move function to the common code in future. Cc: Namjae Jeon <linkinjeon@kernel.org> Cc: Steve French <smfrench@gmail.com> Cc: Tom Talpey <tom@talpey.com> 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>
This commit is contained in:
parent
57131bf9e8
commit
a25075f112
|
|
@ -1819,10 +1819,9 @@ static unsigned int smb_direct_get_max_fr_pages(struct smbdirect_socket *sc)
|
|||
256);
|
||||
}
|
||||
|
||||
static int smb_direct_init_params(struct smb_direct_transport *t,
|
||||
static int smb_direct_init_params(struct smbdirect_socket *sc,
|
||||
struct ib_qp_cap *cap)
|
||||
{
|
||||
struct smbdirect_socket *sc = &t->socket;
|
||||
struct smbdirect_socket_parameters *sp = &sc->parameters;
|
||||
struct ib_device *device = sc->ib.dev;
|
||||
int max_send_sges, max_rw_wrs, max_send_wrs;
|
||||
|
|
@ -2127,7 +2126,7 @@ static int smb_direct_connect(struct smb_direct_transport *st)
|
|||
int ret;
|
||||
struct ib_qp_cap qp_cap;
|
||||
|
||||
ret = smb_direct_init_params(st, &qp_cap);
|
||||
ret = smb_direct_init_params(sc, &qp_cap);
|
||||
if (ret) {
|
||||
pr_err("Can't configure RDMA parameters\n");
|
||||
return ret;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user