]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/log
FreeBSD/stable/10.git
10 years agoMFC r263445 and r265385. Note that the change to ObsoleteFiles.inc in
asomers [Wed, 7 May 2014 18:49:25 +0000 (18:49 +0000)]
MFC r263445 and r265385.  Note that the change to ObsoleteFiles.inc in
r265385 does not need to be MFCed, because the obsolete files in question
were never MFCed to any stable branch.

r265385
Remove the ifconfig test added in rev 263445.  After discussion with
melifaro, we agreed that ifconfig's behavior was not a bug.  The main
motivation for bin/187551 was to partially resolve kern/187549, but we
resolved kern/187549 in a different way instead.

ObsoleteFiles.inc
etc/mtree/BSD.tests.dist
sbin/ifconfig/tests/fibs_test.sh
sbin/ifconfig/tests/Makefile
sbin/ifconfig/Makefile
        Remove /usr/tests/sbin/ifconfig

r263445
Add several ATF tests that deal with multiple fibs.  They're described in
several different PRs, but the tests share some common code, so I'm
committing them together.

sbin/ifconfig/tests
sbin/ifconfig/tests/fibs_test.sh
sbin/ifconfig/tests/Makefile
sbin/ifconfig/Makefile
        Add fibs_test.sh, which regresses bin/187551

tests/sys/netinet
tests/sys/netinet/fibs_test.sh
tests/sys/netinet/udp_dontroute.c
tests/sys/netinet/Makefile
tests/sys/Makefile
        Add fibs_test.sh, which regresses kern/167947, kern/187552
        kern/187549, kern/187550, and kern/187553

etc/mtree/BSD.tests.dist
        Add newly created directories

git-svn-id: svn://svn.freebsd.org/base/stable/10@265586 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r263311:
jimharris [Wed, 7 May 2014 17:20:15 +0000 (17:20 +0000)]
MFC r263311:

nvme: Allocate all MSI resources up front so that we can fall back to
INTx if necessary.

git-svn-id: svn://svn.freebsd.org/base/stable/10@265577 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r263310:
jimharris [Wed, 7 May 2014 17:18:51 +0000 (17:18 +0000)]
MFC r263310:

nvme: Close hole where nvd(4) would not be notified of all nvme(4)
instances if modules loaded during boot.

git-svn-id: svn://svn.freebsd.org/base/stable/10@265576 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r263303:
jimharris [Wed, 7 May 2014 17:17:16 +0000 (17:17 +0000)]
MFC r263303:

Update nvme(4) and nvd(4) man pages to clarify the differences between
their respective device nodes.

git-svn-id: svn://svn.freebsd.org/base/stable/10@265575 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r263278:
jimharris [Wed, 7 May 2014 17:02:15 +0000 (17:02 +0000)]
MFC r263278:

nvme:  NVMe specification dictates 4-byte alignment for PRPs (not 8).

git-svn-id: svn://svn.freebsd.org/base/stable/10@265573 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r263277:
jimharris [Wed, 7 May 2014 17:00:39 +0000 (17:00 +0000)]
MFC r263277:

nvme: Remove the software progress marker SET_FEATURE command during
controller initialization.

The spec says OS drivers should send this command after controller
initialization completes successfully, but other NVMe OS drivers are
not sending this command.  This change will therefore reduce differences
between the FreeBSD and other OS drivers.

git-svn-id: svn://svn.freebsd.org/base/stable/10@265572 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r263276:
jimharris [Wed, 7 May 2014 16:57:33 +0000 (16:57 +0000)]
MFC r263276:

Base the max number of SG elements on MAXPHYS.

git-svn-id: svn://svn.freebsd.org/base/stable/10@265571 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r263275:
jimharris [Wed, 7 May 2014 16:56:20 +0000 (16:56 +0000)]
MFC r263275:

isci: Ensure ATA passthrough commands with RETURN_RESPONSE bit set
translate their response.

git-svn-id: svn://svn.freebsd.org/base/stable/10@265570 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260382:
jimharris [Wed, 7 May 2014 16:55:08 +0000 (16:55 +0000)]
MFC r260382:

For IDENTIFY passthrough commands to Chatham prototype controllers, copy
the spoofed identify data into the user buffer rather than issuing the
command to the controller, since Chatham IDENTIFY data is always spoofed.

While here, fix a bug in the spoofed data for Chatham submission and
completion queue entry sizes.

git-svn-id: svn://svn.freebsd.org/base/stable/10@265569 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260381:
jimharris [Wed, 7 May 2014 16:53:42 +0000 (16:53 +0000)]
MFC r260381:

For "nvmecontrol devlist", show namespace sizes in terms of MB instead of
GB to improve granularity of the reporting - especially for namespaces
that are on the order of 1 or 2 GB.

