File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -1563,7 +1563,7 @@ static struct smbd_connection *_smbd_get_connection(
1563
1563
sp -> keepalive_interval_msec = smbd_keep_alive_interval * 1000 ;
1564
1564
1565
1565
if (sc -> ib .dev -> attrs .max_send_sge < SMBDIRECT_MAX_SEND_SGE ||
1566
- sc -> ib .dev -> attrs .max_recv_sge < SMBDIRECT_MAX_RECV_SGE ) {
1566
+ sc -> ib .dev -> attrs .max_recv_sge < SMBDIRECT_RECV_IO_MAX_SGE ) {
1567
1567
log_rdma_event (ERR ,
1568
1568
"device %.*s max_send_sge/max_recv_sge = %d/%d too small\n" ,
1569
1569
IB_DEVICE_NAME_MAX ,
@@ -1595,7 +1595,7 @@ static struct smbd_connection *_smbd_get_connection(
1595
1595
qp_attr .cap .max_send_wr = sp -> send_credit_target ;
1596
1596
qp_attr .cap .max_recv_wr = sp -> recv_credit_max ;
1597
1597
qp_attr .cap .max_send_sge = SMBDIRECT_MAX_SEND_SGE ;
1598
- qp_attr .cap .max_recv_sge = SMBDIRECT_MAX_RECV_SGE ;
1598
+ qp_attr .cap .max_recv_sge = SMBDIRECT_RECV_IO_MAX_SGE ;
1599
1599
qp_attr .cap .max_inline_data = 0 ;
1600
1600
qp_attr .sq_sig_type = IB_SIGNAL_REQ_WR ;
1601
1601
qp_attr .qp_type = IB_QPT_RC ;
Original file line number Diff line number Diff line change @@ -139,9 +139,6 @@ struct smbd_request {
139
139
u8 packet [];
140
140
};
141
141
142
- /* Maximum number of SGEs used by smbdirect.c in any receive work request */
143
- #define SMBDIRECT_MAX_RECV_SGE 1
144
-
145
142
/* Create a SMBDirect session */
146
143
struct smbd_connection * smbd_get_connection (
147
144
struct TCP_Server_Info * server , struct sockaddr * dstaddr );
You can’t perform that action at this time.
0 commit comments