SMBDIRECT_SEND_IO_MAX_SGE
.max_sge = SMBDIRECT_SEND_IO_MAX_SGE,
if (sc->ib.dev->attrs.max_send_sge < SMBDIRECT_SEND_IO_MAX_SGE ||
qp_cap.max_send_sge = SMBDIRECT_SEND_IO_MAX_SGE;
struct ib_sge sge[SMBDIRECT_SEND_IO_MAX_SGE];
struct scatterlist sg[SMBDIRECT_SEND_IO_MAX_SGE - 1];
sg_init_table(sg, SMBDIRECT_SEND_IO_MAX_SGE - 1);
sg, SMBDIRECT_SEND_IO_MAX_SGE - 1,
} else if (sg_cnt + msg->num_sge > SMBDIRECT_SEND_IO_MAX_SGE) {
struct kvec vecs[SMBDIRECT_SEND_IO_MAX_SGE - 1]; /* minus smbdirect hdr */
if (max_send_sges > SMBDIRECT_SEND_IO_MAX_SGE) {
qp_cap.max_send_sge = SMBDIRECT_SEND_IO_MAX_SGE;