]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/log
FreeBSD/stable/10.git
9 years agoMFH (r263160): remove lukemftpd
des [Sat, 23 Aug 2014 15:07:09 +0000 (15:07 +0000)]
MFH (r263160): remove lukemftpd

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

9 years agoMFH (r268877, r268921): use -o instead of a redirect.
des [Sat, 23 Aug 2014 14:42:49 +0000 (14:42 +0000)]
MFH (r268877, r268921): use -o instead of a redirect.

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

9 years agoMFH (r268864): document local_unbound changes (forgotten in r269257)
des [Sat, 23 Aug 2014 11:46:26 +0000 (11:46 +0000)]
MFH (r268864): document local_unbound changes (forgotten in r269257)

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

9 years agoMFH (r268888): fix false negative for empty groups
des [Sat, 23 Aug 2014 11:40:40 +0000 (11:40 +0000)]
MFH (r268888): fix false negative for empty groups
PR: 109416

MFH (r268890): add support for "account" facility
PR: 115164

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

9 years agoMFH (r269115): remove useless getpwnam() call
des [Sat, 23 Aug 2014 11:34:56 +0000 (11:34 +0000)]
MFH (r269115): remove useless getpwnam() call

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

9 years agoMFH (r269074): strip patch level from release name
des [Sat, 23 Aug 2014 11:32:43 +0000 (11:32 +0000)]
MFH (r269074): strip patch level from release name

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

9 years agoMFC r270176:
mav [Sat, 23 Aug 2014 07:03:04 +0000 (07:03 +0000)]
MFC r270176:
Fix lock recursion on LUN shutdown, introduced on r269497.

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

9 years agoMFC r270144:
ngie [Sat, 23 Aug 2014 02:24:47 +0000 (02:24 +0000)]
MFC r270144:

 Add LIBCRYPT to DPADD, remove LDFLAGS from LDADD, and sort the Makefile variables

 This fixes "make checkdpadd"

 Phabric: D620
 Approved by: jmmv (mentor)
 PR: 192729

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

9 years agoMFC r270118:
ngie [Sat, 23 Aug 2014 02:20:49 +0000 (02:20 +0000)]
MFC r270118:

 Add LIBUTIL to DPADD

 This will fix "make checkdpadd"

 PR: 192759
 Approved by: rpaulo (mentor)
 Phabric: D623

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

9 years agoRemove debug output which was comitted by accident.
tuexen [Fri, 22 Aug 2014 20:36:45 +0000 (20:36 +0000)]
Remove debug output which was comitted by accident.
This is a direct commit to stable/10.

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

9 years agoDocument r262701, kernel selection menu in loader(8).
gjb [Fri, 22 Aug 2014 20:32:34 +0000 (20:32 +0000)]
Document r262701, kernel selection menu in loader(8).

Sponsored by: The FreeBSD Foundation

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

9 years agoDocument r262384, rctl_rules="" in rc.conf(5).
gjb [Fri, 22 Aug 2014 20:32:32 +0000 (20:32 +0000)]
Document r262384, rctl_rules="" in rc.conf(5).

Sponsored by: The FreeBSD Foundation

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

9 years agoDocument r262363, urndis(4) import.
gjb [Fri, 22 Aug 2014 20:32:30 +0000 (20:32 +0000)]
Document r262363, urndis(4) import.

Sponsored by: The FreeBSD Foundation

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

9 years agoSpecify the driver for notes about r259453 and r261868
gjb [Fri, 22 Aug 2014 20:32:29 +0000 (20:32 +0000)]
Specify the driver for notes about r259453 and r261868

Sponsored by: The FreeBSD Foundation

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

9 years agoDocument r262137, axge(4) addition.
gjb [Fri, 22 Aug 2014 20:32:27 +0000 (20:32 +0000)]
Document r262137, axge(4) addition.

Sponsored by: The FreeBSD Foundation

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

9 years agoDocument r262075, newsyslog(8) rotation by file size, instead
gjb [Fri, 22 Aug 2014 20:32:25 +0000 (20:32 +0000)]
Document r262075, newsyslog(8) rotation by file size, instead
of blocks consumed by the target file.

Sponsored by: The FreeBSD Foundation

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

9 years agoDocument r261972, nve(4) deprecation.
gjb [Fri, 22 Aug 2014 20:32:23 +0000 (20:32 +0000)]
Document r261972, nve(4) deprecation.

Sponsored by: The FreeBSD Foundation

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

9 years agoDocument r261868, Ralink RT3593 support.
gjb [Fri, 22 Aug 2014 20:32:21 +0000 (20:32 +0000)]
Document r261868, Ralink RT3593 support.

Sponsored by: The FreeBSD Foundation

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

9 years agoDocument r261090, bhyve APCI S5 poweroff.
gjb [Fri, 22 Aug 2014 20:32:19 +0000 (20:32 +0000)]
Document r261090, bhyve APCI S5 poweroff.

Sponsored by: The FreeBSD Foundation

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

9 years agoDocument r260857 and r260858: unmapped IO support in
gjb [Fri, 22 Aug 2014 20:32:17 +0000 (20:32 +0000)]
Document r260857 and r260858: unmapped IO support in
virtio_blk(4) and virtio_scsi(4).

Sponsored by: The FreeBSD Foundation

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

9 years agoDocument r260502, gmirror 'resize' command.
gjb [Fri, 22 Aug 2014 20:32:15 +0000 (20:32 +0000)]
Document r260502, gmirror 'resize' command.

Sponsored by: The FreeBSD Foundation

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

