]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/log
FreeBSD/stable/10.git
9 years agoMFC r272044:
delphij [Thu, 4 Dec 2014 23:15:44 +0000 (23:15 +0000)]
MFC r272044:

Constify a parameter of name2oid.  No functional change.

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

9 years agoMFC r275366:
dim [Thu, 4 Dec 2014 01:21:56 +0000 (01:21 +0000)]
MFC r275366:

Pull in r209785 from upstream libc++ trunk (by Marshall Clow):

  Fix a problem exposed by r208825, which caused bind (and other bits of
  libc++) to stop working. And tests

This fix is needed to support clang 3.5.0 and higher, which are more
strict about forming pointer-to-function types with cv-qualifiers or
ref-qualifiers.  See also the upstream PR <http://llvm.org/PR19742> and
<http://llvm.org/viewvc/llvm-project?rev=208825&view=rev>

Reported by: amdmi3

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

9 years agoMFC r274922:
dim [Thu, 4 Dec 2014 01:10:50 +0000 (01:10 +0000)]
MFC r274922:

Fix the following -Werror warning from clang 3.5.0, while building the
ath kernel module:

sys/dev/ath/ath_hal/ar5212/ar5212_reset.c:2642:7: error: taking the absolute value of unsigned type 'unsigned int' has no effect [-Werror,-Wabsolute-value]
                if (abs(lp[0] * EEP_SCALE - target) < EEP_DELTA) {
                    ^
sys/dev/ath/ah_osdep.h:74:18: note: expanded from macro 'abs'
#define abs(_a)         __builtin_abs(_a)
                        ^
sys/dev/ath/ath_hal/ar5212/ar5212_reset.c:2642:7: note: remove the call to '__builtin_abs' since unsigned values cannot be negative
sys/dev/ath/ah_osdep.h:74:18: note: expanded from macro 'abs'
#define abs(_a)         __builtin_abs(_a)
                        ^
1 error generated.

This warning occurs because both lp[0] and target are unsigned, so the
subtraction expression is also unsigned, and calling abs() is a no-op.

However, the intention was to look at the absolute difference between
the two unsigned quantities.  Introduce a small static function to
clarify what we're doing, and call that instead.

Reviewed by: adrian
Differential Revision: https://reviews.freebsd.org/D1212

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

9 years agoMFC r273488:
markj [Wed, 3 Dec 2014 19:44:22 +0000 (19:44 +0000)]
MFC r273488:
Fix some bugs in the error handling of getdevice().

PR: 194506

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

9 years agoMFC r275120:
kib [Wed, 3 Dec 2014 10:42:10 +0000 (10:42 +0000)]
MFC r275120:
Fix SA_SIGINFO | SA_RESETHAND handling, reset disposition after sv_sendsig()
is called.

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

9 years agoMFC r275110:
hselasky [Wed, 3 Dec 2014 09:14:14 +0000 (09:14 +0000)]
MFC r275110:
Add new USB quirk.

PR: 195372

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

9 years agoMFC r275328 and r275330:
hselasky [Wed, 3 Dec 2014 09:08:04 +0000 (09:08 +0000)]
MFC r275328 and r275330:
Add missing libraries when linking and fix building of some infiniband
utilities by updating some header file locations and compiler include
directives.

Sponsored by: Mellanox Technologies

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

9 years agoMFC r274703:
trasz [Wed, 3 Dec 2014 08:22:13 +0000 (08:22 +0000)]
MFC r274703:

Fix typo.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r275124: Fix WWNN/WWPN generation for virtual channels.
mav [Wed, 3 Dec 2014 07:05:17 +0000 (07:05 +0000)]
MFC r275124:  Fix WWNN/WWPN generation for virtual channels.

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

9 years agoMFC r275123: Fix incorrect check, blocking MULTIID functionality.
mav [Wed, 3 Dec 2014 07:04:28 +0000 (07:04 +0000)]
MFC r275123: Fix incorrect check, blocking MULTIID functionality.

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

9 years agoMFC r275101:
mav [Wed, 3 Dec 2014 06:53:49 +0000 (06:53 +0000)]
MFC r275101:
Add bunch of PCI IDs of Intel Wildcat Point (9 Series) chipsets.

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

9 years agoMFC r274821:
brooks [Tue, 2 Dec 2014 22:04:27 +0000 (22:04 +0000)]
MFC r274821:

Merge from CheriBSD:

commit d0c7d235c09fc65dbdb278e7016a96f79c6a49cc
  Make the Altera JTAG UART device driver slightly more forgiving of
  the foibles of a sub-par hrdware interface by increasing the timeout
  for spotting JTAG polling from one to two seconds.

commit 19ed45a18832560dab967c179d83b71081c3a220
  Update comment.

commit 8edfe803f033cc8e33229f99894c2b7496a44d5f
  Add a comment about a device-driver race condition that could cause the BERI
  pipeline to wedge awaiting JTAG in the event that both the low-level console
  and the tty layer decide to write to the JTAG FIFO just before JTAG is
  disconnected.  Resolving this race is a bit tricky as it looks like there
  isn't a way to 'give the character back' to the tty layer when we discover
  the race.  The easy fix is to drop the character, which we don't yet do, but
  perhaps should as that is a better outcome than wedging the pipeline.

commit 2ea26cf579c9defcf31e413e7c9b0fbc159237fc
  Add a comment about an inherent race with hardware in the Altera JTAG
  UART's low-level console code.

Submitted by: rwatson
Sponsored by: DARPA, AFRL

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

9 years agoMFC r274820:
brooks [Tue, 2 Dec 2014 21:23:13 +0000 (21:23 +0000)]
MFC r274820:

Merge from CheriBSD (2e28d2a3090239b30481f35dc452ad95a5c57389):

Remove initalized, but unused devname variable

Sponsored by: DARPA, AFRL

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

9 years agoMFC r274818:
brooks [Tue, 2 Dec 2014 20:28:05 +0000 (20:28 +0000)]
MFC r274818:

Merge from CheriBSD (3422ebe71b6c06fe78b1be73623b240c219e08e3):

Rename beripic to beripic0.

Sponsored by: DARPA, AFRL

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

9 years agoMFC r274806:
brooks [Tue, 2 Dec 2014 19:58:26 +0000 (19:58 +0000)]
MFC r274806:

Add a guard against attempting to invoke the buildenv target with -j# as
that silently exits rather than doing something useful.

Sponsored by: DARPA, AFRL

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

9 years agoMFC r269634:
tijl [Tue, 2 Dec 2014 14:21:06 +0000 (14:21 +0000)]
MFC r269634:

drm: fix usage of vm_phys_fictitious_to_vm_page

vm_phys_fictitious_to_vm_page should not be called directly, even when
operating on a range that has been registered using
vm_phys_fictitious_reg_range. PHYS_TO_VM_PAGE should be used instead
because on arches that use VM_PHYSSEG_DENSE the page might come
directly from vm_page_array.

Reported by: nwhitehorn
Tested by: nwhitehorn, David Mackay <davidm.jx8p@gmail.com>
Sponsored by: Citrix Systems R&D

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

9 years agoMFC r273969:
tijl [Tue, 2 Dec 2014 14:12:05 +0000 (14:12 +0000)]
MFC r273969:

Use default memory type for TTM buffer objects that may be cached.

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

9 years agoMFC r273862,273902:
tijl [Tue, 2 Dec 2014 14:09:54 +0000 (14:09 +0000)]
MFC r273862,273902:

Port the TTM AGP backend to the FreeBSD agp driver and enable AGP support
in the radeonkms driver.

Note: In PCI mode virtual addresses on the graphics card that map to system
RAM are translated to physical addresses by the graphics card itself.   In
AGP mode address translation is done by the AGP chipset so fictitious
addresses appear on the system bus.  For the CPU cache management to work
correctly when the CPU accesses this memory it needs to use the same
fictitious addresses (and let the chipset translate them) instead of using
the physical addresses directly.

Reviewed by: kib

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

9 years agoMFC r273856,273863,273963-273965
tijl [Tue, 2 Dec 2014 13:46:13 +0000 (13:46 +0000)]
MFC r273856,273863,273963-273965

- Add two new functions to the AGP driver KPI to bind/unbind arbitrary sets
  of pages into the GTT.
- Avoid possible overflow in agp_generic_alloc_memory.
- In agp(4) avoid the need to flush all cpu caches with wbinvd between
  updating the GTT and flushing the AGP TLB by storing the GTT in
  write-combining memory.
- In agp_amd_bind_page don't flush the AGP TLB.  It's done by the calling
  function.
- agp_generic_unbind_memory: flush AGP TLB before unwiring pages
  agp_bind_pages: assert that pages have been wired down

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

9 years agoMFC r264321, r264342, r264351, r264356, r273850, r274629:
jch [Tue, 2 Dec 2014 11:47:26 +0000 (11:47 +0000)]
MFC r264321, r264342, r264351, r264356, r273850, r274629:

Currently, the TCP slow timer can starve TCP input processing while it
walks the list of connections in TIME_WAIT closing expired connections
due to contention on the global TCP pcbinfo lock.

To remediate, introduce a new global lock to protect the list of
connections in TIME_WAIT.  Only acquire the TCP pcbinfo lock when
closing an expired connection.  This limits the window of time when
TCP input processing is stopped to the amount of time needed to close
a single connection.

Approved by:    jhb (mentor)

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

9 years agoMFC r274918:
hselasky [Mon, 1 Dec 2014 07:34:25 +0000 (07:34 +0000)]
MFC r274918:
Don't use the synchronization endpoint unless referenced by the
isochronous endpoint descriptor used for the data transfers, hence the
synchronization feature might not be supposed to be supported [yet].
This makes seamless playback synced with the USB HOST clock work with
the DN32-USB module for Midas audio systems and possibly other similar
products from Klark Teknik.

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

9 years agoMFC r275003:
kevlo [Mon, 1 Dec 2014 03:04:15 +0000 (03:04 +0000)]
MFC r275003:
Add missing headers needed by write().

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

9 years agoMFC r275162:
kevlo [Mon, 1 Dec 2014 02:59:05 +0000 (02:59 +0000)]
MFC r275162:
Init array field in the proper place.

Obtained from: OpenBSD

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

9 years agoMFC r273918:
trasz [Sun, 30 Nov 2014 10:36:29 +0000 (10:36 +0000)]
MFC r273918:

Change the default log level for iSCSI target from 3 to 1.  It should
have been 1 from the beginning; not sure how it ended up at 3.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r274325:
bryanv [Sat, 29 Nov 2014 23:05:01 +0000 (23:05 +0000)]
MFC r274325:

  Enable LRO by default when available on vtnet interfaces

  The prior change to not enable LRO by default has confused several
  people. The configurations where LRO is problematic is not the
  typical use case for VirtIO, and due to other issues, this often
  requires checksum offloading to be disabled anyways.

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

9 years agoMFC r273515, r274055, r274063, r274215, r274065, r274502:
bryanv [Sat, 29 Nov 2014 22:48:40 +0000 (22:48 +0000)]
MFC r273515, r274055, r274063, r274215, r274065, r274502:

Add VirtIO console driver.

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

9 years agoMFC r271366 (by mav@):
trasz [Sat, 29 Nov 2014 16:07:15 +0000 (16:07 +0000)]
MFC r271366 (by mav@):

Fix memory leak, reported by Coverity.

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

9 years agoMFC r274278:
trasz [Sat, 29 Nov 2014 16:01:44 +0000 (16:01 +0000)]
MFC r274278:

Improve wording in ctl.conf(5).

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r273896:
trasz [Sat, 29 Nov 2014 15:57:31 +0000 (15:57 +0000)]
MFC r273896:

Build mount_nfs(8) with WARNS=6.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r273848:
trasz [Sat, 29 Nov 2014 15:55:35 +0000 (15:55 +0000)]
MFC r273848:

Get rid of obsolete code in mount_nfs(8).

MFC r273861:

Remove two functions unused after r273848.  Would be nice if clang
or at least scan-build yelled about it.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r273854:
trasz [Sat, 29 Nov 2014 15:51:48 +0000 (15:51 +0000)]
MFC r273854:

Update acl(3) to expand on NFSv4 ACL support.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r273853:
trasz [Sat, 29 Nov 2014 15:50:13 +0000 (15:50 +0000)]
MFC r273853:

Make it clear that ACL flags are NFSv4-only.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r273852:
trasz [Sat, 29 Nov 2014 15:48:47 +0000 (15:48 +0000)]
MFC r273852:

Fix handling of "conn" mount_nfs(8) option.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r273851:
trasz [Sat, 29 Nov 2014 15:43:32 +0000 (15:43 +0000)]
MFC r273851:

Note that the "timeout" nfs option is in tenths of a second.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r273849:
trasz [Sat, 29 Nov 2014 15:41:55 +0000 (15:41 +0000)]
MFC r273849:

Add support for "timeo", "actimeo", "noac", and "proto" options
to mount_nfs(8).  They are implemented on Linux, OS X, and Solaris,
and thus can be expected to appear in automounter maps.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r273822:
trasz [Sat, 29 Nov 2014 15:39:31 +0000 (15:39 +0000)]
MFC r273822:

Fix iscsictl(8) and ctld(8) to correctly handle Windows newlines
(CRLF) in iscsi.conf and ctl.conf.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r273821:
trasz [Sat, 29 Nov 2014 15:37:51 +0000 (15:37 +0000)]
MFC r273821:

Keep the token list sorted.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r273820:
trasz [Sat, 29 Nov 2014 15:36:10 +0000 (15:36 +0000)]
MFC r273820:

Make it possible to optionally use semicolon to separate statements.
This makes it possible to format stuff like this:

target xxx {
lun 0 { path /foo/bar; size 4G; }
}

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r273816:
trasz [Sat, 29 Nov 2014 15:34:17 +0000 (15:34 +0000)]
MFC r273816:

Simplify code; no functional changes.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r273813:
trasz [Sat, 29 Nov 2014 15:32:15 +0000 (15:32 +0000)]
MFC r273813:

Add discovery-filter.  This makes it possible to restrict which targets
are returned during discovery based on initiator portal, name, and CHAP
credentials.

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

9 years agoMFC r272484:
rodrigc [Sat, 29 Nov 2014 08:33:54 +0000 (08:33 +0000)]
MFC r272484:

Add dependencies to various libraries to libzfs and libzpool.

Submitted by: sef

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

9 years agoMFC r274020:
hselasky [Sat, 29 Nov 2014 05:07:24 +0000 (05:07 +0000)]
MFC r274020:
Reduce boot verbosity.

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

9 years agoMFC r275109:
hselasky [Sat, 29 Nov 2014 04:18:56 +0000 (04:18 +0000)]
MFC r275109:
Add support for 64-byte CQE size.

Sponsored by: Mellanox Technologies

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

9 years agoMFC r274744.
cy [Fri, 28 Nov 2014 20:39:35 +0000 (20:39 +0000)]
MFC r274744.

Set the current vnet inside the ioctl handler for ipfilter.

Without this fix, the vnet was NULL and would crash.
This fix is similar to what was done inside the ioctl handler for PF.

Tested by:
   (1) Boot a kernel with "options VIMAGE" enabled
   (2) Type:

   echo "map lo0 from 10.0.0.0/24 to ! 10.0.0.0/24 -> 127.0.0.1/32" > /etc/ipnat.rules ; service ipnat onerestart

PR: 176992
Differential Revision: https://reviews.freebsd.org/D1191

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

9 years agoMFC r274017, r274088 and r275205:
hselasky [Fri, 28 Nov 2014 19:21:46 +0000 (19:21 +0000)]
MFC r274017, r274088 and r275205:

Provide an on-stack temporary buffer for small IOCTL requests.
Avoiding a memory allocation per IOCTL request can give a significant
speedup for applications which heavily rely on IOCTLs.

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

9 years agoMFC r274756:
mav [Fri, 28 Nov 2014 09:23:15 +0000 (09:23 +0000)]
MFC r274756:
Remove residual xpt_release_device() call left after r272406 cleanup.

Excessive release here could trigger use-after-free condition and kernel
panic on LUN 0 disconnect.

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

9 years agoMFC r274840, r274940:
mav [Fri, 28 Nov 2014 08:56:37 +0000 (08:56 +0000)]
MFC r274840, r274940:
Make iSCSI frontend less chatty while waiting for tasks termination.

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

9 years agoMFC r274790: Remove bunch of unused lun variables.
mav [Fri, 28 Nov 2014 08:54:43 +0000 (08:54 +0000)]
MFC r274790: Remove bunch of unused lun variables.

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

9 years agoMFC r274789: Reduce race between LUN destruction and request arrival.
mav [Fri, 28 Nov 2014 08:53:44 +0000 (08:53 +0000)]
MFC r274789: Reduce race between LUN destruction and request arrival.

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

9 years agoMFC r274786: Log errors for absent LUNs too.
mav [Fri, 28 Nov 2014 08:52:38 +0000 (08:52 +0000)]
MFC r274786: Log errors for absent LUNs too.

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

9 years agoI've merged r273770 in a right directory, but committed in a wrong one.
trasz [Thu, 27 Nov 2014 10:51:10 +0000 (10:51 +0000)]
I've merged r273770 in a right directory, but committed in a wrong one.
Fix it (hopefully).

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r273770:
trasz [Thu, 27 Nov 2014 10:48:06 +0000 (10:48 +0000)]
MFC r273770:

Fix build after previous commit.  While here, improve error messages.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r273768:
trasz [Thu, 27 Nov 2014 10:45:55 +0000 (10:45 +0000)]
MFC r273768:

Remove the distinction between strings and numbers from ctld(8) yacc parser.
This fixes problems with passing strings that look like numbers to clauses
that expect strings; previously it caused syntax errors and had to be worked
by user, using quotes.  The workaround introduced in r267833 is no longer
neccessary.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r273690:
trasz [Thu, 27 Nov 2014 10:31:11 +0000 (10:31 +0000)]
MFC r273690:

Mention VAAI and ODX in ctl(4).

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r274750:
ae [Thu, 27 Nov 2014 08:41:31 +0000 (08:41 +0000)]
MFC r274750:
  Use geom attribute "PART::type" to determine partition type and choose
  relevant fsck_xxx utility.

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

9 years agoMFC r273774:
hselasky [Wed, 26 Nov 2014 09:37:35 +0000 (09:37 +0000)]
MFC r273774:
Make some infiniband example utilities easily buildable:
- Add new Makefiles.
- Add more include directories when building.
- Fixed a printf() formatting string.

Sponsored by: Mellanox Technologies

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

9 years agoMFC r274724:
np [Wed, 26 Nov 2014 00:44:48 +0000 (00:44 +0000)]
MFC r274724:
cxgbe(4): figure out the max payload size and save it for later.

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

9 years agoMFC r274116:
dteske [Tue, 25 Nov 2014 13:47:53 +0000 (13:47 +0000)]
MFC r274116:

Add new libraries/utilities for data throughput visualization.
dpv(3): dialog progress view library
dpv(1): stream data from stdin or multiple paths with dialog progress view
figpar(3): configuration file parsing library

MFC r274120, r274121, r274123, r274124, r274144, r274146, r274159, r274192,
r274203, r274209, r274226, r274270, and r274851: Fixes following r274116

Reviews:        D714
Relnotes:       New libdpv/libfigpar and dpv(1) utility
Reviewed by:    jelischer, shurd
Discussed at:   MeetBSD California 2014 Vendor/Dev Summit
Discussed on:   -current
Thanks to:      ngie, ian, jelischer, shurd, bapt

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

9 years agoMFC r274900:
dim [Tue, 25 Nov 2014 13:29:13 +0000 (13:29 +0000)]
MFC r274900:

Fix the following -Werror warnings from clang 3.5.0, while building
bsnmpd's snmp_hostres module:

usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.c:204:20: error: absolute value function 'abs' given an argument of type 'const long' but has parameter of type 'int' which may cause truncation of value [-Werror,-Wabsolute-value]
        str[9] = (u_char)(abs(tm->tm_gmtoff) / 3600);
                          ^
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.c:204:20: note: use function 'labs' instead
        str[9] = (u_char)(abs(tm->tm_gmtoff) / 3600);
                          ^~~
                          labs
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.c:205:22: error: absolute value function 'abs' given an argument of type 'const long' but has parameter of type 'int' which may cause truncation of value [-Werror,-Wabsolute-value]
        str[10] = (u_char)((abs(tm->tm_gmtoff) % 3600) / 60);
                            ^
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.c:205:22: note: use function 'labs' instead
        str[10] = (u_char)((abs(tm->tm_gmtoff) % 3600) / 60);
                            ^~~
                            labs

Since tm::tm_gmtoff is a long, use labs(3) instead.

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

9 years agoMFC r274898:
dim [Tue, 25 Nov 2014 13:12:45 +0000 (13:12 +0000)]
MFC r274898:

Fix the following -Werror warnings from clang 3.5.0, while building
usr.sbin/rtadvd:

usr.sbin/rtadvd/rtadvd.c:1291:7: error: taking the absolute value of unsigned type 'unsigned int' has no effect [-Werror,-Wabsolute-value]
                    abs(preferred_time - pfx->pfx_pltimeexpire) > rai->rai_clockskew) {
                    ^
usr.sbin/rtadvd/rtadvd.c:1291:7: note: remove the call to 'abs' since unsigned values cannot be negative
                    abs(preferred_time - pfx->pfx_pltimeexpire) > rai->rai_clockskew) {
                    ^~~
usr.sbin/rtadvd/rtadvd.c:1324:7: error: taking the absolute value of unsigned type 'unsigned int' has no effect [-Werror,-Wabsolute-value]
                    abs(valid_time - pfx->pfx_vltimeexpire) > rai->rai_clockskew) {
                    ^
usr.sbin/rtadvd/rtadvd.c:1324:7: note: remove the call to 'abs' since unsigned values cannot be negative
                    abs(valid_time - pfx->pfx_vltimeexpire) > rai->rai_clockskew) {
                    ^~~
2 errors generated.

These warnings occur because both preferred_time and pfx_pltimeexpire
are uint32_t's, so the subtraction expression is also unsigned, and
calling abs() is a no-op.

However, the intention was to look at the absolute difference between
the two unsigned quantities.  Introduce a small static function to
clarify what we're doing, and call that instead.

Reviewed by: hrs
Differential Revision: https://reviews.freebsd.org/D1197

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

9 years agoMFC r274856:
dim [Tue, 25 Nov 2014 12:58:21 +0000 (12:58 +0000)]
MFC r274856:

Avoid undefined behaviour in gas's rotate_left() macro for n == 0.
Otherwise, clang can effectively remove the first iteration of the for
loops where this macro is invoked, and as a result, "cmp r0, #99" fails
to assemble.

Obtained from: joerg at netbsd

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

9 years agoMFC r274847:
dim [Tue, 25 Nov 2014 12:45:31 +0000 (12:45 +0000)]
MFC r274847:

Fix the following -Werror warnings from clang 3.5.0, while building
usr.bin/locate:

usr.bin/locate/locate/util.c:249:29: error: taking the absolute value of unsigned type 'unsigned int' has no effect [-Werror,-Wabsolute-value]
                            MAXPATHLEN, abs(i) < abs(htonl(i)) ? i : htonl(i));
                                                 ^
