public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
* [Query] iSER-Target: QP errors observed on increasing MaxXmitDataSegmentLength to 16384 (default = 8192)
@ 2017-02-24  9:14 Potnuri Bharat Teja
  2017-03-02  8:30 ` Nicholas A. Bellinger
  0 siblings, 1 reply; 6+ messages in thread
From: Potnuri Bharat Teja @ 2017-02-24  9:14 UTC (permalink / raw)
  To: sagi-NQWnxTmZq1alnMjI0IkVqw, nab-IzHhD5pYlfBP7FQvKIMDCQ
  Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA,
	target-devel-u79uwXL29TY76Z2rM5mHXA,
	swise-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW,
	rajur-ut6Up61K2wZBDgjK7y7TUQ

Hi Sagi/Nicholas,

When tried changing the MaxXmitDataSegmentLength to 16384 (default = 8192), by changing it from targetcli on target and iscsd.conf on initiator, I observe the following errors.

cxgb4 0000:06:00.4: AE qpid 1024 opcode 3 status 0x6 type 0 len 0x5c wrid.hi 0x0 wrid.lo 0x136
isert: isert_qp_event_callback: QP access error (3): conn ffff8807da7b6000
Aligning ISER MaxRecvDataSegmentLength: 4096 down to PAGE_SIZE
cxgb4 0000:06:00.4: AE qpid 1026 opcode 3 status 0x6 type 0 len 0x5c wrid.hi 0x0 wrid.lo 0x2
isert: isert_qp_event_callback: QP access error (3): conn ffff88053a2ee000

>From the error status of iw_cxgb4 the receive buffers posted by target are unsufficient for the
incoming data to be placed/DMAed by the HW/adapter.
Apparently, from the iSER-target code the rx buffers are acclocated for a fixed size of 8192. from isert_alloc_rx_descriptors() in drivers/infiniband/ulp/isert/ib_isert.c 
		rx_sg->length = ISER_RX_PAYLOAD_SIZE;

I confirmed the same by increasing the ISER_RX_PAYLOAD_SIZE to 16384 and the errors arent seen.

As far as i could see, from the iSER target code, MaxXmitDataSegmentLength should not be changed according to the targetcli/openiscsi parameters and should countinue based on iSER specific Initiator/targetrecvdatasegmentlength and so does the MaxrecvDatasegmentLength.

Please let me know if my observations are right and what could be done to fix this.

Thanks for your time.

Bharat.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

end of thread, other threads:[~2017-03-06 15:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-24  9:14 [Query] iSER-Target: QP errors observed on increasing MaxXmitDataSegmentLength to 16384 (default = 8192) Potnuri Bharat Teja
2017-03-02  8:30 ` Nicholas A. Bellinger
2017-03-02  9:01   ` Potnuri Bharat Teja
     [not found]     ` <20170302090101.GA31347-ut6Up61K2wZBDgjK7y7TUQ@public.gmane.org>
2017-03-02 10:05       ` Nicholas A. Bellinger
     [not found]         ` <1488449150.21712.129.camel-XoQW25Eq2zviZyQQd+hFbcojREIfoBdhmpATvIKMPHk@public.gmane.org>
2017-03-02 13:09           ` Potnuri Bharat Teja
2017-03-06 15:20           ` Sagi Grimberg

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