John Baldwin 7b02c1e8c6 iscsi: Fetch limits based on a socket rather than assuming global limits.
cxgbei needs the ability to return different limits based on the
connection (e.g. if the connection is over a T5 adapter or a T6
adapter as well as factoring in the MTU).

This change plumbs through the changes in the ioctls without changing
any of the backends.  The limits callback passed to icl_register now
accepts a second socket argument which holds the integer file
descriptor.  To support ABI compatiblity for old binaries, the
callback should return "global" values if the socket fd is zero.

The CTL_ISCSI_LIMITS argument used with CTL_ISCSI by ctld(8) now
accepts the socket fd in a field that was previously part of a
reserved spare field.  Old binaries zero this request which results in
passing a socket fd of 0 to the limits callback.

The ISCSIDREQUEST ioctl no longer returns limits.  Instead, iscsid(8)
invokes a new ISCSIDLIMITS ioctl after establishing the connection via
connect(2).  For ABI compat, if the old ISCSIDREQUEST is invoked, the
global limits are still fetched (with a socket fd of 0) and returned.

Reviewed by:	mav
Sponsored by:	Chelsio Communications
Differential Revision:	https://reviews.freebsd.org/D34928
2022-04-18 12:53:28 -07:00
..
2020-02-19 12:49:49 +00:00
2021-11-26 12:51:08 +01:00
2021-05-07 22:13:31 +02:00
2022-03-17 21:55:52 -08:00
2021-09-29 21:18:17 -06:00
2020-06-22 07:46:24 +00:00
2021-11-30 16:35:48 -07:00
2020-12-19 13:17:25 +00:00
2021-07-21 10:16:11 +01:00
2021-05-03 09:55:40 -06:00
2022-04-07 14:58:13 +02:00
2019-12-04 16:56:11 +00:00
2020-10-09 14:03:45 +00:00
2021-04-10 11:16:02 +02:00
2021-10-06 21:56:20 -08:00
2022-02-10 12:15:47 -03:00
2022-04-15 20:04:41 +01:00
2020-08-17 10:25:02 +00:00
2020-06-24 02:08:08 +00:00
2022-01-19 12:43:51 -07:00
2020-08-21 09:48:00 +00:00
2021-12-04 15:08:01 +01:00
2020-03-23 14:44:23 +00:00
2019-12-11 17:37:53 +00:00
2021-04-02 07:01:20 +00:00
2022-04-13 15:27:30 -07:00
2022-02-21 20:16:12 -04:00
2021-11-26 12:51:08 +01:00
2021-04-04 00:50:28 +03:00
2021-04-04 00:50:28 +03:00