usr.bin/locate/locate/util.c:249:29: note: remove the call to 'abs' since unsigned values cannot be negative
                            MAXPATHLEN, abs(i) < abs(htonl(i)) ? i : htonl(i));
                                                 ^~~
usr.bin/locate/locate/util.c:274:32: error: taking the absolute value of unsigned type 'unsigned int' has no effect [-Werror,-Wabsolute-value]
                            MAXPATHLEN, abs(word) < abs(htonl(word)) ? word :
                                                    ^
usr.bin/locate/locate/util.c:274:32: note: remove the call to 'abs' since unsigned values cannot be negative
                            MAXPATHLEN, abs(word) < abs(htonl(word)) ? word :
                                                    ^~~

The problem is that ntohl() always returns an unsigned quantity.  In
this case, it's expected to be cast back to a signed integer, but to
stop complaints about abs() we just store it into an integer, and don't
call ntohl() again.

Reviewed by: ngie
Differential Revision: https://reviews.freebsd.org/D1196

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

9 years agoMFC r274846:
dim [Tue, 25 Nov 2014 12:19:05 +0000 (12:19 +0000)]
MFC r274846:

Fix the following -Werror warning from clang 3.5.0, while building
usr.bin/cpio on amd64 (or any arch with 64-bit time_t):

