]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
CTL: Increase maximum SCSI tag size from 32 to 64 bits.
authorAlexander Motin <mav@FreeBSD.org>
Sat, 3 Dec 2022 15:23:29 +0000 (10:23 -0500)
committerAlexander Motin <mav@FreeBSD.org>
Sat, 3 Dec 2022 15:23:29 +0000 (10:23 -0500)
commit0acc026dda9e7405f7a88993d1b51e5fc846cbc5
tree41f5979fd4c97d23f6c52052054b49de2e9a89b6
parentb81ac5cdc355029b4d5723fcdfcbcbedeb94dcd9
CTL: Increase maximum SCSI tag size from 32 to 64 bits.

SAM-5 specification states maximum size of command identifier (tag),
defined by specific transports, should not be larger than 64 bits.
While most of supported transports use 32 bits or less, it was
reported that virtio-scsi uses 64 bits.  Truncation to 32 bits in
bhyve code caused false tag conflict errors reported and possibly
other issues.

This changes CTL ABI and HA protocol, so CTL_HA_VERSION is bumped.

While we make HA protocol incompatible, increase default maximum
number of ports in CTL from 256 to 1024, matching number of LUNs.
There are many reports from people who need many iSCSI targets with
only one LUN each.  Increased memory consumption should be less of
a problem these days.

PR: 267539
share/man/man4/ctl.4
sys/cam/ctl/ctl.c
sys/cam/ctl/ctl_frontend_ioctl.c
sys/cam/ctl/ctl_io.h
sys/cam/ctl/ctl_ioctl.h
sys/cam/ctl/ctl_tpc_local.c
sys/cam/ctl/ctl_util.c
sys/cam/ctl/scsi_ctl.c
usr.sbin/bhyve/pci_virtio_scsi.c