9 years agoDocument r260178, fsck_ffs '-R' flag.
gjb [Fri, 22 Aug 2014 20:32:13 +0000 (20:32 +0000)]
Document r260178, fsck_ffs '-R' flag.

Sponsored by: The FreeBSD Foundation

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

9 years agoDocument r260120, run(4) firmware update to 0.33.
gjb [Fri, 22 Aug 2014 20:32:11 +0000 (20:32 +0000)]
Document r260120, run(4) firmware update to 0.33.

Sponsored by: The FreeBSD Foundation

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

9 years agoDocument r259453, RT5370/RT5372 support.
gjb [Fri, 22 Aug 2014 20:32:09 +0000 (20:32 +0000)]
Document r259453, RT5370/RT5372 support.

Sponsored by: The FreeBSD Foundation

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

9 years agoDocument r259450, Hyper-V support on i386.
gjb [Fri, 22 Aug 2014 20:32:07 +0000 (20:32 +0000)]
Document r259450, Hyper-V support on i386.

Sponsored by: The FreeBSD Foundation

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

9 years agoDocument r259355, WANDBOARD kernel configuration added.
gjb [Fri, 22 Aug 2014 20:32:05 +0000 (20:32 +0000)]
Document r259355, WANDBOARD kernel configuration added.

Sponsored by: The FreeBSD Foundation

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

9 years agoDocument r259328, geom_label is resize-aware.
gjb [Fri, 22 Aug 2014 20:32:03 +0000 (20:32 +0000)]
Document r259328, geom_label is resize-aware.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r269945:
tuexen [Fri, 22 Aug 2014 20:26:20 +0000 (20:26 +0000)]
MFC r269945:

Add support for the SCTP_PR_STREAM_STATUS and SCTP_PR_ASSOC_STATUS
socket options. This includes managing the correspoing stat counters.
Add the SCTP_DETAILED_STR_STATS kernel option to control per policy
counters on every stream. The default is off and only an aggregated
counter is available. This is sufficient for the RTCWeb usecase.

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

9 years agoMFC r269858:
tuexen [Fri, 22 Aug 2014 20:22:12 +0000 (20:22 +0000)]
MFC r269858:

Add support for the SCTP_AUTH_SUPPORTED and SCTP_ASCONF_SUPPORTED
socket options. Add also a sysctl to control the support of ASCONF.

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

9 years agoMFC r269527:
tuexen [Fri, 22 Aug 2014 20:16:26 +0000 (20:16 +0000)]
MFC r269527:

Add support for the SCTP_RECONFIG_SUPPORTED and the corresponding
sysctl controlling the negotiation of the RE-CONFIG extension.

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

9 years agoMFC r269481:
tuexen [Fri, 22 Aug 2014 20:08:50 +0000 (20:08 +0000)]
MFC r269481:

Add support for the SCTP_PKTDROP_SUPPORTED socket option and
the corresponding sysctl variable.
The default is off, since the specification is not an RFC yet.

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

9 years agoMFC r269475:
tuexen [Fri, 22 Aug 2014 20:05:09 +0000 (20:05 +0000)]
MFC r269475:

Add SCTP socket option SCTP_NRSACK_SUPPORTED to control the
NRSACK extension. The default will still be off, since it
it not an RFC (yet).
Changing the sysctl name will be in a separate commit.

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

9 years agoMFC r269448:
tuexen [Fri, 22 Aug 2014 20:01:35 +0000 (20:01 +0000)]
MFC r269448:

Add support for the SCTP_PR_SUPPORTED socket option as specified in
http://tools.ietf.org/html/draft-ietf-tsvwg-sctp-prpolicies
Add also a sysctl controlling the default of the end-points.

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

9 years agoMFC r269436, r269445:
tuexen [Fri, 22 Aug 2014 19:57:39 +0000 (19:57 +0000)]
MFC r269436, r269445:

Cleanup the ECN configuration handling and provide an SCTP socket
option for controlling ECN on future associations and get the
status on current associations.
A simialar pattern will be used for controlling SCTP extensions in
upcoming commits.

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

9 years agoMFC r269396:
tuexen [Fri, 22 Aug 2014 19:53:10 +0000 (19:53 +0000)]
MFC r269396:

Remove the asconf_auth_nochk sysctl. This was off by default and only
existed to be able to test with non-compliant peers a long time ago.

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

9 years agoMFC r269376:
tuexen [Fri, 22 Aug 2014 19:49:43 +0000 (19:49 +0000)]
MFC r269376:

Cleanup sctp_send_initiate() and sctp_send_initiate_ack() to be
in sync as much as possible. This simplifies upcoming changes.

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

9 years agoMFC r269075:
tuexen [Fri, 22 Aug 2014 19:46:22 +0000 (19:46 +0000)]
MFC r269075:

Initialize notification structures.
This was missed in an earlier commit

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

9 years agoMFC r268537:
tuexen [Fri, 22 Aug 2014 19:43:27 +0000 (19:43 +0000)]
MFC r268537:
Whitespace changes.

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

9 years agoMFC r268534:
tuexen [Fri, 22 Aug 2014 19:40:29 +0000 (19:40 +0000)]
MFC r268534:

Bugfix: When a remote address was added to an endpoint,
a source address was selected and cached, but it was not
stored that is was cached. This resulted in selecting
different source addresses for the INIT-ACK and COOKIE-ACK
when possible.
Thanks to Niu Zhixiong for reporting the issue.

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

9 years agoMFC r268526:
tuexen [Fri, 22 Aug 2014 19:37:50 +0000 (19:37 +0000)]
MFC r268526:

Integrate upstream changes.

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