contrib/libarchive/cpio/cpio.c:1143:6: error: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Werror,-Wabsolute-value]
if (abs(mtime - now) > (365/2)*86400)
    ^
contrib/libarchive/cpio/cpio.c:1143:6: note: use function 'labs' instead
if (abs(mtime - now) > (365/2)*86400)
    ^~~
    labs
1 error generated.

This is because time_t is a long on amd64. To avoid the warning, just
copy the equivalent test from a few lines before, which is used in the
Windows case, and which is type safe.

Reviewed by: emaste
Differential Revision: https://reviews.freebsd.org/D1198

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

9 years agoMFC r273585:
trasz [Mon, 24 Nov 2014 08:09:50 +0000 (08:09 +0000)]
MFC r273585:

Improve ctld.conf example.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r273470:
trasz [Mon, 24 Nov 2014 08:06:29 +0000 (08:06 +0000)]
MFC r273470:

Fix ctl.conf example to use proper paths to ZVOLs.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r273467:
trasz [Mon, 24 Nov 2014 08:04:40 +0000 (08:04 +0000)]
MFC r273467:

Comment out parts about iSER; it's not implemented.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r273584:
trasz [Mon, 24 Nov 2014 07:59:44 +0000 (07:59 +0000)]
MFC r273584:

Make the initiator-name and initiator-portal checks a little nicer.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC 273583:
trasz [Mon, 24 Nov 2014 07:57:18 +0000 (07:57 +0000)]
MFC 273583:

Tidy up the login code; no functional changes.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r273760:
kevlo [Mon, 24 Nov 2014 01:56:33 +0000 (01:56 +0000)]
MFC r273760:
Fix prototypes.

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

9 years agoMFC r274407
grehan [Mon, 24 Nov 2014 01:25:19 +0000 (01:25 +0000)]
MFC r274407

  Fix incorrect reading of 32-bit modinfo by 64-bit loaders.

  The various structures in the mod_metadata set of a FreeBSD kernel and
  modules contain pointers. The FreeBSD loader correctly deals with a
  mismatch in loader and kernel pointer size (e.g. 32-bit i386/ppc
  loader, loading 64-bit amd64/ppc64 kernels), but wasn't dealing with
  the inverse case where a 64-bit loader was loading a 32-bit kernel.

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

9 years agoMFC r273635, r273793, r274797: Add basic iSNS client to the iSCSI target.
mav [Mon, 24 Nov 2014 00:47:04 +0000 (00:47 +0000)]
MFC r273635, r273793, r274797: Add basic iSNS client to the iSCSI target.

This makes ctld(8) register its iSCSI targets and portals on configured
iSNS servers to allow initiators find them without active discovery.

Fetching of allowed initiators from iSNS is not implemented now, so target
ACLs still should be configured manually.

