195204 Commits

Author SHA1 Message Date
brueffer
95bfeaca5a MFC: r264585
Add a missing break in the TCP case.

Reviewed by:	bms
2014-04-24 10:23:35 +00:00
mav
c2e3819ca8 MFC r264318:
Fix wrong sizes used to access PD_Type and PD_State DDF metadata fields.

This caused incorrect behavior of arrays with big-endian DDF metadata.
Little-endian (like used by Adaptec controllers) should not be harmed.
Add workaround should be enough to manage compatibility.
2014-04-24 10:22:00 +00:00
bryanv
7f430de4a1 MFC r263259
Add Tx/Rx multiqueue support to vmx(4)

    As a prerequisite for multiple queues, the guest must have MSIX enabled.
    Unfortunately, to work around device passthrough bugs, FreeBSD disables
    MSIX when running as a VMWare guest due to the hw.pci.honor_msi_blacklist
    tunable; this tunable must be disabled for multiple queues.

    Also included is various minor changes from the projects/vmxnet branch.

MFC r264865
    Update the date that was missed in r263259
2014-04-24 04:43:50 +00:00
gjb
3422a8357a MFC r264731:
urndis(4) will first appear in 9.3-RELEASE.

Sponsored by:	The FreeBSD Foundation
2014-04-24 00:29:02 +00:00
mav
825aecc9cf MFC r264550:
Fix VIRTUAL and PROF interval timers for short intervals, broken at r247903.

Due to the way those timers are implemented, we can't handle very short
intervals.  In addition to that mentioned patch caused math overflows
for short intervals.  To avoid that round those intervals to 1 tick.

PR:		kern/187668
2014-04-23 12:46:27 +00:00
brueffer
d9c1f7d446 MFC: r264422, r264471
Set buf to NULL only when we don't allocate memory,
and free buf unconditionally.

Found with:	Coverity Prevent(tm)
Requested by:	kib (r264471)
2014-04-23 12:15:14 +00:00
brueffer
031977611b MFC: r264507
Mention Capsicum.
2014-04-23 12:11:14 +00:00
brueffer
0cbc420487 MFC: r264482
Re-indent break statement.
2014-04-23 12:08:20 +00:00
ae
a243d13ce7 MFC r264124:
Remove dead code.

MFC r264125:
  Remove unused variable.

MFC r264126:
  The check for local address spoofing lacks ifaddr locking.
  Remove these loops and use in_localip() and in6_localip()
  functions instead.

MFC r264520:
  Remove _IP_VHL* macros and related ifdefs.
2014-04-23 11:22:54 +00:00
ae
8057942ba8 MFC r264540:
Set oif only for outgoing packets.

  PR:		188543
2014-04-23 09:56:17 +00:00
brueffer
d9a1a7c7fb MFC: r264460
Document the xdev* targets.

PR:		188519
Submitted by:	Idwer Vollering <vidwer at gmail.com>
Reviewed by:	bapt
2014-04-23 09:27:11 +00:00
brueffer
3483d57e80 MFC: r264489
Add a missing break in option parsing.

CID:		1011452
Found with:	Coverity Prevent(tm)
2014-04-23 09:22:24 +00:00
brueffer
53a0ec56bb MFC: r264479
Fix double fclose() in an error case.

CID:		1006120
Found with:	Coverity Prevent(tm)
2014-04-23 07:33:51 +00:00
brueffer
4bf359bbbf MFC: r264421
Free resources in error cases; re-indent a curly brace while here.

CID:		1199366
Found with:	Coverity Prevent(tm)
2014-04-23 07:22:40 +00:00
markj
ec059ac886 MFC r262596:
4478 dtrace_dof_maxsize is far too small

illumos/illumos-gate@d339a29bb4
2014-04-23 03:26:29 +00:00
gjb
55b80a1d2e MFC r264518, r264697, r264698, r264703:
r264518:
  Fix armv6 build failure: "armv6-freebsd-gcc: not found"

r264697:
  When building the 'xdev' target when WITH_GCC=1 and
  WITHOUT_CLANG_IS_CC=1, it appears WITHOUT_CLANG=1 must
  also be set.

  While here, reorder the lines to put the WITH_* and
  WITHOUT_* entries on the same line.

r264698:
  Fix EOL escape.

