opnsense-src/sys
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
..
amd64 Improve FPU Tag Word reconstruction on i386 to indicate register states. 2020-10-21 00:15:12 +00:00
arm
arm64 Add IOMMU support to GICv3 Interrupt Translation Service (ITS) driver. 2020-10-25 10:08:46 +00:00
bsm
cam Introduce support of SCSI Command Priority. 2020-10-25 19:34:02 +00:00
cddl Fix build after r367020 2020-10-24 23:21:51 +00:00
compat audit: correct reporting of *execve(2) success 2020-10-24 14:39:17 +00:00
conf backlight(9): compile with COMPAT_LINUXKPI as well 2020-10-24 15:38:04 +00:00
contrib Skip RAW kstat sysctls by default 2020-10-24 16:25:52 +00:00
crypto Add a new CCP device ID found on my Ryzen 5 3600XT. 2020-10-22 17:46:55 +00:00
ddb
dev Introduce support of SCSI Command Priority. 2020-10-25 19:34:02 +00:00
dts
fs vfs: drop spurious cache_purge on rmdir 2020-10-23 15:50:49 +00:00
gdb
geom Fix asymmetry in devstat(9) calls by GEOM. 2020-10-24 21:07:10 +00:00
gnu
i386 Remove support for intel compiler from i386 in_cksum 2020-10-24 23:21:27 +00:00
isa
kern Fix asymmetry in devstat(9) calls by GEOM. 2020-10-24 21:07:10 +00:00
kgssapi
libkern
mips
modules Factor out generic IP over infiniband, IPoIB, definitions and code 2020-10-22 09:09:53 +00:00
net More style fixes (partial revert of r366994). 2020-10-24 13:07:50 +00:00
net80211
netgraph
netinet TCP Cubic: improve reaction to (and rollback from) RTO 2020-10-24 16:11:46 +00:00
netinet6
netipsec
netpfil Add dtrace SDT probe ipfw:::rule-matched. 2020-10-21 15:01:33 +00:00
netsmb
nfs
nfsclient
nfsserver
nlm
ofed Factor out generic IP over infiniband, IPoIB, definitions and code 2020-10-22 09:09:53 +00:00
opencrypto Fix a couple of bugs for asym crypto introduced in r359374. 2020-10-19 20:04:03 +00:00
powerpc
riscv riscv: improve exception code naming 2020-10-24 20:57:13 +00:00
rpc
security
sys cdefs.h: remove intel_compiler support 2020-10-24 23:21:31 +00:00
teken
tests
tools
ufs Various new check-hash checks have been added to the UFS filesystem 2020-10-25 00:43:48 +00:00
vm Conditionally compile struct vm_phys_seg's md_first field. This field is 2020-10-23 06:24:38 +00:00
x86 Move the iommu stubs to a generic place, so they are available on all the 2020-10-23 21:27:48 +00:00
xdr
xen
Makefile