git-svn-id: svn://svn.freebsd.org/base/stable/10@265568 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258071:
jimharris [Wed, 7 May 2014 16:52:29 +0000 (16:52 +0000)]
MFC r258071:

Check for special status code from FIRMWARE_ACTIVATE command
signifying that a reboot is required to complete activation
of the requested firmware image.

git-svn-id: svn://svn.freebsd.org/base/stable/10@265567 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoDocument r265388, addition of mpr(4).
gjb [Wed, 7 May 2014 12:48:18 +0000 (12:48 +0000)]
Document r265388, addition of mpr(4).

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@265545 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC: r265248
marius [Wed, 7 May 2014 09:55:47 +0000 (09:55 +0000)]
MFC: r265248

Allow GEOM_VINUM to be statically compiled into the kernel.

Submitted by: gleb

git-svn-id: svn://svn.freebsd.org/base/stable/10@265536 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r264573+264608+264609:
delphij [Wed, 7 May 2014 08:06:54 +0000 (08:06 +0000)]
MFC r264573+264608+264609:

Sync with OpenBSD.

git-svn-id: svn://svn.freebsd.org/base/stable/10@265533 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r264405:
trasz [Wed, 7 May 2014 08:04:41 +0000 (08:04 +0000)]
MFC r264405:

Fix periph listing when IOCTL buffer border hits result for wanted bus.

git-svn-id: svn://svn.freebsd.org/base/stable/10@265532 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r264355 by mav@:
trasz [Wed, 7 May 2014 08:03:30 +0000 (08:03 +0000)]
MFC r264355 by mav@:

Remove unused val argument value from SYSCTL_INT() calls.

git-svn-id: svn://svn.freebsd.org/base/stable/10@265531 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r264877:
trasz [Wed, 7 May 2014 08:00:59 +0000 (08:00 +0000)]
MFC r264877:

Style fixes.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@265530 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r264876:
trasz [Wed, 7 May 2014 07:59:44 +0000 (07:59 +0000)]
MFC r264876:

Grammar fix.

git-svn-id: svn://svn.freebsd.org/base/stable/10@265529 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r264604:
trasz [Wed, 7 May 2014 07:57:53 +0000 (07:57 +0000)]
MFC r264604:

Remove redundant code.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@265528 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r264549:
trasz [Wed, 7 May 2014 07:56:36 +0000 (07:56 +0000)]
MFC r264549:

Make it possible for the initiator side to operate in both proxy
and normal mode; this makes it possible to compile with the former
by default, but use it only when neccessary.  That's especially
important for the userland part.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@265526 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r264545:
trasz [Wed, 7 May 2014 07:54:47 +0000 (07:54 +0000)]
MFC r264545:

Fix typo.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@265525 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r264348 by mav@:
trasz [Wed, 7 May 2014 07:53:24 +0000 (07:53 +0000)]
MFC r264348 by mav@:

Improve use of socket buffer upcalls.

Use soreadable()/sowriteable() in socket upcalls to avoid extra wakeups
until we have enough data to read or space to write.

Increase partial receive len from 1K to 128K to not wake up on every
received packet.

This significantly reduces locks congestion and CPU usage and improves
throughput for large I/Os on NICs without TSO and LRO.

MFC r264552 by mav@:

Close the race in older code, that caused connection stuck after r264348.

Sponsored by: iXsystems, Inc.

git-svn-id: svn://svn.freebsd.org/base/stable/10@265524 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r264544:
trasz [Wed, 7 May 2014 07:48:32 +0000 (07:48 +0000)]
MFC r264544:

Add kern.iscsi.fail_on_disconnection; this is required for gmultipath
to work.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@265523 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r264538:
trasz [Wed, 7 May 2014 07:47:29 +0000 (07:47 +0000)]
MFC r264538:

Remove useless debug.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@265522 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r264537:
trasz [Wed, 7 May 2014 07:46:23 +0000 (07:46 +0000)]
MFC r264537:

Be more strict with locking for is_waiting_for_iscsid variable.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@265521 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r264536:
trasz [Wed, 7 May 2014 07:45:22 +0000 (07:45 +0000)]
MFC r264536:

Get rid of ISCSIDCLOSE; it wasn't used and is redundant anyway,
because of ISCSIDFAIL.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@265520 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r264535:
trasz [Wed, 7 May 2014 07:44:17 +0000 (07:44 +0000)]
MFC r264535:

English.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@265519 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r264534:
trasz [Wed, 7 May 2014 07:43:13 +0000 (07:43 +0000)]
MFC r264534:

If we fail to create LUN, try again on next configuration reload.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@265518 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r264533:
trasz [Wed, 7 May 2014 07:41:58 +0000 (07:41 +0000)]
MFC r264533:

Use consistent punctuation.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@265516 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r264532:
trasz [Wed, 7 May 2014 07:40:45 +0000 (07:40 +0000)]
MFC r264532:

Use proper terminology in debug messages.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@265515 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r264531:
trasz [Wed, 7 May 2014 07:39:16 +0000 (07:39 +0000)]
MFC r264531:

Constify.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@265514 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r264530:
trasz [Wed, 7 May 2014 07:37:55 +0000 (07:37 +0000)]
MFC r264530:

Properly pass the initiator address when running in proxy mode.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@265513 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r264529:
trasz [Wed, 7 May 2014 07:36:46 +0000 (07:36 +0000)]
MFC r264529:

Use socket address from accept(2) instead of retrieving it via
getpeername(2).

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@265512 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r264528:
trasz [Wed, 7 May 2014 07:35:21 +0000 (07:35 +0000)]
MFC r264528:

Rework the way we enable CTL iSCSI port.  Previously conf_apply()
needed it to be already enabled, because listening in proxy mode
requires it; however, it's conf_apply() that opens pidfiles,
so it resulted in port being enabled before pidfile was opened.
This was not so bad, but it was also disabled when pidfile couldn't
be opened due to ctld already running; this means that starting
second ctld instance screwed up the first.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@265511 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r264527:
trasz [Wed, 7 May 2014 07:33:56 +0000 (07:33 +0000)]
MFC r264527:

Make it possible to interrupt login when running in proxy mode.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@265510 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r264526:
trasz [Wed, 7 May 2014 07:32:45 +0000 (07:32 +0000)]
MFC r264526:

Properly identify target portal when running in proxy mode.  While here,
remove CTL_ISCSI_CLOSE, it wasn't used or implemented anyway.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@265509 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r264525:
trasz [Wed, 7 May 2014 07:31:25 +0000 (07:31 +0000)]
MFC r264525:

Add some stuff to make it easier to figure out for the system administrator
whether the ICL_KERNEL_PROXY stuff got compiled in correctly.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@265508 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r264524:
trasz [Wed, 7 May 2014 07:29:39 +0000 (07:29 +0000)]
MFC r264524:

Make it possible for the iSCSI target side to operate in both normal
and ICL_KERNEL_PROXY mode, and fix some bit rot so the latter actually
works again.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@265507 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r264500:
trasz [Wed, 7 May 2014 07:28:23 +0000 (07:28 +0000)]
MFC r264500:

Stop treating LUN 0 as mandatory.  There is no reason to do that.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@265506 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r263740:
trasz [Wed, 7 May 2014 07:25:47 +0000 (07:25 +0000)]
MFC r263740:

Use a less unusual syntax in debug printfs.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@265505 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r264264 by mav@:
trasz [Wed, 7 May 2014 07:20:02 +0000 (07:20 +0000)]
MFC r264264 by mav@:

Wakeup only one thread of added in r263978i at a time.

This slightly reduces lock congestion between threads.

git-svn-id: svn://svn.freebsd.org/base/stable/10@265504 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r264163:
trasz [Wed, 7 May 2014 07:18:38 +0000 (07:18 +0000)]
MFC r264163:

Remove hack to pass STAILQ to a function and do it properly instead.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@265503 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r264122:
trasz [Wed, 7 May 2014 07:17:11 +0000 (07:17 +0000)]
MFC r264122:

Rework the iSCSI PDU transmit code to avoid lock contention and coalesce
PDUs before sending.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@265502 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r264110:
trasz [Wed, 7 May 2014 06:46:59 +0000 (06:46 +0000)]
MFC r264110:

All the iSCSI sysctls are also tunables; advertise that.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@265501 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r264109:
trasz [Wed, 7 May 2014 06:44:19 +0000 (06:44 +0000)]
MFC r264109:

We don't need TAILQ for iSCSI PDUs; STAILQ is enough.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@265500 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r264026:
trasz [Wed, 7 May 2014 06:41:33 +0000 (06:41 +0000)]
MFC r264026:

Enable a KASSERT.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@265499 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r264025:
trasz [Wed, 7 May 2014 06:38:19 +0000 (06:38 +0000)]
MFC r264025:

Get rid of the "autoscaling", instead just set socket buffer sizes
in the usual way.  The only thing the old code did was making things
less predictable.

MFC r264058:

Fix build, broken by r264025.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@265498 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r264024:
trasz [Wed, 7 May 2014 06:34:03 +0000 (06:34 +0000)]
MFC r264024:

Use atomic ops instead of mutexes where appropriate.

Submitted by: mav@
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@265497 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r264023:
trasz [Wed, 7 May 2014 06:31:45 +0000 (06:31 +0000)]
MFC r264023:

Instead of "icltx" and "iclrx", use thread names with prefix from upper
layer, so that one can see which side of the stack the threads are for.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@265496 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r264022:
trasz [Wed, 7 May 2014 06:29:01 +0000 (06:29 +0000)]
MFC r264022:

Get rid of ICL lock; use upper-layer (initiator or target) lock instead.
This avoids extra locking in icl_pdu_queue(); the upper layer needs to call
it while holding its own lock anyway, to avoid sending PDUs out of order.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@265495 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r264020:
trasz [Wed, 7 May 2014 06:26:34 +0000 (06:26 +0000)]
MFC r264020:

Remove the homegrown ctl_be_block_io allocator, replacing it with UMA.
There is no performance difference.

Reviewed by: mav@
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@265494 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r263979:
trasz [Wed, 7 May 2014 06:24:46 +0000 (06:24 +0000)]
MFC r263979:

Hide CTL messages about SCSI error responses.  Too many users take
them for actual target errors.  They can be enabled back by setting
kern.cam.ctl.verbose=1, or booting with bootverbose.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@265493 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r263978:
trasz [Wed, 7 May 2014 06:22:51 +0000 (06:22 +0000)]
MFC r263978:

Make it possible to have multiple CTL worker threads.  Leave the default
of 1 for now.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@265492 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r263811:
trasz [Wed, 7 May 2014 06:20:35 +0000 (06:20 +0000)]
MFC r263811:

Remove ctl_mem_pool.{c,h}.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@265491 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r263810:
trasz [Wed, 7 May 2014 06:18:03 +0000 (06:18 +0000)]
MFC r263810:

Rework cfiscsi_datamove_in() to obey expected data transfer length
received from the initiator.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@265490 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r263745:
trasz [Wed, 7 May 2014 06:14:41 +0000 (06:14 +0000)]
MFC r263745:

Target Transfer Tag is opaque; no need to htonl(3) it.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@265489 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r263743:
trasz [Wed, 7 May 2014 06:12:59 +0000 (06:12 +0000)]
MFC r263743:

Move the ic_outstanding_count under #ifdef DIAGNOSTIC.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@265488 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r263742:
trasz [Wed, 7 May 2014 06:10:55 +0000 (06:10 +0000)]
MFC r263742:

Fix harmless warning after reconnecting a session and not doing anything
with it.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@265487 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r262338
alc [Wed, 7 May 2014 00:32:49 +0000 (00:32 +0000)]
MFC r262338
  When the kernel is running in a virtual machine, it cannot rely upon the
  processor family to determine if the workaround for AMD Family 10h Erratum
  383 should be enabled.  To enable virtual machine migration among a
  heterogeneous collection of physical machines, the hypervisor may have
  been configured to report an older processor family with a reduced feature
  set.  Effectively, the reported processor family and its features are like
  a "least common denominator" for the collection of machines.

  Therefore, when the kernel is running in a virtual machine, instead of
  relying upon the processor family, we now test for features that prove
  that the underlying processor is not affected by the erratum.  (The
  features that we test for are unlikely to ever be emulated in software
  on an affected physical processor.)

PR: 186061

git-svn-id: svn://svn.freebsd.org/base/stable/10@265476 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r261908 by ian: Fix a typo, C_ALSOLUTE -> C_ABSOLUTE.
emaste [Tue, 6 May 2014 23:28:48 +0000 (23:28 +0000)]
MFC r261908 by ian: Fix a typo, C_ALSOLUTE -> C_ABSOLUTE.

git-svn-id: svn://svn.freebsd.org/base/stable/10@265475 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC: r264739
rmacklem [Tue, 6 May 2014 22:04:50 +0000 (22:04 +0000)]
MFC: r264739
Add {} braces so that the code conforms to the indentation.
Fortunately, I don't think doing the assignment of cap->tsomax
unconditionally causes any problem.

git-svn-id: svn://svn.freebsd.org/base/stable/10@265471 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC: r264738
rmacklem [Tue, 6 May 2014 21:59:48 +0000 (21:59 +0000)]
MFC: r264738
For an NFSv4 mount with the "nocto" option, don't get the
up to date file attributes upon close. This reduces the
Getattr RPC count by about 65% for software builds.

git-svn-id: svn://svn.freebsd.org/base/stable/10@265470 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC: r264705, r264749
rmacklem [Tue, 6 May 2014 21:54:52 +0000 (21:54 +0000)]
MFC: r264705, r264749
Modify the NFSv4 client create/mkdir RPC so that it acquires
post-create/mkdir directory attributes. This allows the RPC to
name cache the newly created directory and reduces the lookup RPC
count for applications creating a lot of directories.

git-svn-id: svn://svn.freebsd.org/base/stable/10@265469 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC: r264681
rmacklem [Tue, 6 May 2014 21:47:43 +0000 (21:47 +0000)]
MFC: r264681
Modify the NFSv4 client open/create RPC so that it acquires
post-open/create directory attributes. This allows the RPC to
name cache the newly created file and reduces the lookup RPC
count by about 10% for software builds.

