freebsd-nq/sys/dev/ocs_fc
Alexander Motin 8836496815 Introduce support of SCSI Command Priority.
SAM-3 specification introduced concept of Task Priority, that was renamed
to Command Priority in SAM-4, and supported by all modern SCSI transports.
It provides 15 levels of relative priorities: 1 - highest, 15 - lowest and
0 - default.  SAT specification for SATA devices translates priorities 1-3
into NCQ high priority.

This change adds new "priority" field into empty spots of struct ccb_scsiio
and struct ccb_accept_tio of CAM and struct ctl_scsiio of CTL.  Respective
support is added into iscsi(4), isp(4), mpr(4), mps(4) and ocs_fc(4) drivers
for both initiator and where applicable target roles.  Minimal support was
added to CTL to receive the priority value from different frontends, pass it
between HA controllers and report in few places.

This patch does not add consumers of this functionality, so nothing should
really change yet, since the field is still set to 0 (default) on initiator
and not actively used on target.  Those are to be implemented separately.

I've confirmed priority working on WD Red SATA disks connected via mpr(4)
and properly transferred to CTL target via iscsi(4), isp(4) and ocs_fc(4).

While there, added missing tag_action support to ocs_fc(4) initiator role.

MFC after:	1 month
Relnotes:	yes
Sponsored by:	iXsystems, Inc.
2020-10-25 19:34:02 +00:00
..
ocs_cam.c Introduce support of SCSI Command Priority. 2020-10-25 19:34:02 +00:00
ocs_cam.h ocs_fc: clean up empty lines in .c and .h files 2020-09-01 22:02:12 +00:00
ocs_common.h ocs_fc: clean up empty lines in .c and .h files 2020-09-01 22:02:12 +00:00
ocs_ddump.c ocs_fc: clean up empty lines in .c and .h files 2020-09-01 22:02:12 +00:00
ocs_ddump.h
ocs_device.c ocs_fc: clean up empty lines in .c and .h files 2020-09-01 22:02:12 +00:00
ocs_device.h ocs_fc: clean up empty lines in .c and .h files 2020-09-01 22:02:12 +00:00
ocs_domain.c ocs_fc: clean up empty lines in .c and .h files 2020-09-01 22:02:12 +00:00
ocs_domain.h
ocs_drv_fc.h ocs_fc: clean up empty lines in .c and .h files 2020-09-01 22:02:12 +00:00
ocs_els.c ocs_fc: clean up empty lines in .c and .h files 2020-09-01 22:02:12 +00:00
ocs_els.h
ocs_fabric.c ocs_fc: clean up empty lines in .c and .h files 2020-09-01 22:02:12 +00:00
ocs_fabric.h ocs_fc: clean up empty lines in .c and .h files 2020-09-01 22:02:12 +00:00
ocs_fcp.h ocs_fc: clean up empty lines in .c and .h files 2020-09-01 22:02:12 +00:00
ocs_hw_queues.c ocs_fc: clean up empty lines in .c and .h files 2020-09-01 22:02:12 +00:00
ocs_hw_queues.h ocs_fc: clean up empty lines in .c and .h files 2020-09-01 22:02:12 +00:00
ocs_hw.c ocs_fc: clean up empty lines in .c and .h files 2020-09-01 22:02:12 +00:00
ocs_hw.h ocs_fc: clean up empty lines in .c and .h files 2020-09-01 22:02:12 +00:00
ocs_io.c ocs_fc: clean up empty lines in .c and .h files 2020-09-01 22:02:12 +00:00
ocs_io.h ocs_fc: clean up empty lines in .c and .h files 2020-09-01 22:02:12 +00:00
ocs_ioctl.c ocs_fc: clean up empty lines in .c and .h files 2020-09-01 22:02:12 +00:00
ocs_ioctl.h ocs_fc: clean up empty lines in .c and .h files 2020-09-01 22:02:12 +00:00
ocs_list.h ocs_fc: clean up empty lines in .c and .h files 2020-09-01 22:02:12 +00:00
ocs_mgmt.c ocs_fc: clean up empty lines in .c and .h files 2020-09-01 22:02:12 +00:00
ocs_mgmt.h ocs_fc: clean up empty lines in .c and .h files 2020-09-01 22:02:12 +00:00
ocs_node.c ocs_fc: clean up empty lines in .c and .h files 2020-09-01 22:02:12 +00:00
ocs_node.h ocs_fc: clean up empty lines in .c and .h files 2020-09-01 22:02:12 +00:00
ocs_os.c ocs_fc: clean up empty lines in .c and .h files 2020-09-01 22:02:12 +00:00
ocs_os.h ocs_fc: clean up empty lines in .c and .h files 2020-09-01 22:02:12 +00:00
ocs_pci.c ocs_fc: clean up empty lines in .c and .h files 2020-09-01 22:02:12 +00:00
ocs_scsi.c Introduce support of SCSI Command Priority. 2020-10-25 19:34:02 +00:00
ocs_scsi.h Introduce support of SCSI Command Priority. 2020-10-25 19:34:02 +00:00
ocs_sm.c
ocs_sm.h
ocs_sport.c ocs_fc: clean up empty lines in .c and .h files 2020-09-01 22:02:12 +00:00
ocs_sport.h ocs_fc: clean up empty lines in .c and .h files 2020-09-01 22:02:12 +00:00
ocs_stats.h ocs_fc: clean up empty lines in .c and .h files 2020-09-01 22:02:12 +00:00
ocs_unsol.c Introduce support of SCSI Command Priority. 2020-10-25 19:34:02 +00:00
ocs_unsol.h
ocs_utils.c ocs_fc: clean up empty lines in .c and .h files 2020-09-01 22:02:12 +00:00
ocs_utils.h ocs_fc: clean up empty lines in .c and .h files 2020-09-01 22:02:12 +00:00
ocs_vpd.h ocs_fc: clean up empty lines in .c and .h files 2020-09-01 22:02:12 +00:00
ocs_xport.c ocs_fc: clean up empty lines in .c and .h files 2020-09-01 22:02:12 +00:00
ocs_xport.h ocs_fc: clean up empty lines in .c and .h files 2020-09-01 22:02:12 +00:00
ocs.h ocs_fc: clean up empty lines in .c and .h files 2020-09-01 22:02:12 +00:00
sli4.c ocs_fc: clean up empty lines in .c and .h files 2020-09-01 22:02:12 +00:00
sli4.h ocs_fc: clean up empty lines in .c and .h files 2020-09-01 22:02:12 +00:00
version.h