9 years agoMFC r263822: amd64: Parse the EFI memory map if present
emaste [Fri, 22 Aug 2014 18:09:06 +0000 (18:09 +0000)]
MFC r263822: amd64: Parse the EFI memory map if present

  With this change (and loader.efi from [HEAD]) we can now boot under
  qemu using the OVMF UEFI firmware image with the limitation that a
  serial console is required.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r268481:
bryanv [Fri, 22 Aug 2014 15:12:20 +0000 (15:12 +0000)]
MFC r268481:

  Rework when the Tx queue completion interrupt is enabled

  The Tx interrupt is now kept disabled in the common case, only
  enabled when the number of free descriptors in the queue falls
  below a threshold. Transmitted frames are cleared from the VQ
  before subsequent transmit, or in the watchdog timer.

  This was a very big performance improvement for an experimental
  Netmap bhyve backend.

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

9 years agoMerge r268492:
glebius [Fri, 22 Aug 2014 13:39:56 +0000 (13:39 +0000)]
Merge r268492:
  On machines with strict alignment copy pfsync_state_key from packet
  on stack to avoid unaligned access.

PR: 187381

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

9 years agoMFC r269708:
kib [Fri, 22 Aug 2014 07:09:54 +0000 (07:09 +0000)]
MFC r269708:
Unlock ldvp and lock dvp to compensate for possible ldvp unlock in lower
VOP_LOOKUP() and dvp reclamation.  Use cached value of dvp->v_mount.

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

9 years agoUse 'WITHOUT_TESTS=1' instead of 'MK_TESTS=no' in the
gjb [Fri, 22 Aug 2014 00:54:00 +0000 (00:54 +0000)]
Use 'WITHOUT_TESTS=1' instead of 'MK_TESTS=no' in the
'distribute' target of etc/Makefile, because we do not
allow command-line use of 'make MK_TESTS=no' in stable/10.

This fixes a regression introduced in r270187 that causes
the release build to fail, and a direct commit to stable/10.

Sponsored by: The FreeBSD Foundation

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

9 years agoCommit of mergeinfo only to record the fact that r270311 changes are in
ian [Thu, 21 Aug 2014 22:49:41 +0000 (22:49 +0000)]
Commit of mergeinfo only to record the fact that r270311 changes are in
10-stable (I did the commit to the wrong branch first).

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

9 years agoMFC r269974 - Added 4K quirks for Corsair Force GT and Samsung 840 SSDs
smh [Thu, 21 Aug 2014 22:47:03 +0000 (22:47 +0000)]
MFC r269974 - Added 4K quirks for Corsair Force GT and Samsung 840 SSDs

Sponsored by: Multiplay

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

9 years agoMFC r265152 - Reintroduce priority for the TRIM ZIOs instead of using the "NOW" priority
smh [Thu, 21 Aug 2014 22:44:08 +0000 (22:44 +0000)]
MFC r265152 - Reintroduce priority for the TRIM ZIOs instead of using the "NOW" priority
MFC r265321 - Fix double fault panic when returning EOPNOTSUPP
MFC r269407 - Don't return ZIO_PIPELINE_CONTINUE from vdev_op_io_start methods

Sponsored by: Multiplay

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

9 years agoMFC: 269950, 269952, 269973, 270114, 270119, 270142, 270156, 270200, 270229
se [Thu, 21 Aug 2014 22:04:17 +0000 (22:04 +0000)]
MFC: 269950, 269952, 269973, 270114, 270119, 270142, 270156, 270200, 270229

Add fonts converted from SYSCONS with help of tools/tools/vt/keymaps
for use with NEWCONS. The mapping from SYSCONS name to NEWCONS name
is documented in KBDFILES.map in the tools directory.
A few of the files where modified by Ed Maste (ca.kbd, ca-fr.kbd).

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

9 years agoMFC 269976.
se [Thu, 21 Aug 2014 21:57:18 +0000 (21:57 +0000)]
MFC 269976.

Add support for NEWCONS to kbdmap and vidfont.

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

9 years agoMFC 270131, 270152, 270199, 270232:
se [Thu, 21 Aug 2014 21:53:43 +0000 (21:53 +0000)]
MFC 270131, 270152, 270199, 270232:

Add converter from SYSCONS keymap format to NEWCONS and
configuration files. The convert-keymap.pl script can
be used to convert private SYSCONS keymaps ro NEWCONS
format.

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

9 years agoMFC 270153, 270098:
se [Thu, 21 Aug 2014 21:48:33 +0000 (21:48 +0000)]
MFC 270153, 270098:

Apply a fixes to problems found while converting to NEWCONS.

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

9 years agoThis module requires pci_if.h, add it to the SRCS list.
ian [Thu, 21 Aug 2014 21:36:06 +0000 (21:36 +0000)]
This module requires pci_if.h, add it to the SRCS list.

We haven't noticed that it was missing because eisa has been disabled for
a while in -current, but it became apparent when some parallel-build stuff
was MFC'd to 10-stable and this module failed to build there.

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

9 years agoMFC r270253:
np [Thu, 21 Aug 2014 19:58:46 +0000 (19:58 +0000)]
MFC r270253:
Change netmap's global lock to sx instead of a mutex.

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

9 years agoMFC r266571, r266757, r268536, r269076, r269364, r269366, r269411,
np [Thu, 21 Aug 2014 19:54:02 +0000 (19:54 +0000)]
MFC r266571, r266757, r268536, r269076, r269364, r269366, r269411,
r269413, r269428, r269440, r269537, r269644, r269731, and the cxgbe
portion of r270063.