r264703:
  Apply a slightly different color hammer to arm/release.sh:

   - gcc(1) fails to build usr.bin/dtc
   - lack of WITH_GNUCXX=1 causes cc1plus(1) calls to fail
   - u-boot fails to build with clang (hard-coded gcc(1) calls)

  Implement the proper incantation of WITH_/WITHOUT_ knobs
  to get arm snapshot builds working again.

  Since the cc(1) binary no longer needs to be cc(1) instead of
  clang(1), remove the chroot(8) post-install cc(1) overwrite.

Sponsored by:	The FreeBSD Foundation
2014-04-23 01:27:53 +00:00
brueffer
47b4d0222c MFC: r264419
Avoid double close() of a file descriptor.

CID:		1006089
Found with:	Coverity Prevent(tm)
2014-04-22 21:25:03 +00:00
brueffer
daa5b9ec25 MFC: r264418
Avoid double free in f_acl().

CID:		1018508
Found with:	Coverity Prevent(tm)
2014-04-22 21:13:25 +00:00
brueffer
37a4748dfc MFC: r264416
Add a missing comma between error message definitions.

CID:		1199266
Found with:	Coverity Prevent(tm)
MFC after:	1 week
2014-04-22 21:02:02 +00:00
brueffer
07ce3d4ba6 MFC: r264386
Improve markup and remove contractions.
2014-04-22 20:55:46 +00:00
brueffer
e6b15123de MFC: r264384, r264415
mdoc and language improvements.
2014-04-22 20:51:07 +00:00
marius
f2fa870ceb MFC: r264257, r264327, r264514
Distinguish between the different variants and configurations of Sunix
{MIO,SER}5xxxx chips instead of treating all of them as PUC_PORT_2S.
Among others, this fixes the hang seen when trying to probe the none-
existent second UART on an actually 1-port chip.

Obtained from:	NetBSD (BAR layouts)
Sponsored by:	Bally Wulff Games & Entertainment GmbH
2014-04-22 13:02:03 +00:00
yongari
353e3008f5 MFC r264293:
Add workaround for MCP61 Ethernet controller found on MSI K9
  motherboard.  PHY hardware used for the controller responded at
  all possible addresses which in turn resulted in having 32 PHYs
  for the controller.  If driver detects "MSI K9N6PGM2-V2 (MS-7309)"
  motherboard, tell miibus(4) PHY is located at 0.
2014-04-22 04:35:07 +00:00
yongari
e9b36215b6 MFC r264062:
Correct endianness handling in getting station address from EEPROM.
  While I'm here, remove aue_eeprom_getword() as its only usage is to
  read station address and make it more readable.  This change is
  inspired by NetBSD.
  With this change, aue(4) should work on big endian architectures.

  PR:	188177
2014-04-22 04:30:24 +00:00
emax
e8052c13e8 MFC r264621
use correct (integer) type for the temperature sysctl

Reviewed by:	np, scottl
Obtained from:	Netflix
2014-04-21 17:17:23 +00:00
sbruno
6771e94c82 MFC r264127
Add PCI-IDs for TBD Gen9 RAID controller HBAs from HP to ciss(4)

Submitted by:	Benesh, Scott <scott.benesh@hp.com>
Sponsored by:	Yahoo! Inc.
2014-04-21 16:54:38 +00:00
mav
757e439c97 MFC r264193:
In addition to r264077, tell GEOM that we do support BIO_DELETE now.
2014-04-21 16:46:44 +00:00
mav
dbfef773ce MFC r264077:
Add BIO_DELETE support to ZVOL.

It is an adapted merge from the vendor branch of:
    701 UNMAP support for COMSTAR  (in part related to ZFS)
    2130 zvol DKIOCFREE uses nested DMU transactions
2014-04-21 16:42:15 +00:00
mav
cfbba1d7fc MFC r264341:
Create zvol devices on zfs clone.

While big and shiny patch is not ready, it is better to have something.

PR:		kern/178999
2014-04-21 16:33:49 +00:00
mav
f908bd3cc2 MFC r264191:
Report stripe size and offset of the backing device in READ CAPACITY (16)
as physical sector size and offset.
2014-04-21 16:26:24 +00:00
ae
7125a2147c MFC r264364:
Properly release the in6_multi lock.

Sponsored by:	Yandex LLC
2014-04-21 11:17:29 +00:00
kib
b78abef02b MFC r264481:
Add dwarf annotations to the amd64 _rtld_bind_start to allow debuggers
to unwind around the calls from PLT to binder.
2014-04-21 02:55:27 +00:00
bdrewery
73c210dce0 MFC r264142:
Show error code when failing to destroy a mirror on delay
2014-04-21 02:49:41 +00:00
bdrewery
5d04f39f50 MFC r264320:
Fix spelling error in g_trace() call.
2014-04-21 02:48:04 +00:00
gjb
499e043865 MFC r260689 (partial):
Remove 'of course' statement from upgrading note.

