Fix infinite loop, when doing WRITE SAME on file-backed LUN.

MFC after:	3 days

(cherry picked from commit 55374f2c30a42a16311a4bb52d4c49e6ad7059c1)
Implement separate I/O dispatch method for ZVOLs in "dev" mode.

Unlike disk devices ZVOLs process all requests synchronously.  That makes
impossible sending multiple requests to them from single thread.  From the
other side ZVOLs have real d_read/d_write methods, which unlike d_strategy
can handle uio scatter/gather and have no strict I/O size limitations.

So, if ZVOL in "dev" mode is detected, use of d_read/d_write methods instead
of d_strategy allows to avoid pointless splitting of large requests into
MAXPHYS (128K) sized chunks.

MFC after:	1 week

(cherry picked from commit 56e0af05ed25b14a40f0e991e3324ad6513ea182)
Fix several cases of NULL dereference when INQUIRY sent to absent LUN.

MFC after:	3 days

(cherry picked from commit bc918439e5f02f6790ff666ab0c78e56eb810358)
Fix build with QUEUE_MACRO_DEBUG.

Submitted by:	benno@
MFC after:	3 days

(cherry picked from commit 751a73bad8ea17ebbe9b4f98a56ac218d3b31b05)
Add netmasks support to initiator-portal option.

MFC after:	2 weeks
Ticket:		#5584

(cherry picked from commit 658bca818f9425ec55ed736365877fc8df5558b0)

Conflicts:
	usr.sbin/ctld/ctl.conf.5
Fix r269183 build woth GCC.

MFC after:	2 weeks

(cherry picked from commit eb1bbc24aa79cab3fbaf34f9e196c279a47c8007)
Stop disabling the NONE cypher in SSH, so we can use it for lower-overhead
replication.
Well, if you make something no longer be NO, it must be made YES. There is
no such thing as MAYBE or YES-BY-DEFAULT in the BSD make system now.  Huh!
Revert "Well, if you make something no longer be NO, it must be made YES. There is"

This reverts commit d336fbaf8f33b33bfa27fe2349a56c17a0ab68e3.
Revert "Stop disabling the NONE cypher in SSH, so we can use it for lower-overhead"

This reverts commit d82c17b28e8575ca177748eaca035ef3fe58a6b6.
Enable the None cipher support the only way I know how for now (we can
revert this later if it turns out there's a better way that works).
That's... weird.  This commit disappeared and broke the none cipher again.
Fixing.
Merge branch 'feature/unified_freebsd' of gitserver.ixsystems.com:/git/repos/freenas-build/trueos into feature/unified_freebsd
Validate that we are not creating a mirror map that would panic the system
at a later time.
Improve multicast address locking in vlan and lagg.

Ticket:	#5637
Workaround DTrace not working when kernel is loaded with grub.

Patch did not apply cleanly but it should work.

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=185290
Add missing comparisons to make list IDs in EXTENDED COPY per-initiator,
as they should be.  Wrap it into a function to not duplicate the code.

MFC after:	3 days

(cherry picked from commit 621e857f016314f37561a84bc858e457faec445e)
Fix some bugs in RECEIVE COPY STATUS data.

MFC after:	3 days

(cherry picked from commit 4fc98f231b1b8ba5ab1e924eaf5e8efa413b8594)
Plug EXTENDED COPY request data memory leak.

MFC after:	3 days

(cherry picked from commit 08754442644626ea6b6404172789ee3111033708)
MFC r258294:
Fix ZFS deadlock when sending a snapshot which is mounted.

Approved by:	re (glebius)
Sponsored by:	Multiplay