]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Make the iSCSI parameter negotiation more flexible.
authornp <np@FreeBSD.org>
Thu, 25 Aug 2016 05:22:53 +0000 (05:22 +0000)
committernp <np@FreeBSD.org>
Thu, 25 Aug 2016 05:22:53 +0000 (05:22 +0000)
commit2e36f0c10ab284f974e7018ed32dd4aca3fe3308
tree956a2021fa5a85180b18e0c435a8cdcba6356718
parent29337f1b1bd70a98136f77e188de238cbd9dfef4
Make the iSCSI parameter negotiation more flexible.

Decouple the send and receive limits on the amount of data in a single
iSCSI PDU.  MaxRecvDataSegmentLength is declarative, not negotiated, and
is direction-specific so there is no reason for both ends to limit
themselves to the same min(initiator, target) value in both directions.

Allow iSCSI drivers to report their send, receive, first burst, and max
burst limits explicitly instead of using hardcoded values or trying to
derive all of them from the receive limit (which was the only limit
reported by the drivers prior to this change).

Display the send and receive limits separately in the userspace iSCSI
utilities.

Reviewed by: jpaetzel@ (earlier version), trasz@
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D7279
21 files changed:
sys/cam/ctl/ctl_frontend_iscsi.c
sys/cam/ctl/ctl_frontend_iscsi.h
sys/cam/ctl/ctl_ioctl.h
sys/dev/cxgbe/cxgbei/icl_cxgbei.c
sys/dev/iscsi/icl.c
sys/dev/iscsi/icl.h
sys/dev/iscsi/icl_soft.c
sys/dev/iscsi/iscsi.c
sys/dev/iscsi/iscsi.h
sys/dev/iscsi/iscsi_ioctl.h
sys/dev/iser/icl_iser.c
usr.bin/iscsictl/iscsictl.c
usr.sbin/ctladm/ctladm.c
usr.sbin/ctld/ctld.c
usr.sbin/ctld/ctld.h
usr.sbin/ctld/kernel.c
usr.sbin/ctld/login.c
usr.sbin/ctld/pdu.c
usr.sbin/iscsid/iscsid.c
usr.sbin/iscsid/iscsid.h
usr.sbin/iscsid/login.c