Sponsored by:	The FreeBSD Foundation
2014-04-20 22:57:15 +00:00
des
3986659ead MFH (r264691): merge upstream patch for EC calculation bug 2014-04-20 12:46:18 +00:00
gnn
756c501075 MFC: 264174
Speed up the lookup of interfaces when there are a large number
of them, such in a system with a large number of VLANs.

Submitted by: Nick Rogers
2014-04-20 06:46:04 +00:00
kib
be9f211c78 MFC r264620:
Fix typo.
2014-04-20 01:37:30 +00:00
hselasky
562a6a9fe9 MFC r264344:
Tune buffer sizes for SuperSpeed USB when using LibUSB v0.1 and v1.0
APIs to increase the maximum bandwidth limit.
2014-04-18 07:50:25 +00:00
hselasky
585ac61d0c MFC r264340:
Correct IMOD default value according to comment.
2014-04-18 07:48:29 +00:00
dteske
6d543d996b MFC r264488:
When merging docsinstall and zfsboot updates to stable/9 it was discovered
that the slightly older dialog(1) requires --separate-output when using the
--checklist widget to force response to produce unquoted values (whereas in
stable/10 --checklist widget without --separate-output will only quote the
checklist labels in the response if the label is multi-word (contains any
whitespace).

Since these enhancements (see revisions 263956 and 264437) were developed
originally on 10, the --separate-output option was omitted. When merged to
stable/9, we (Allan Jude) and I found during testing that the "always-
quoting" of the response was causing things like struct interpolation to
fail (`f_struct device_$dev' would produce `f_struct device_\"da0\"' for
example -- literal quotes inherited from dialog(1) --checklist response).

To see the behavior, execute the following on stable/9 versus stable/10:

        dialog --checklist disks: 0 0 0 da0 "" off da1 "" off

Check both items and hit enter. On stable/10, the response is:

        da0 da1

On stable/9 the response is:

        "da0" "da1"

If you use the --separate-output option, the response is the same for both:

        da0
        da1

So applying --separate-output on every platform until either one of two
things occurs 1) dialog(1,3) gets synchronized between stable/9, higher or
2) we drop support for stable/9.

Reviewed by:    Allan Jude
2014-04-18 00:48:26 +00:00
jhb
2e8b45c43c MFC 258860,260167,260238,260397:
- Restructure the VMX code to enter and exit the guest. In large part this
  change hides the setjmp/longjmp semantics of VM enter/exit.
  vmx_enter_guest() is used to enter guest context and vmx_exit_guest() is
  used to transition back into host context.

  Fix a longstanding race where a vcpu interrupt notification might be
  ignored if it happens after vmx_inject_interrupts() but before host
  interrupts are disabled in vmx_resume/vmx_launch. We now call
  vmx_inject_interrupts() with host interrupts disabled to prevent this.
- The 'protection' field in the VM exit collateral for the PAGING exit is
  not used - get rid of it.

Reviewed by:	grehan
2014-04-17 18:00:07 +00:00
jmmv
9ae7565292 MFC r263989: Add atf m4 files from the vendor branch. 2014-04-17 17:20:56 +00:00
ray
cd3c0c7897 MFC r264258
Fix cursor color in reverse video mode.

Sponsored by:	The FreeBSD Foundation
2014-04-17 14:18:30 +00:00
jmmv
9bf14ad939 MFC r264133: Fix variable type to avoid printf formatter warning. 2014-04-17 13:11:56 +00:00
jmmv
78fe543045 Regen src.conf.5.
Notional merge of r264409 which regenerated this manpage after the
rewording of WITH_TESTS.
2014-04-17 13:10:30 +00:00
jmmv
0f2cc399d1 MFC r263173: Remove unnecessary svn:executable property from source file. 2014-04-17 12:42:41 +00:00
trasz
37c6468863 MFC r262837:
Make reset handling in iSCSI target RFC-compliant.  This fixes some rare
hangs with Open-iSCSI (Linux).

Sponsored by:	The FreeBSD Foundation
2014-04-17 12:41:12 +00:00
des
653b49f2d5 MFH (r262555): install the sntp(1) man page 2014-04-17 12:16:27 +00:00
jmmv
8181a88b7a MFC r263090: Make ether_line really report an error when all input is invalid. 2014-04-17 11:49:19 +00:00