r266571:
cxgbe(4): Remove stray if_up from the code that creates the tracing ifnet.

r266757:
cxgbe(4): netmap support for Terminator 5 (T5) based 10G/40G cards.
Netmap gets its own hardware-assisted virtual interface and won't take
over or disrupt the "normal" interface in any way.  You can use both
simultaneously.

For kernels with DEV_NETMAP, cxgbe(4) carves out an ncxl<N> interface
(note the 'n' prefix) in the hardware to accompany each cxl<N>
interface.  These two ifnet's per port share the same wire but really
are separate interfaces in the hardware and software.  Each gets its own
L2 MAC addresses (unicast and multicast), MTU, checksum caps, etc.  You
should run netmap on the 'n' interfaces only, that's what they are for.

With this, pkt-gen is able to transmit > 45Mpps out of a single 40G port
of a T580 card.  2 port tx is at ~56Mpps total (28M + 28M) as of now.
Single port receive is at 33Mpps but this is very much a work in
progress.  I expect it to be closer to 40Mpps once done.  In any case
the current effort can already saturate multiple 10G ports of a T5 card
at the smallest legal packet size.  T4 gear is totally untested.

trantor:~# ./pkt-gen -i ncxl0 -f tx -D 00:07:43:ab:cd:ef
881.952141 main [1621] interface is ncxl0
881.952250 extract_ip_range [275] range is 10.0.0.1:0 to 10.0.0.1:0
881.952253 extract_ip_range [275] range is 10.1.0.1:0 to 10.1.0.1:0
881.962540 main [1804] mapped 334980KB at 0x801dff000
Sending on netmap:ncxl0: 4 queues, 1 threads and 1 cpus.
10.0.0.1 -> 10.1.0.1 (00:00:00:00:00:00 -> 00:07:43:ab:cd:ef)
881.962562 main [1882] Sending 512 packets every  0.000000000 s
881.962563 main [1884] Wait 2 secs for phy reset
884.088516 main [1886] Ready...
884.088535 nm_open [457] overriding ifname ncxl0 ringid 0x0 flags 0x1
884.088607 sender_body [996] start
884.093246 sender_body [1064] drop copy
885.090435 main_thread [1418] 45206353 pps (45289533 pkts in 1001840 usec)
886.091600 main_thread [1418] 45322792 pps (45375593 pkts in 1001165 usec)
887.092435 main_thread [1418] 45313992 pps (45351784 pkts in 1000834 usec)
888.094434 main_thread [1418] 45315765 pps (45406397 pkts in 1002000 usec)
889.095434 main_thread [1418] 45333218 pps (45378551 pkts in 1001000 usec)
890.097434 main_thread [1418] 45315247 pps (45405877 pkts in 1002000 usec)
891.099434 main_thread [1418] 45326515 pps (45417168 pkts in 1002000 usec)
892.101434 main_thread [1418] 45333039 pps (45423705 pkts in 1002000 usec)
893.103434 main_thread [1418] 45324105 pps (45414708 pkts in 1001999 usec)
894.105434 main_thread [1418] 45318042 pps (45408723 pkts in 1002001 usec)
895.106434 main_thread [1418] 45332430 pps (45377762 pkts in 1001000 usec)
896.107434 main_thread [1418] 45338072 pps (45383410 pkts in 1001000 usec)
...

r268536:
cxgbe(4): Add an iSCSI softc to the adapter structure.

r269076:
Some hooks in cxgbe(4) for the offloaded iSCSI driver.

r269364:
Improve compliance with style.Makefile(5).

r269366:
List one file per line in the Makefiles.  This makes it easier to read
diffs when a file is added or removed.

r269411:
cxgbe(4): minor optimizations in ingress queue processing.

Reorganize struct sge_iq.  Make the iq entry size a compile time
constant.  While here, eliminate RX_FL_ESIZE and use EQ_ESIZE directly.

r269413:
cxgbe(4):  Fix an off by one error when looking for the BAR2 doorbell
address of an egress queue.

r269428:
cxgbe(4):  some optimizations in freelist handling.

r269440:
cxgbe(4): Remove an unused version of t4_enable_vi.

r269537:
cxgbe(4): Do not run any sleepable code in the SIOCSIFFLAGS handler when
IFF_PROMISC or IFF_ALLMULTI is being flipped.  bpf(4) holds its global
mutex around ifpromisc in at least the bpf_dtor path.

r269644:
cxgbe(4):  Let caller specify whether it's ok to sleep in
t4_sched_config and t4_sched_params.

r269731:
cxgbe(4): Do not poke T4-only registers on a T5 (and vice versa).

Relnotes: Yes (native netmap support for Chelsio T4/T5 cards)

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

9 years agoMFC r263815, r263872:
emaste [Thu, 21 Aug 2014 19:51:07 +0000 (19:51 +0000)]
MFC r263815, r263872:

  Move ia64 efi.h to sys in preparation for amd64 UEFI support

    Prototypes specific to ia64 have been left in this file for now, under
    __ia64__, rather than moving them to a new header under sys/ia64.
    I anticipate that (some of) the corresponding functions will be shared
    by the amd64, arm64, i386, and ia64 architectures, and we can adjust
    this as EFI support on other than ia64 continues to develop.

  Fix missed efi.h header change in r263815

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r269525:
markj [Thu, 21 Aug 2014 19:45:52 +0000 (19:45 +0000)]
MFC r269525:
Return 0 for the PPID of threads in process 0, as process 0 doesn't have a
parent process.

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