git-svn-id: svn://svn.freebsd.org/base/stable/10@265466 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r265097:
brooks [Tue, 6 May 2014 14:38:03 +0000 (14:38 +0000)]
MFC r265097:

Merge from CheriBSD:

commit 1d1b908107255ffdff4d17f015d8f057d73cc6cb
Author: Brooks Davis <brooks@one-eyed-alien.net>
Date:   Fri Mar 28 16:24:45 2014 +0000

    Add a long needed seatbelt.

    Exit with an error when make is called without a target at the top level
    rather than poluting the source tree and causing use confusion in future
    builds.

commit a9d9aa341b2f4308a227ab460ba85f1f287ad028
Author: Brooks Davis <brooks@one-eyed-alien.net>
Date:   Tue Apr 29 16:06:12 2014 +0000

    Simplify seatbelt added in 1d1b908 based in feedback.

    Discussed with:     imp@FreeBSD.org

Reviewed by: imp
Sponsored by: DARPA, AFRL

git-svn-id: svn://svn.freebsd.org/base/stable/10@265449 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r265102:
kib [Tue, 6 May 2014 12:31:25 +0000 (12:31 +0000)]
MFC r265102:
Fix two cases of recursive acquisitions of the vm object lock, only
possible in rare failure situations.

git-svn-id: svn://svn.freebsd.org/base/stable/10@265437 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r265100:
kib [Tue, 6 May 2014 12:20:07 +0000 (12:20 +0000)]
MFC r265100:
Fix the comparision for the end of range in vm_phys_fictitious_reg_range().

git-svn-id: svn://svn.freebsd.org/base/stable/10@265435 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC: r264672
rmacklem [Tue, 6 May 2014 12:15:05 +0000 (12:15 +0000)]
MFC: r264672
Modify the Lookup RPC for NFSv4 so that it acquires directory
attributes. This allows the client to cache directory names
when they are looked up, reducing the Lookup RPC count by
about 40% for software builds.

git-svn-id: svn://svn.freebsd.org/base/stable/10@265434 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r264610:
mav [Tue, 6 May 2014 09:54:24 +0000 (09:54 +0000)]
MFC r264610:
Correct AMD chipsets identification.

git-svn-id: svn://svn.freebsd.org/base/stable/10@265430 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260830:
mav [Tue, 6 May 2014 09:51:15 +0000 (09:51 +0000)]
MFC r260830:
Add ID for one more ASMedia AHCI-compatible controller.

git-svn-id: svn://svn.freebsd.org/base/stable/10@265428 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r259382:
np [Tue, 6 May 2014 07:21:50 +0000 (07:21 +0000)]
MFC r259382:

