Use the appropriate IPv6 hashtype defines when looking up the PCBGROUP

Reviewed by:	adrian@


git-svn-id: svn+ssh://svn.freebsd.org/base/head@268349 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Use common vt_fb parts in ofwfb as far as we are able without sacrificing
performance.

MFC after:	2 weeks


git-svn-id: svn+ssh://svn.freebsd.org/base/head@268350 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Remove ia64.

This includes:
o   All directories named *ia64*
o   All files named *ia64*
o   All ia64-specific code guarded by __ia64__
o   All ia64-specific makefile logic
o   Mention of ia64 in comments and documentation

This excludes:
o   Everything under contrib/
o   Everything under crypto/
o   sys/xen/interface
o   sys/sys/elf_common.h

Discussed at: BSDcan


git-svn-id: svn+ssh://svn.freebsd.org/base/head@268351 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Implement ABORT TASK SET and I_T NEXUS RESET task management functions.

Use the last one to terminate active commands on iSCSI session termination.
Previous code was aborting only commands doing some data moves.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@268353 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Improve support for Intel Lynx Point USB 3.0 controllers by masking
the port routing bits like done in Linux.

MFC after:	1 week
Tested by:	Tur-Wei Chan <twchan@singnet.com.sg>


git-svn-id: svn+ssh://svn.freebsd.org/base/head@268354 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
When new connection comes in, check whether we already have session from
the same intiator (Name+ISID).  If so -- terminate the old session and let
the new one take its place, as required by iSCSI RFC.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@268356 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Correction to r268356: collide only sessions to the same target.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@268357 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Optim and Fix for mge driver:
- add missing rcvif in mbuf
- add missing ipacket stat
- remove uncessary mbuf copy on output path
- fix deadlock of the TX engine in case of error

Obtained from:	NETASQ
MFC after:	2 weeks


git-svn-id: svn+ssh://svn.freebsd.org/base/head@268359 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix bugs for PERSISTENT RESERVE OUT bits in r268096.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@268361 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Teach ctl_add_initiator() to dynamically allocate IIDs from pool.

If port passed negative IID value, the function will try to allocate IID
from the pool of unused, based on passed wwpn or name arguments.  It does
all its best to make IID unique and persistent across reconnects.

This makes persistent reservation properly work for iSCSI.  Previously,
in case of reconnects, reservation could be unexpectedly lost, or even
migrate between intiators.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@268362 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add support for READ FULL STATUS action of PERSISTENT RESERVE IN command.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@268363 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix "use after free" on port creation error in r268291.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@268364 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Don't call crdup nor uifind under vnode lock.

A locked vnode can get into the way of satisyfing malloc with M_WATOK.

This is a fixup to r268087.

Suggested by:	kib
MFC after:	1 week


git-svn-id: svn+ssh://svn.freebsd.org/base/head@268365 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Regenerate src.conf.5, which was completely busted by r268351.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@268368 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Document C_HARDCLOCK flag.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@268369 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Make XPT_GET_TRAN_SETTINGS to report CAM that command queueing is enabled,
but make couple changes to handle non-queued commands too, if happen.

MFC after:	2 weeks


git-svn-id: svn+ssh://svn.freebsd.org/base/head@268370 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Declaration whitespace changes for style(9).

MFC after:	1 week


git-svn-id: svn+ssh://svn.freebsd.org/base/head@268373 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Naughty NANDFS was using hidden unused flag, hiding the fact that the
flag was used and wasn't really available. Change the name without
fixing any laying issues that might be present in NANDFS' use of this
flag.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@268374 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix typo in flag name.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@268375 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
rm -rf can fail sometimes with an error from fts_read. Make it honor
fflag to ignore fts_read errors, but stop deleting from that directory
because no further progress can be made.

When building a kernel with a high -j value on a high core count
machine, during the cleanobj phase we can wind up doing multiple rm
-rf at the same time for modules that have subdirectories. This
exposed this race (sometimes) as fts_read can return an error if the
directory is removed by another rm -rf. Since the intent of the -f
flag was to ignore errors, even if this was a bug in fts_read, we
should ignore the error like we've been instructed to do.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@268376 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f