9 years agoUpdate a couple of header files that were missed in r270252. This is a
np [Thu, 21 Aug 2014 19:42:03 +0000 (19:42 +0000)]
Update a couple of header files that were missed in r270252.  This is a
direct commit to stable/10.

Submitted by: luigi

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

9 years agoMFC r264927 by imp:
emaste [Thu, 21 Aug 2014 19:32:54 +0000 (19:32 +0000)]
MFC r264927 by imp:

  NO_DEBUG_FILES -> MK_DEBUG_FILES=no in last remaining place.

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

9 years agoMFC r270116:
ngie [Thu, 21 Aug 2014 17:36:42 +0000 (17:36 +0000)]
MFC r270116:

 Fix typo in lib/atf/libatfc++/Makefile

 LIBATFC should be LIBATF_C; this was missed in the initial import
 (r241823)

 PR: 192731
 MFC after: 3 days
 Phabric: D619
 Approved by: rpaulo (mentor)

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

9 years agoMFC r269534:
ngie [Thu, 21 Aug 2014 17:32:38 +0000 (17:32 +0000)]
MFC r269534:

  Integrate lib/libmp into the build/kyua

  - Remove the .t wrapper
  - Fix -Wreturn-type warnings with clang

  This change has been tested on amd64/i386

  Phabric: D530
  Reviewed by: jmmv
  Approved by: jmmv (co--mentor)
  MFC after: 2 weeks
  Sponsored by: EMC / Isilon Storage Division

MFC note: src.opts.mk in the original commit was changed to
          bsd.own.mk.

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

9 years agoMFC r260401
ian [Thu, 21 Aug 2014 17:18:21 +0000 (17:18 +0000)]
MFC r260401

  Remove aicasm as a build dependency.  It made sense when the ahc and ahd
  drivers and their firmware were under active development, but those days
  have passed.  The firmware now exists in pre-compiled form, no longer
  dependent on it's sources or on aicasm.  If you wish to rebuild the
  firmware from source, the glue still exists under the 'make firmware'
  target in sys/modules/aic7xxx.

  This also fixes the problem introduced with r257777 et al with building
  kernels the old fashioned way in sys/$arch/compile/$CONFIG when the
  ahc/ahd drivers were included.

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

9 years agoMFC r257637, r257730, r257734, r257777, r257825, r257838, r257873:
ian [Thu, 21 Aug 2014 14:56:57 +0000 (14:56 +0000)]
MFC r257637, r257730, r257734, r257777, r257825, r257838, r257873:

Changes to how the aicasm tool is built.  This series of changes results
in the aicasm tool being built as part of the tools stages of world and
kernel builds.

Most of these changes will ultimately be undone when r260401 is MFC'd,
but it will leave in place the new kernel-build-tool machinery (KTMAKE
stuff) in case a new special kernel tool ever comes along.

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

9 years agoMFC r268480:
bryanv [Thu, 21 Aug 2014 13:27:05 +0000 (13:27 +0000)]
MFC r268480:

  Add accessor to get the number of free descriptors in the virtqueue

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

9 years agoCommit forgotten chunk of r270264.
kib [Thu, 21 Aug 2014 12:30:01 +0000 (12:30 +0000)]
Commit forgotten chunk of r270264.

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

9 years agoMFC: Make BSD tree more contemporary-looking.
marck [Thu, 21 Aug 2014 11:48:37 +0000 (11:48 +0000)]
MFC: Make BSD tree more contemporary-looking.

This is actually batch of MFCs from the beginning of stable/10 branch.

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

9 years agoMFC r269656:
kib [Thu, 21 Aug 2014 10:46:19 +0000 (10:46 +0000)]
MFC r269656:
Implement and use proc_realparent(9).

MFC r270024 (by markj):
Correct the order of arguments passed to LIST_INSERT_AFTER().

For merge, the p_treeflag member of struct proc was moved to the end
of the structure, to keep KBI intact.

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

9 years agovt(4): Colors are indexed against a console palette, not a VGA palette
dumbbell [Thu, 21 Aug 2014 10:18:42 +0000 (10:18 +0000)]
vt(4): Colors are indexed against a console palette, not a VGA palette

Rename vt_generate_vga_palette() to vt_generate_cons_palette() and
change it to build a palette where the color index is the same than in
terminal escape codes, not the VGA index. That's what TCHAR_CREATE()
uses and passes to vt(4).

The main differences between both orders are:
    o  Blue and red are swapped (1 <-> 4)
    o  Yellow and cyan are swapped (3 <-> 6)

The problem remained unnoticed, because the RGB bit indexes passed to
vt_generate_vga_palette() were reversed. This inversion was cancelled
by the colors inversions in the generated palette. For instance, red
(0xff0000) and blue (0x0000ff) have bytes in opposite order, but were
swapped in the palette. But after changing the value of blue (see last
paragraph), the modified color was in fact the red one.

While here, tune the palette to better match console colors and improve
the readability (especially the dark blue).

This is an MFC of r269783 and r269791.

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

9 years agoMFC r270062: switch rpc mount protocol for showmount and umount from
peter [Thu, 21 Aug 2014 04:31:48 +0000 (04:31 +0000)]
MFC r270062: switch rpc mount protocol for showmount and umount from
mountv1 to mountv3 - it breaks by default on the new netapp release with
the legacy protocols removed.

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

9 years agoMFC r265256:
eadler [Thu, 21 Aug 2014 04:26:16 +0000 (04:26 +0000)]
MFC r265256:
Syntax fix

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

9 years agoMFC: r270005
rmacklem [Thu, 21 Aug 2014 01:07:27 +0000 (01:07 +0000)]
MFC: r270005
Try to clarify how file systems are exported for NFSv4.
This is a content change.

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