Read card capabilities after firmware initialization, instead of setting
them up as part of firmware initialization (which the driver gets to do
only if it's the master driver).

Read the range of tids available for the ETHOFLD functionality if it's
enabled.

New is_ftid() and is_etid() functions to test whether a tid falls within
the range of filter tids or ETHOFLD tids respectively.

git-svn-id: svn://svn.freebsd.org/base/stable/10@265426 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r263317, r263412, and r263451.
np [Tue, 6 May 2014 06:49:39 +0000 (06:49 +0000)]
MFC r263317, r263412, and r263451.

r263317:
cxgbe(4): significant rx rework.

- More flexible cluster size selection, including the ability to fall
  back to a safe cluster size (PAGE_SIZE from zone_jumbop by default) in
  case an allocation of a larger size fails.
- A single get_fl_payload() function that assembles the payload into an
  mbuf chain for any kind of freelist.  This replaces two variants: one
  for freelists with buffer packing enabled and another for those without.
- Buffer packing with any sized cluster.  It was limited to 4K clusters
  only before this change.
- Enable buffer packing for TOE rx queues as well.
- Statistics and tunables to go with all these changes.  The driver's
  man page will be updated separately.

r263412:
cxgbe(4): if_iqdrops statistic should include tunnel congestion drops.

r263451:
cxgbe(4): man page updates.

git-svn-id: svn://svn.freebsd.org/base/stable/10@265425 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260210 (by adrian@):
np [Tue, 6 May 2014 04:22:06 +0000 (04:22 +0000)]
MFC r260210 (by adrian@):
Add an option to enable or disable the small RX packet copying that
is done to improve performance of small frames.

When doing RX packing, the RX copying isn't necessarily required.

git-svn-id: svn://svn.freebsd.org/base/stable/10@265421 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r265287:
bryanv [Tue, 6 May 2014 03:38:04 +0000 (03:38 +0000)]
MFC r265287:

  Fix SYNOPSIS ("device if_vtnet" -> "device vtnet").

git-svn-id: svn://svn.freebsd.org/base/stable/10@265417 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r261804:
np [Tue, 6 May 2014 03:05:14 +0000 (03:05 +0000)]
MFC r261804:
Provide additional information in some panic strings.

git-svn-id: svn://svn.freebsd.org/base/stable/10@265416 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r261534:
np [Tue, 6 May 2014 03:02:02 +0000 (03:02 +0000)]
MFC r261534:
cxgbetool: Display the congestion channel map in hex.

git-svn-id: svn://svn.freebsd.org/base/stable/10@265415 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC: r264630
rmacklem [Tue, 6 May 2014 02:54:59 +0000 (02:54 +0000)]
MFC: r264630
For NFS mounts using rsize,wsize=65536 over TSO enabled
network interfaces limited to 32 transmit segments, there
are two known issues.
The more serious one is that for an I/O of slightly less than 64K,
the net device driver prepends an ethernet header, resulting in a
TSO segment slightly larger than 64K. Since m_defrag() copies this
into 33 mbuf clusters, the transmit fails with EFBIG.
A tester indicated observing a similar failure using iSCSI.

The second less critical problem is that the network
device driver must copy the mbuf chain via m_defrag()
(m_collapse() is not sufficient), resulting in measurable overhead.

This patch reduces the default size of if_hw_tsomax
slightly, so that the first issue is avoided.
Fixing the second issue will require a way for the
network device driver to inform tcp_output() that it
is limited to 32 transmit segments.

git-svn-id: svn://svn.freebsd.org/base/stable/10@265414 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC: r264517
rmacklem [Tue, 6 May 2014 02:49:31 +0000 (02:49 +0000)]
MFC: r264517
Vlan did not set the value of if_hw_tsomax, so when vlan
was stacked on top of a network interface that set if_hw_tsomax,
tcp_output() would see the default value instead of the value
set by the network interface. This patch modifies vlan so that
it sets if_hw_tsomax to the value of the parent interface.

git-svn-id: svn://svn.freebsd.org/base/stable/10@265413 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC: r264469, r264498
rmacklem [Tue, 6 May 2014 02:44:01 +0000 (02:44 +0000)]
MFC: r264469, r264498
Lagg did not set the value of if_hw_tsomax, so when lagg
was stacked on top of network interfaces that set if_hw_tsomax,
tcp_output() would see the default value instead of the value
set by the network interface(s). This patch modifies lagg so that
it sets if_hw_tsomax to the minimum of the value(s) for the
underlying network interfaces.

git-svn-id: svn://svn.freebsd.org/base/stable/10@265412 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r261533, r261536, r261537, and r263457.
np [Tue, 6 May 2014 02:22:52 +0000 (02:22 +0000)]
MFC r261533, r261536, r261537, and r263457.

r261533:
cxgbe(4): Use the port's tx channel to identify it to t4_clr_port_stats.

r261536:
cxgbe(4): The T5 allows for a different freelist starvation threshold
for queues with buffer packing.  Use the correct value to calculate a
freelist's low water mark.

r261537:
cxgbe(4): Use the rx channel map (instead of the tx channel map) as the
congestion channel map.

r263457:
cxgbe(4):  Recognize the "spider" configuration where a T5 card's 40G
QSFP port is presented as 4 distinct 10G SFP+ ports to the driver.

git-svn-id: svn://svn.freebsd.org/base/stable/10@265410 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC: r265242
brueffer [Mon, 5 May 2014 21:34:10 +0000 (21:34 +0000)]
MFC: r265242

Generate hardware notes for mpr(4) and bump copyright for 2014.

git-svn-id: svn://svn.freebsd.org/base/stable/10@265394 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC the mpr(4) driver for LSI's 12Gb SAS cards.
ken [Mon, 5 May 2014 20:35:35 +0000 (20:35 +0000)]
MFC the mpr(4) driver for LSI's 12Gb SAS cards.

This includes r265236, r265237, r265241 and r265261:

  ------------------------------------------------------------------------
  r265236 | ken | 2014-05-02 14:25:09 -0600 (Fri, 02 May 2014) | 51 lines

  Bring in the mpr(4) driver for LSI's MPT3 12Gb SAS controllers.

  This is derived from the mps(4) driver, but it supports only the 12Gb
  IT and IR hardware including the SAS 3004, SAS 3008 and SAS 3108.

  Some notes about this driver:
   o The 12Gb hardware can do "FastPath" I/O, and that capability is included in
     this driver.

   o WarpDrive functionality has been removed, since it isn't supported in
     the 12Gb driver interface.

   o The Scatter/Gather list handling code is significantly different between
     the 6Gb and 12Gb hardware.  The 12Gb boards support IEEE Scatter/Gather
     lists.

  Thanks to LSI for developing and testing this driver for FreeBSD.

  share/man/man4/mpr.4:
   mpr(4) man page.

  sys/dev/mpr/*:
   mpr(4) driver files.

  sys/modules/Makefile,
  sys/modules/mpr/Makefile:
   Add a module Makefile for the mpr(4) driver.

  sys/conf/files:
   Add the mpr(4) driver.

  sys/amd64/conf/GENERIC,
  sys/i386/conf/GENERIC,
  sys/mips/conf/OCTEON1,
  sys/sparc64/conf/GENERIC:
   Add the mpr(4) driver to all config files that currently
   have the mps(4) driver.

  sys/ia64/conf/GENERIC:
   Add the mps(4) and mpr(4) drivers to the ia64 GENERIC
   config file.

  sys/i386/conf/XEN:
   Exclude the mpr module from building here.

  Submitted by: Steve McConnell <Stephen.McConnell@lsi.com>
  Tested by: Chris Reeves <chrisr@spectralogic.com>
  Sponsored by: LSI, Spectra Logic
  Relnotes: LSI 12Gb SAS driver mpr(4) added

  ------------------------------------------------------------------------
  ------------------------------------------------------------------------
  r265237 | ken | 2014-05-02 14:36:20 -0600 (Fri, 02 May 2014) | 8 lines

  Add the mpr(4) man page to the man4 Makefile.

  This should have been included in r265236.

  Submitted by: Steve McConnell <Stephen.McConnell@lsi.com>
  MFC after: 3 days
  Sponsored by: LSI, Spectra Logic

  ------------------------------------------------------------------------
  ------------------------------------------------------------------------
  r265241 | brueffer | 2014-05-02 15:14:28 -0600 (Fri, 02 May 2014) | 2 lines

  Use our standard SYNOPSIS wording; perform some cleanup while here.

  ------------------------------------------------------------------------
  ------------------------------------------------------------------------
  r265261 | brueffer | 2014-05-03 05:15:28 -0600 (Sat, 03 May 2014) | 2 lines

  Add a missing colon.

  ------------------------------------------------------------------------

Submitted by: Steve McConnell <Stephen.McConnell@lsi.com>
Tested by: Chris Reeves <chrisr@spectralogic.com>
Sponsored by: LSI, Spectra Logic
Relnotes: LSI 12Gb SAS driver mpr(4) added

git-svn-id: svn://svn.freebsd.org/base/stable/10@265388 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r264617:
ghelmer [Mon, 5 May 2014 16:52:38 +0000 (16:52 +0000)]
MFC r264617:

Fix releasing the lock in the parent atrun process after the queue
directory has been processed. Otherwise, a long-running child process
caused other atrun invocations to stall unnecessarily.

Submitted by: J.R. Oldroyd  jr at opal.com

git-svn-id: svn://svn.freebsd.org/base/stable/10@265368 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r265095, r265167;
pfg [Mon, 5 May 2014 14:50:53 +0000 (14:50 +0000)]
MFC r265095, r265167;

citrus: Avoid invalid code points.

The UTF-8 decoder should not accept byte sequences which decode to
unicode code positions U+D800 to U+DFFF (UTF-16 surrogates).[1]

Contrary to the original OpenBSD patch, we do pass U+FFFE and U+FFFF,
both values are valid "non-characters" [2] and must be mapped through
UTFs.

[1] http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8
[2] http://www.unicode.org/faq/private_use.html

Reported by: Stefan Sperling [1]
Thanks to: jilles [2]
Obtained from: OpenBSD

git-svn-id: svn://svn.freebsd.org/base/stable/10@265361 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r262661:
markj [Mon, 5 May 2014 03:15:53 +0000 (03:15 +0000)]
MFC r262661:
Fix emulation of call and jmp instructions on i386 and for 32-bit processes
on amd64.

git-svn-id: svn://svn.freebsd.org/base/stable/10@265346 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r264317, r264864:
kevlo [Mon, 5 May 2014 01:50:01 +0000 (01:50 +0000)]
MFC r264317, r264864:

- Add the Asus USB-N10 NANO [1]
- Fix panic by adding mtx_assert() to urtwn_init_locked() and
  urtwn_stop_locked() [2]

Tested by: Kuan-Chung Chiu <buganini@gmail.com> [1]
Anthony Jenkins <scoobi_doo at yahoo dot com> [2]

git-svn-id: svn://svn.freebsd.org/base/stable/10@265345 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMRC r265230:
gjb [Mon, 5 May 2014 01:29:20 +0000 (01:29 +0000)]
MRC r265230:
  Clarify that MAKEOBJDIRPREFIX and MAKEOBJDIR are not
  honored as make(1) arguments.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@265342 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r265003:
kib [Sun, 4 May 2014 07:28:26 +0000 (07:28 +0000)]
MFC r265003:
Fix order of libthr and libc in the global dso list for sshd.

git-svn-id: svn://svn.freebsd.org/base/stable/10@265313 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r265004:
kib [Sun, 4 May 2014 07:22:51 +0000 (07:22 +0000)]
MFC r265004:
Same as it was done in r263878 for invlrng_handler(), fix order of
checks for special pcid values in invlpg_pcid_handler().

git-svn-id: svn://svn.freebsd.org/base/stable/10@265312 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r265002:
kib [Sun, 4 May 2014 07:19:37 +0000 (07:19 +0000)]
MFC r265002:
Fix vm_fault_copy_entry() operation on upgrade; allow it to find the
pages in the shadowed objects.

git-svn-id: svn://svn.freebsd.org/base/stable/10@265311 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r264933:
gjb [Sun, 4 May 2014 00:13:07 +0000 (00:13 +0000)]
MFC r264933:
  Fix indentation in make-memstick.sh.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@265296 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r264907, r264908, r264922:
gjb [Sun, 4 May 2014 00:09:07 +0000 (00:09 +0000)]
MFC r264907, r264908, r264922:
  Record mergeinfo for r264907 and r264908, reverted
  in r264922.

This commit is for merge tracking purposes only.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@265293 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r261150, r261151, r261164, r261166, r261167, r261168, r261394, r261395:
bryanv [Sat, 3 May 2014 19:40:41 +0000 (19:40 +0000)]
MFC r261150, r261151, r261164, r261166, r261167, r261168, r261394, r261395:

 - Read and write the MAC address in the config space byte by byte
 - Also include the mbuf's csum_flags in an assert message
 - Remove stray space
 - Move duplicated transmit start code into a single function
 - Avoid queue unlock followed by relock when the enable interrupt race
   is lost
 - Check for a full virtqueue in the multiqueue transmit path
 - Do not place the sglist used for Rx/Tx on the stack
 - Use m_defrag() instead of m_collapse() to compact a long mbuf chain

git-svn-id: svn://svn.freebsd.org/base/stable/10@265286 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r261147:
bryanv [Sat, 3 May 2014 17:33:30 +0000 (17:33 +0000)]
MFC r261147:
    Remove spaces before tabs in the function prototype list
MFC r261149:
    Read each field of the configuration individually

git-svn-id: svn://svn.freebsd.org/base/stable/10@265281 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r262543:
markj [Sat, 3 May 2014 16:24:18 +0000 (16:24 +0000)]
MFC r262543:
Fix the struct reg mappings for i386 and amd64, which differ between illumos
and FreeBSD.

git-svn-id: svn://svn.freebsd.org/base/stable/10@265277 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r262542:
markj [Sat, 3 May 2014 16:08:52 +0000 (16:08 +0000)]
MFC r262542:
Move some files that are identical on i386 and amd64 to an x86 subdirectory
rather than keeping duplicate copies.

git-svn-id: svn://svn.freebsd.org/base/stable/10@265273 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agodate(1): Add "-R" flag to use RFC 2822 date and time output format [MFC]
dumbbell [Sat, 3 May 2014 13:19:11 +0000 (13:19 +0000)]
date(1): Add "-R" flag to use RFC 2822 date and time output format [MFC]

As stated in the man page, this is equivalent to use "%a, %d %b %Y %T %z"
as the output format while LC_TIME is set to the "C" locale.

This is compatible with date(1) from the GNU core utilities.

This is an MFC of r264968 and r264970.

git-svn-id: svn://svn.freebsd.org/base/stable/10@265265 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r264494:
ae [Fri, 2 May 2014 21:30:59 +0000 (21:30 +0000)]
MFC r264494:
  Use SMB_QUERY_FS_SIZE_INFO request to populate statfs structure.
  When server doesn't support this request, try to use SMB_INFO_ALLOCATION.
  And use SMB_COM_QUERY_INFORMATION_DISK request as fallback.

MFC r264600:
  Remove redundant unlock.

  This code was removed from the opensolaris and darwin's
  netsmb implementations, in DfBSD it also has been disabled.

git-svn-id: svn://svn.freebsd.org/base/stable/10@265243 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r264040:
pfg [Fri, 2 May 2014 20:12:31 +0000 (20:12 +0000)]
MFC r264040:

4248 dtrace(1M) should never create DOF with empty probes section
4249 Only probes from the first DTrace object file will be included

Illumos Revision: 4a20ab41aadcb81c53e72fc65886e964e9add59

Reference:
https://www.illumos.org/issues/4248
https://www.illumos.org/issues/4249

Obtained from: Illumos

git-svn-id: svn://svn.freebsd.org/base/stable/10@265234 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r264963:
trociny [Fri, 2 May 2014 14:44:17 +0000 (14:44 +0000)]
MFC r264963:

Define startup order the same way as it is in dummynet.

git-svn-id: svn://svn.freebsd.org/base/stable/10@265227 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f