Relnotes: Yes
Sponsored by: iXsystems, Inc.

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

9 years agoMFC r274328:
mav [Sun, 23 Nov 2014 04:17:39 +0000 (04:17 +0000)]
MFC r274328:
Make both iSCSI initiator and target support base64 encoded CHAP data.

While all tested initiators and targets use hex-encoded CHAP data, RFC also
allows base64 encoding there, and Microsoft certificaition tool uses it.

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

9 years agoMFC:
n_hibma [Sat, 22 Nov 2014 20:55:21 +0000 (20:55 +0000)]
MFC:
------------------------------------------------------------------------
r274792 | n_hibma | 2014-11-21 15:53:42 +0100 (Fri, 21 Nov 2014) | 5
lines

Simply remove the tmp dir before creating the symlink. We are doing
chroots all over the place, so there is bound to be a stale file lying
around in there (in my case samba lock files from creating accounts). If
we don't do that, the symlink later will fail.

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

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

9 years agoMFC r273543:
trasz [Sat, 22 Nov 2014 17:58:39 +0000 (17:58 +0000)]
MFC r273543:

Clean up (refactor) discovery a little; no functional changes.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r273468:
trasz [Sat, 22 Nov 2014 17:56:03 +0000 (17:56 +0000)]
MFC r273468:

Remove misleading statement.  Bump date.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r273466:
trasz [Sat, 22 Nov 2014 17:54:11 +0000 (17:54 +0000)]
MFC r273466:

Remove spurious empty line.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r273465:
trasz [Sat, 22 Nov 2014 17:52:33 +0000 (17:52 +0000)]
MFC r273465:

Fix ctld(8) to not show the "auth-group <name> not assigned to any target"
warning for auth-groups assigned to a portal-group.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r273464:
trasz [Sat, 22 Nov 2014 17:50:14 +0000 (17:50 +0000)]
MFC r273464:

Whitespace fixes.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r271320:
trasz [Sat, 22 Nov 2014 17:48:09 +0000 (17:48 +0000)]
MFC r271320:

Use keys_add_int() where appropriate.  No functional changes.

Sponsored by: The FreeBSD Foundation

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

9 years agovt(4): Support syscons' SC_HISTORY_SIZE to configure history size
dumbbell [Sat, 22 Nov 2014 17:47:03 +0000 (17:47 +0000)]
vt(4): Support syscons' SC_HISTORY_SIZE to configure history size

Therefore, to set histry size to 2000 lines, add the following line to
your kernel configuration file:
    options SC_HISTORY_SIZE=2000

The default history remains at 500 lines.

MFC of: r274117

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