9 years agoMFC 270063: update of netmap code
luigi [Wed, 20 Aug 2014 23:34:36 +0000 (23:34 +0000)]
MFC 270063: update of netmap code
(vtnet and cxgbe not merged yet because we need some other mfc first)

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

9 years agoMFC r269314 and r269316
slm [Wed, 20 Aug 2014 23:09:27 +0000 (23:09 +0000)]
MFC r269314 and r269316

r269314:
Bring in LSI's phase16 - phase18 changes
* Implements Start Stop Unit for SATA direct-attach devices in IR mode to avoid
  data corruption.
* Use CAM_DEV_NOT_THERE instead of CAM_SEL_TIMEOUT and CAM_TID_INVALID

r269316:
Bring in LSI's phase19 changes
* Removed unused mpssas_discovery_timeout function.
* Don't alter mapping boundaries if not raid firmware.
* Check free_busaddr instead of post_busaddr (diff minimisation really)

Approved by: ken (co-mentor) and smh

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

9 years agoMFC r268429: Don't install locale1.0 if MK_NLS == no.
jilles [Wed, 20 Aug 2014 19:39:07 +0000 (19:39 +0000)]
MFC r268429: Don't install locale1.0 if MK_NLS == no.

The test locale1.0 depends on locale support; it is meaningless without a
working LC_MESSAGES.

I added an OptionalObsoleteFiles.inc entry.

PR: 181151
Submitted by: Garrett Cooper (original version)
Sponsored by: EMC / Isilon Storage Division

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

9 years agoMFC r267021:
loos [Wed, 20 Aug 2014 19:37:05 +0000 (19:37 +0000)]
MFC r267021:

  FreeBSD, historically, has always used 8-bit addresses for i2c devices
  (7-bit device address << 1), always leaving the room for the read/write
  bit.

  This commit convert ti_i2c and revert r259127 on bcm2835_bsc to make them
  compatible with 8-bit addresses.  Previous to this commit an i2c device
  would have different addresses depending on the controller it was attached
  to (by example, when compared to any iicbb(4) based i2c controller), which
  was a pretty annoying behavior.

  Also, update the PMIC i2c address on beaglebone* DTS files to match the
  new address scheme.

  Now the userland utilities need to do the correct slave address shifting
  (but it is going to work with any i2c controller on the system).

  Discussed with: ian

MFC r267834:

  Clarify the expected usage of I2C 7-bit slave addresses on ioctl(2)
  interface.

  While here add the cross reference to iic(4) on iicbus(4).

  CR: D210
  Suggested by: jmg

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

9 years agoMFC devd-related changes
asomers [Wed, 20 Aug 2014 19:30:58 +0000 (19:30 +0000)]
MFC devd-related changes

r270004
Convert devd's client socket to type SOCK_SEQPACKET.

  This change consists of two merges from projects/zfsd/head along with the
  addition of an ATF test case for the new functionality.

  sbin/devd/tests/Makefile
  sbin/devd/tests/client_test.c
        Add ATF test cases for reading events from both devd socket types.

  r266519:
  sbin/devd/devd.8
  sbin/devd/devd.cc
        Create a new socket, of type SOCK_SEQPACKET, for communicating with
        clients. SOCK_SEQPACKET sockets preserve record boundaries,
        simplying code in the client. The old SOCK_STREAM socket is retained
        for backwards-compatibility with existing clients.

  r269993:
  sbin/devd/devd.8
        Fix grammar bug.

r270019 (from bz)
Remove bogus ; at the end of the if condition in order to unbreak gcc builds
  after r270004.

  MFC after:    4 days
  X-MFX with:   r270004

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

9 years agoMFC r266923:
loos [Wed, 20 Aug 2014 19:12:19 +0000 (19:12 +0000)]
MFC r266923:

  Ignore IIC_ENOADDR from iicbus_reset() as it only means we have a
  master-only controller.

  This fixes the iic bus scan with i2c(8) (on supported controllers).

  Tested with gpioiic(4).

