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_create_qpair()
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
f75c226db0
commit
cf78939647
|
|
@ -1962,10 +1962,9 @@ static int smb_direct_create_pools(struct smbdirect_socket *sc)
|
|||
return -ENOMEM;
|
||||
}
|
||||
|
||||
static int smb_direct_create_qpair(struct smb_direct_transport *t,
|
||||
static int smb_direct_create_qpair(struct smbdirect_socket *sc,
|
||||
struct ib_qp_cap *cap)
|
||||
{
|
||||
struct smbdirect_socket *sc = &t->socket;
|
||||
struct smbdirect_socket_parameters *sp = &sc->parameters;
|
||||
int ret;
|
||||
struct ib_qp_init_attr qp_attr;
|
||||
|
|
@ -2130,7 +2129,7 @@ static int smb_direct_connect(struct smb_direct_transport *st)
|
|||
return ret;
|
||||
}
|
||||
|
||||
ret = smb_direct_create_qpair(st, &qp_cap);
|
||||
ret = smb_direct_create_qpair(sc, &qp_cap);
|
||||
if (ret) {
|
||||
pr_err("Can't accept RDMA client: %d\n", ret);
|
||||
return ret;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user