9 years agoMFC r273459:
trasz [Sat, 22 Nov 2014 17:39:39 +0000 (17:39 +0000)]
MFC r273459:

Untangle iSCSI authentication code by splitting off the CHAP
implementation.

Sponsored by: The FreeBSD Foundation

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

9 years agodrm: Take vt(4) default mode from loader tunables
dumbbell [Sat, 22 Nov 2014 17:37:51 +0000 (17:37 +0000)]
drm: Take vt(4) default mode from loader tunables

By default, vt(4) gets the "preferred mode" from DRM, when using a DRM
video driver as its backend. The preferred mode is usually the native
screen resolution.

Now, if this mode isn't appropriate, a user can use loader tunables to
select a mode. The tunables are read in the following order:
    1. kern.vt.fb.modes.$connector_name
    2. kern.vt.fb.default_mode

For example, to set a 1024x768 mode, no matter the connector:
    kern.vt.fb.default_mode="1024x768"

To set a 800x600 mode only on the laptop builtin screen:
    kern.vt.fb.modes.LVDS-1="800x600"

Beside r274031, this MFC includes:

r274049:
  drm: When reading connector mode tunables, list connectors

  ... and their associated tunables. This gives a way to know the list of
  available connectors, no matter the driver.

  The problem is that xrandr(1) can list connectors but it uses a
  different naming.

r274050:
  vt(4): Document kern.vt.fb.default_mode and kern.vt.fb.modes.*

  Those tunables are used to set a specific mode in vt(4) instead of using
  the default mode.

  Differential Revision: https://reviews.freebsd.org/D1098
  Reviewed by: ak@, emaste@, kwm@

r274051:
  vt(4): Improve the description of kern.vt.fb.modes.$connector

  Differential Revision: https://reviews.freebsd.org/D1098
  Submitted by: emaste@

r274053:
  vt(4): Start new sentences on their own lines

  Submitted by: brueffer@

MFC of: r274031, r274049, r274050, r274051, r274053

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

9 years agodrm: Lower priority of three messages related to invalid EDID
dumbbell [Sat, 22 Nov 2014 17:19:39 +0000 (17:19 +0000)]
drm: Lower priority of three messages related to invalid EDID

Like in r259717, the prority goes from "error" to "debug" to avoid
spamming logs when the connectors are polled.

PR: 194770
Submitted by: Larry Rosenman <ler@lerctr.org>
MFC of: r273962, r274587

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

9 years agovt(4): Fix keyboard allocation when kbdmux(4) isn't used
dumbbell [Sat, 22 Nov 2014 17:10:57 +0000 (17:10 +0000)]
vt(4): Fix keyboard allocation when kbdmux(4) isn't used

The problem was that only the kbdmux keyboard index was saved in
vd->vd_keyboard. This index is -1 when kbdmux isn't used. In this
case, the keyboard was correctly allocated, but the returned index was
discarded.

PR: 194718
MFC of: r273973

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

9 years agovt(4): Adjust the cursor position after changing the window size
dumbbell [Sat, 22 Nov 2014 16:55:55 +0000 (16:55 +0000)]
vt(4): Adjust the cursor position after changing the window size

A new terminal_set_cursor() is added: it wraps the existing
teken_set_cursor() function.

In vtbuf_grow(), the cursor position is adjusted at the end of the
function. In vt_change_font(), we call terminal_set_cursor() just after
terminal_set_winsize_blank(), while the terminal is mute.