MFC r267009:

  Remove the unnecessary i2c slave address assignment.

  The ti_i2c controller only works in the master mode and the i2c address
  passed on iicbus_reset() is used to set the controller slave address when
  operating as an i2c slave (which isn't currently supported).

  When talking to a slave, the slave address is correctly provided to
  ti_i2c_tranfer().

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

9 years agoComplete MFC of r270233, also unbreak the build.
davide [Wed, 20 Aug 2014 18:40:29 +0000 (18:40 +0000)]
Complete MFC of r270233, also unbreak the build.

Reported by: grehan

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

9 years agoMFC r266960:
loos [Wed, 20 Aug 2014 18:10:12 +0000 (18:10 +0000)]
MFC r266960:

  Configure the analog input 7 which, on BBB, is connected to the 3V3B rail
  through a voltage divisor (R163 and R164 on page 4 of BBB schematic).

  Add a note about this on ti_adc(4) man page.  The ti_adc(4) man page will
  first appear on 10.1-RELEASE.

  Suggested by: Sulev-Madis Silber (ketas)
  Manual page reviewed by:      brueffer (D127)

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

9 years agoMFC r266937:
loos [Wed, 20 Aug 2014 17:57:23 +0000 (17:57 +0000)]
MFC r266937:

  Export two new settings for the AM335x PWM, the clock prescaler (clkdiv)
  and the actual PWM frequency.

  Enforce the maximum value for the period sysctl.

  The frequency systcl now allows the direct setting of the PWM frequency
  (it will try to find the better clkdiv and period for a given frequency,
  i.e. the ones that will give the better PWM resolution).

  This allows the use lower frequencies on the PWM.  Without changing the
  clock prescaler the minimum PWM frequency was 1.52kHz.

  PWM frequencies checked with an osciloscope.

  PWM output tested with some R/C servos at 50Hz.

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

9 years agoMFC r266922:
loos [Wed, 20 Aug 2014 17:39:53 +0000 (17:39 +0000)]
MFC r266922:

  Add a bounds verification to the SCL and SDA pin values.

  At attach, print the SCL and SDA pin numbers.

  Remove a stray blank line.

  Remove the GPIOBUS locking from gpioiic_reset(), it is already called with
  this lock held.  This fixes a crash when you try to scan the iicbus with
  i2c(8).

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

9 years agoMFC 259907 (dates back to december)
luigi [Wed, 20 Aug 2014 17:33:32 +0000 (17:33 +0000)]
MFC 259907 (dates back to december)
use the correct netmap <-> nic slot mapping on the transmit ring for 'lem'.
This bug would manifest only in netmap mode and on packets transmitted after
a NIC reset while netmap mode is active.

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

9 years agoMFC r269502:
davide [Wed, 20 Aug 2014 17:26:05 +0000 (17:26 +0000)]
MFC r269502:
Fix an overflow in getsockopt(). optval isn't big enough to hold
sbintime_t.
Re-introduce r255030 behaviour capping socket timeouts to INT_32
if they're too large.

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

9 years agoMFC r269524:
markj [Wed, 20 Aug 2014 14:57:55 +0000 (14:57 +0000)]
MFC r269524:
Preserve the errno value of an ioctl before calling free(3). Previously,
errno was very occasionally being clobbered, resulting in a bogus error from
dt_consume() and thus an error from dtrace(1).

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

9 years agoMFC r269907:
kib [Wed, 20 Aug 2014 08:24:37 +0000 (08:24 +0000)]
MFC r269907:
Fix leaks of unqueued unwired pages.

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

9 years agoMFC r266473,267331,267511:
ian [Tue, 19 Aug 2014 23:33:51 +0000 (23:33 +0000)]
MFC r266473,267331,267511:

  Use an intermediate target to associate with _SUBDIR which is marked .MAKE
  this allows make -n to do tree walks as expected without
  doing anything else (as intended).
  Use prefix _sub. to help avoid conflict with any real target.

  Put the test suite in its own tests.txz distribution file.
  Force all the contents of /usr/tests to go into a separate distribution
  file so that users of binary releases can easily choose to not install

  Create a mechanism for providing fine-grained build order dependencies
  during SUBDIR_PARALLEL builds.  This augments the coarse .WAIT mechanism,
  which is still useful if you've got a situation such as "almost everything
  depends on A and B".

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

9 years agoMFC r266103
grehan [Tue, 19 Aug 2014 23:15:47 +0000 (23:15 +0000)]
MFC r266103

Update dis_tables.c to the latest Illumos version.

This includes decodes of recent Intel instructions, in particular
VT-x and related instructions. This allows the FBT provider to
locate the exit points of routines that include these new
instructions.

Illumos issues:
 3414 Need a new word of AT_SUN_HWCAP bits
 3415 Add isainfo support for f16c and rdrand
 3416 Need disassembler support for rdrand and f16c
 3413 isainfo -v overflows 80 columns
 3417 mdb disassembler confuses rdtscp for invlpg
 1518 dis should support AMD SVM/AMD-V/Pacifica instructions
 1096 i386 disassembler should understand complex nops
 1362 add kvmstat for monitoring of KVM statistics
 1363 add vmregs[] variable to DTrace
 1364 need disassembler support for VMX instructions
 1365 mdb needs 16-bit disassembler support

This corresponds to Illumos-gate (github) version
eb23829ff08a873c612ac45d191d559394b4b408

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

9 years agoMFC r265098
grehan [Tue, 19 Aug 2014 23:08:47 +0000 (23:08 +0000)]
MFC r265098

Bump WITNESS_PENDLIST by MAXCPU to account for the
pmap pvlist locks which are scaled by MAXCPU.

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

9 years agovt(4): Add vtbuf_dirty*_locked() to lock vtbuf once, not twice
dumbbell [Tue, 19 Aug 2014 20:53:28 +0000 (20:53 +0000)]
vt(4): Add vtbuf_dirty*_locked() to lock vtbuf once, not twice

In several functions, vtbuf_putchar() in particular, the lock on vtbuf
is acquired twice:
    1. once by the said functions;
    2. once in vtbuf_dirty().

Now, vtbuf_dirty_locked() and vtbuf_dirty_cell_locked() allow to
acquire that lock only once.

This improves the input speed of vt(4). To measure the gain, a
50,000-lines file was displayed on the console using cat(1). The time
taken by cat(1) is reported below:
    o  On amd64, with vt_vga:
        - before: 1.0"
        - after:  0.5"
    o  On sparc64, with creator_vt:
        - before: 13.6"
        - after:  10.5"

This is an MFC of r269780.

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

9 years agoBump __FreeBSD_version after r269490 so ports can use it.
bdrewery [Tue, 19 Aug 2014 15:49:38 +0000 (15:49 +0000)]
Bump __FreeBSD_version after r269490 so ports can use it.

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

9 years agoMFC r269859:
hselasky [Tue, 19 Aug 2014 11:04:24 +0000 (11:04 +0000)]
MFC r269859:
Fix for memory leak.

Sponsored by: Mellanox Technologies

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

9 years agoMFC r267921, r267934, r267949, r267959, r267966, r268202, r268276,
grehan [Tue, 19 Aug 2014 01:20:24 +0000 (01:20 +0000)]
MFC r267921, r267934, r267949, r267959, r267966, r268202, r268276,
    r268427, r268428, r268521, r268638, r268639, r268701, r268777,
    r268889, r268922, r269008, r269042, r269043, r269080, r269094,
    r269108, r269109, r269281, r269317, r269700, r269896, r269962,
    r269989.

Catch bhyve up to CURRENT.

Lightly tested with FreeBSD i386/amd64, Linux i386/amd64, and
OpenBSD/amd64. Still resolving an issue with OpenBSD/i386.

Many thanks to jhb@ for all the hard work on the prior MFCs !

r267921 - support the "mov r/m8, imm8" instruction
r267934 - document options
r267949 - set DMI vers/date to fixed values
r267959 - doc: sort cmd flags
r267966 - EPT misconf post-mortem info
r268202 - use correct flag for event index
r268276 - 64-bit virtio capability api
r268427 - invalidate guest TLB when cr3 is updated, needed for TSS
r268428 - identify vcpu's operating mode
r268521 - use correct offset in guest logical-to-linear translation
r268638 - chs value
r268639 - chs fake values
r268701 - instr emul operand/address size override prefix support
r268777 - emulation for legacy x86 task switching
r268889 - nested exception support
r268922 - fix INVARIANTS build
r269008 - emulate instructions found in the OpenBSD/i386 5.5 kernel
r269042 - fix fault injection
r269043 - Reduce VMEXIT_RESTARTs in task_switch.c
r269080 - fix issues in PUSH emulation
r269094 - simplify return values from the inout handlers
r269108 - don't return -1 from the push emulation handler
r269109 - avoid permanent sleep in vm_handle_hlt()
r269281 - list VT-x features in base kernel dmesg
r269317 - Mark AHCI fatal errors as not completed
r269700 - Support PCI extended config space in bhyve
r269896 - Minor cleanup
r269962 - use max guest memory when creating IOMMU domain
r269989 - fix interrupt mode names

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

9 years agoMFC of 269533 (by mckusick):
mckusick [Mon, 18 Aug 2014 22:53:48 +0000 (22:53 +0000)]
MFC of 269533 (by mckusick):

Add support for multi-threading of soft updates.

Replace a single soft updates thread with a thread per FFS-filesystem
mount point. The threads are associated with the bufdaemon process.

Reviewed by:  kib
Tested by:    Peter Holm and Scott Long
MFC after:    2 weeks
Sponsored by: Netflix

MFC of 269853 (by kib):

Revision r269457 removed the Giant around mount and unmount code, but
r269533, which was tested before r269457 was committed, implicitely
relied on the Giant to protect the manipulations of the softdepmounts
list.  Use softdep global lock consistently to guarantee the list
structure now.

Insert the new struct mount_softdeps into the softdepmounts only after
it is sufficiently initialized, to prevent softdep_speedup() from
accessing bare memory.  Similarly, remove struct mount_softdeps for
the unmounted filesystem from the tailq before destroying structure
rwlock.

Reported and tested by: pho
Reviewed by:    mckusick
Sponsored by:   The FreeBSD Foundation

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

9 years agoMFC r269977
asomers [Mon, 18 Aug 2014 20:21:12 +0000 (20:21 +0000)]
MFC r269977

Skip pgrep-j and pkill-j if jail or jls is not installed.

Even though jail is part of the base system, it can be disabled by src.conf
settings. Therefore, it should be listed as a required program for tests that
use it.

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

9 years agoMFC r269183, r269191:
mav [Mon, 18 Aug 2014 16:06:04 +0000 (16:06 +0000)]
MFC r269183, r269191:
Add netmasks support to initiator-portal option.

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

9 years agoMFC r269492:
mav [Mon, 18 Aug 2014 15:54:35 +0000 (15:54 +0000)]
MFC r269492:
Improve locking of multicast addresses in VLAN and LAGG interfaces.

This fixes several scenarios of reproducible panics, cause by races
between multicast address changes and interface destruction.

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

9 years agoMFC r269814:
royger [Mon, 18 Aug 2014 08:50:05 +0000 (08:50 +0000)]
MFC r269814:

blkfront: add support for unmapped IO

Sponsored by: Citrix Systems R&D
Tested by: robak
PR: 191173

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

9 years agoMFC r269543: MFV r269542:
delphij [Mon, 18 Aug 2014 05:22:09 +0000 (05:22 +0000)]
MFC r269543: MFV r269542:

In vdev_get_stats, check that the vdev is not a hole before computing the
fragmentation.  This fixes a panic when removing log device.

Illumos issue:
    5049 panic when removing log device

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

9 years agoMFC r269431: MFV r269427:
delphij [Mon, 18 Aug 2014 05:17:24 +0000 (05:17 +0000)]
MFC r269431: MFV r269427:

In dnode_children_t, use C99's "[]" idiom for declaring the variable
sized array dnc_children at the end of the structure.

This prevents the compiler from mistakenly optimizing away accesses
beyond the array's defined size.

Illumos issue:
    5038 Remove "old-style" flexible array usage in ZFS.
    Author: Justin T. Gibbs <justing@spectralogic.com>

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

9 years agoMFC r269430: MFV r269426:
delphij [Mon, 18 Aug 2014 05:13:46 +0000 (05:13 +0000)]
MFC r269430: MFV r269426:

Double test device size for ztest(1).

Illumos issue:
    5039 ztest should default to larger device sizes
    Author: Matthew Ahrens <mahrens@delphix.com>

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