This fixes a bug where, after loading a kernel video driver which
increases the terminal window size, the cursor remains at its old
position, in other words, in the middle of the display content.

PR: 194421
MFC of: r273932

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

9 years agoMFC r274555:
kib [Sat, 22 Nov 2014 09:38:18 +0000 (09:38 +0000)]
MFC r274555:
Fix END()s for fueword and fueword64, match the name in END() with
entry.

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

9 years agoMFC r274489:
scottl [Sat, 22 Nov 2014 00:01:14 +0000 (00:01 +0000)]
MFC r274489:

Add frame pointers to ASM functions in support.S

Obtained from: Netflix

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

9 years agoMFC r274619:
smh [Fri, 21 Nov 2014 17:08:28 +0000 (17:08 +0000)]
MFC r274619:
Disable TRIM on file backed ZFS vdevs and fix TRIM on init

Sponsored by: Multiplay

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

9 years agoMFC r274230:
ae [Fri, 21 Nov 2014 15:21:39 +0000 (15:21 +0000)]
MFC r274230:
  Pass mbuf to pfil processing before stripping outer IP header as it
  is described in if_enc(4).

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

9 years agoMFC r274501:
kib [Fri, 21 Nov 2014 10:22:54 +0000 (10:22 +0000)]
MFC r274501:
In vfs_write_suspend_umnt(), if suspension cannot be established, do
not forget to restore write ops count when returning the error.

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

9 years agoMFC r274532: Remove mostly obsolete hint to disable LAPIC timers.
mav [Fri, 21 Nov 2014 00:58:58 +0000 (00:58 +0000)]
MFC r274532: Remove mostly obsolete hint to disable LAPIC timers.

It is partially covered by new code and partially by new CPUs.

PR: 195016
Submitted by: tobias.rehbein@web.de

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

9 years agobsdgrep: Work-around for segmentation fault.
emaste [Thu, 20 Nov 2014 19:35:29 +0000 (19:35 +0000)]
bsdgrep: Work-around for segmentation fault.

Fix by David Carlier.

MFC of r272127
Obtained from: HardenedBSD
PR: 167921

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

9 years agoMFC r274434:
ae [Thu, 20 Nov 2014 18:49:11 +0000 (18:49 +0000)]
MFC r274434:
  Fix ips_out_nosa errors accounting.

MFC r274454:
  ipsec6_process_packet is called before ip6_output fixes ip6_plen.
  Update ip6_plen before bpf processing to be able see correct value.

MFC r274455:
  We don't return sp pointer, thus NULL assignment isn't needed.
  And reference to sp will be freed at the end.

MFC r274465:
  Remove redundant ip6_plen initialization.

MFC r274466:
  Strip IP header only when we act in tunnel mode.

MFC r274467:
  Count statistics for the specific address family.

Sponsored by: Yandex LLC

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

9 years agoMFC r274478:
kib [Thu, 20 Nov 2014 11:33:38 +0000 (11:33 +0000)]
MFC r274478:
Fix assertion, &uc->uc_busy is never zero, the intent is to test the
uc_busy value, and not its address.

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

9 years agoMFC r274474:
kib [Thu, 20 Nov 2014 11:29:43 +0000 (11:29 +0000)]
MFC r274474:
Do not try to dereference thread pointer when the value is not a pointer.

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

9 years agoMFC r274473:
kib [Thu, 20 Nov 2014 11:26:06 +0000 (11:26 +0000)]
MFC r274473:
Remove fossil.

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

9 years agoMFC r274154, r274163:
mav [Thu, 20 Nov 2014 01:55:12 +0000 (01:55 +0000)]
MFC r274154, r274163:
Add to CTL support for logical block provisioning threshold notifications.

For ZVOL-backed LUNs this allows to inform initiators if storage's used or
available spaces get above/below the configured thresholds.

Sponsored by: iXsystems, Inc.

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

9 years agoMFC r274477: Fix check for vendor-specific peripheral qualifier.
mav [Thu, 20 Nov 2014 01:50:46 +0000 (01:50 +0000)]
MFC r274477: Fix check for vendor-specific peripheral qualifier.

Submitted by: anton.rang@isilon.com

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

9 years agoMFC r274438:
kib [Wed, 19 Nov 2014 10:25:08 +0000 (10:25 +0000)]
MFC r274438:
For posix_fallocate(2) and posix_fadvise(2), return ESPIPE
when underlying file does not have DFLAG_SEEKABLE set. For
posix_fallocate(2), simplify error handling logic.

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

9 years agoMFC r274376:
hselasky [Wed, 19 Nov 2014 09:03:12 +0000 (09:03 +0000)]
MFC r274376:
Fix some minor TSO issues:
- Improve description of TSO limits.
- Remove a not needed KASSERT()
- Remove some not needed variable casts.

Sponsored by: Mellanox Technologies

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