]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
9 years agoRemove redundant code.
ae [Thu, 30 Oct 2014 12:44:46 +0000 (12:44 +0000)]
Remove redundant code.
if_detach already did these steps. Also, now we didn't keep routes to link-local
addresses.

Obtained from: Yandex LLC
Sponsored by: Yandex LLC

9 years agoMove ifq drain into in6m_purge().
ae [Thu, 30 Oct 2014 11:34:07 +0000 (11:34 +0000)]
Move ifq drain into in6m_purge().

Suggested by: bms
MFC after: 1 week
Sponsored by: Yandex LLC

9 years agoAdd two new functions to the AGP driver KPI to bind/unbind arbitrary sets
tijl [Thu, 30 Oct 2014 11:27:03 +0000 (11:27 +0000)]
Add two new functions to the AGP driver KPI to bind/unbind arbitrary sets
of pages into the GTT.

Reviewed by: kib
MFC after: 1 month

9 years agoFix mbuf leak in IPv6 multicast code.
ae [Thu, 30 Oct 2014 10:59:57 +0000 (10:59 +0000)]
Fix mbuf leak in IPv6 multicast code.
When multicast capable interface goes away, it leaves multicast groups,
this leads to generate MLD reports, but MLD code does deffered send and
MLD reports are queued in the in6_multi's in6m_scq ifq. The problem is
that in6_multi structures are freed when interface leaves multicast groups
and thread that does deffered send will not take these queued packets.

PR: 194577
MFC after: 1 week
Sponsored by: Yandex LLC

9 years agoUpdate acl(3) to expand on NFSv4 ACL support.
trasz [Thu, 30 Oct 2014 10:56:38 +0000 (10:56 +0000)]
Update acl(3) to expand on NFSv4 ACL support.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

9 years agoMake it clear that ACL flags are NFSv4-only.
trasz [Thu, 30 Oct 2014 10:49:50 +0000 (10:49 +0000)]
Make it clear that ACL flags are NFSv4-only.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

9 years agoFix handling of "conn" mount_nfs(8) option.
trasz [Thu, 30 Oct 2014 09:25:03 +0000 (09:25 +0000)]
Fix handling of "conn" mount_nfs(8) option.

Reviewed by: rmacklem@
MFC after: 1 month
Sponsored by: The FreeBSD Foundation

9 years agoNote that the "timeout" nfs option is in tenths of a second.
trasz [Thu, 30 Oct 2014 09:06:52 +0000 (09:06 +0000)]
Note that the "timeout" nfs option is in tenths of a second.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

9 years agoFix a race condition in TCP timewait between tcp_tw_2msl_reuse() and
jch [Thu, 30 Oct 2014 08:53:56 +0000 (08:53 +0000)]
Fix a race condition in TCP timewait between tcp_tw_2msl_reuse() and
tcp_tw_2msl_scan().  This race condition drives unplanned timewait
timeout cancellation.  Also simplify implementation by holding inpcb
reference and removing tcptw reference counting.

Differential Revision: https://reviews.freebsd.org/D826
Submitted by: Marc De la Gueronniere <mdelagueronniere@verisign.com>
Submitted by: jch
Reviewed By: jhb (mentor), adrian, rwatson
Sponsored by: Verisign, Inc.
MFC after: 2 weeks
X-MFC-With: r264321

9 years agoAdd support for "timeo", "actimeo", "noac", and "proto" options
trasz [Thu, 30 Oct 2014 08:50:01 +0000 (08:50 +0000)]
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.

Reviewed by: rmacklem@
MFC after: 1 month
Sponsored by: The FreeBSD Foundation

9 years agoGet rid of obsolete code in mount_nfs(8).
trasz [Thu, 30 Oct 2014 08:05:51 +0000 (08:05 +0000)]
Get rid of obsolete code in mount_nfs(8).

Reviewed by: rmacklem@
Sponsored by: The FreeBSD Foundation

9 years agofiledesc: make sure to force table reload in fget_unlocked when count == 0
mjg [Thu, 30 Oct 2014 07:21:38 +0000 (07:21 +0000)]
filedesc: make sure to force table reload in fget_unlocked when count == 0

This is a fixup to r273843.

9 years agofix spelling of offset since that is what is used in the body...
jmg [Thu, 30 Oct 2014 06:54:25 +0000 (06:54 +0000)]
fix spelling of offset since that is what is used in the body...

9 years agofiledesc: microoptimize fget_unlocked by retrying obtaining reference count
mjg [Thu, 30 Oct 2014 05:21:12 +0000 (05:21 +0000)]
filedesc: microoptimize fget_unlocked by retrying obtaining reference count
without restarting whole lookup

Restart is only needed when fp was closed by current process, which is a much
rarer event than ref/deref by some other thread.

9 years agofiledesc: get rid of atomic_load_acq_int from fget_unlocked
mjg [Thu, 30 Oct 2014 05:10:33 +0000 (05:10 +0000)]
filedesc: get rid of atomic_load_acq_int from fget_unlocked

A read barrier was necessary because fd table pointer and table size were
updated separately, opening a window where fget_unlocked could read new size
and old pointer.

This patch puts both these fields into one dedicated structure, pointer to which
is later atomically updated. As such, fget_unlocked only needs data a dependency
barrier which is a noop on all supported architectures.

Reviewed by: kib (previous version)
MFC after: 2 weeks

9 years ago.a's are installed in /usr/lib, don't delete them.
delphij [Wed, 29 Oct 2014 22:22:24 +0000 (22:22 +0000)]
.a's are installed in /usr/lib, don't delete them.

9 years agoFix a clang 3.5 warning about abs(3) being given an argument of type
dim [Wed, 29 Oct 2014 20:18:37 +0000 (20:18 +0000)]
Fix a clang 3.5 warning about abs(3) being given an argument of type
quad_t in setusercontext().  While here, sanitize the clamping of the
priority value, and use the correct type for the return value of
login_getcapnum().

Reviewed by: kib
MFC after: 3 days

9 years agoReplace a magic number with the proper definition. This change actually
jkim [Wed, 29 Oct 2014 19:21:19 +0000 (19:21 +0000)]
Replace a magic number with the proper definition.  This change actually
fixes broken state field after r273266, i.e., "CPU-1" was displayed in place
of "RUN".

9 years agoRework the EXAMPLES section to be a bit clearer.
jhb [Wed, 29 Oct 2014 18:01:09 +0000 (18:01 +0000)]
Rework the EXAMPLES section to be a bit clearer.
- Add an example of using etcupdate diff.
- Create a subsection on bootstrapping that is below the simple
  examples.  This should make it clearer that 'etcupdate extract' is
  a one-time operation and not part of the common workflow.  It also
  adds more suggestions on when bootstrapping is needed and additional
  steps to make future merges simpler.

Reviewed by: adrian
MFC after: 3 days

9 years agoFix iscsictl(8) and ctld(8) to correctly handle Windows newlines
trasz [Wed, 29 Oct 2014 12:22:32 +0000 (12:22 +0000)]
Fix iscsictl(8) and ctld(8) to correctly handle Windows newlines
(CRLF) in iscsi.conf and ctl.conf.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

9 years agoKeep the token list sorted.
trasz [Wed, 29 Oct 2014 12:12:27 +0000 (12:12 +0000)]
Keep the token list sorted.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

9 years agoMake it possible to optionally use semicolon to separate statements.
trasz [Wed, 29 Oct 2014 12:10:39 +0000 (12:10 +0000)]
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; }
}

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

9 years agoSimplify code; no functional changes.
trasz [Wed, 29 Oct 2014 09:36:02 +0000 (09:36 +0000)]
Simplify code; no functional changes.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

9 years agoAdd discovery-filter. This makes it possible to restrict which targets
trasz [Wed, 29 Oct 2014 09:26:55 +0000 (09:26 +0000)]
Add discovery-filter.  This makes it possible to restrict which targets
are returned during discovery based on initiator portal, name, and CHAP
credentials.

Reviewed by: mav@
MFC after: 1 month
Sponsored by: The FreeBSD Foundation

9 years agorping: make sure that the CQ event thread can never poll a CQ after it
np [Wed, 29 Oct 2014 06:24:12 +0000 (06:24 +0000)]
rping: make sure that the CQ event thread can never poll a CQ after it
has been destroyed.

Submitted by: Hariprasad at Chelsio dot com
Sponsored by: Chelsio Communications

9 years agoFix the logic inversion in the previous commit by ensuring that the matched
ngie [Wed, 29 Oct 2014 04:32:46 +0000 (04:32 +0000)]
Fix the logic inversion in the previous commit by ensuring that the matched
expression (:M) is empty, not the not matched (:N) is empty. The former case
means we have not found the TEST_SUBDIR value in SUBDIR

Reported by: rodrigc
X-MFC with: r273803
Pointyhat to: me (did not use a clean install root)
Sponsored by: EMC / Isilon Storage Division

9 years agoImplement better handling for ENOSPC error for both CTL and CAM.
mav [Wed, 29 Oct 2014 03:14:29 +0000 (03:14 +0000)]
Implement better handling for ENOSPC error for both CTL and CAM.

This makes VMWare VAAI Thin Provisioning Stun primitive activate, pausing
the virtual machine, when backing storage (ZFS pool) is getting overflowed.

MFC after: 1 week
Sponsored by: iXsystems, Inc.

9 years agomake this compile on arm... bus_size_t is not size_t, and it has
jmg [Wed, 29 Oct 2014 02:23:50 +0000 (02:23 +0000)]
make this compile on arm...  bus_size_t is not size_t, and it has
different sizes on different arches...

9 years agoUserspace library for Chelsio's Terminator 5 based iWARP RNICs (pretty
np [Wed, 29 Oct 2014 01:15:48 +0000 (01:15 +0000)]
Userspace library for Chelsio's Terminator 5 based iWARP RNICs (pretty
much every T5 card that does _not_ have "-SO" in its name is RDMA
capable).

This plugs into the OFED verbs framework and allows userspace RDMA
applications to work over T5 RNICs.  Tested with rping.

Obtained from: Chelsio Communications
Relnotes: Yes
Sponsored by: Chelsio Communications

9 years agoFilter out TESTS_SUBDIRS already added to SUBDIR instead of blindly
ngie [Tue, 28 Oct 2014 23:01:09 +0000 (23:01 +0000)]
Filter out TESTS_SUBDIRS already added to SUBDIR instead of blindly
appending the TESTS_SUBDIRS variable to SUBDIR

Duplicate directory entries can cause unexpected side effects, like
installing the same files multiple times. This can be easily
reproduced via the following testcase prior to this commit:

  SUBDIR= dir
  TESTS_SUBDIRS+= dir

  .include <bsd.test.mk>

Sponsored by: EMC / Isilon Storage Division

9 years agoTreat IFS separators in "$*" as quoted.
jilles [Tue, 28 Oct 2014 22:14:31 +0000 (22:14 +0000)]
Treat IFS separators in "$*" as quoted.

This makes a difference if IFS starts with *, ?, [ or a CTL* byte.

9 years agoRework virtual machine hypervisor detection.
jhb [Tue, 28 Oct 2014 19:17:44 +0000 (19:17 +0000)]
Rework virtual machine hypervisor detection.
- Move the existing code to x86/x86/identcpu.c since it is x86-specific.
- If the CPUID2_HV flag is set, assume a hypervisor is present and query
  the 0x40000000 leaf to determine the hypervisor vendor ID.  Export the
  vendor ID and the highest supported hypervisor CPUID leaf via
  hv_vendor[] and hv_high variables, respectively.  The hv_vendor[]
  array is also exported via the hw.hv_vendor sysctl.
- Merge the VMWare detection code from tsc.c into the new probe in
  identcpu.c.  Add a VM_GUEST_VMWARE to identify vmware and use that in
  the TSC code to identify VMWare.

Differential Revision: https://reviews.freebsd.org/D1010
Reviewed by: delphij, jkim, neel

9 years agoMake the GPIO children attach to the first unit available and not only to
loos [Tue, 28 Oct 2014 18:33:59 +0000 (18:33 +0000)]
Make the GPIO children attach to the first unit available and not only to
unit 0.

It seems that this 'simplification' was copied to all GPIO drivers in tree.

This fix a bug where a GPIO controller could fail to attach its children
(gpioc and gpiobus) if another GPIO driver attach first.

9 years agoAlways request a completion for every work request for iWARP. The
np [Tue, 28 Oct 2014 18:10:57 +0000 (18:10 +0000)]
Always request a completion for every work request for iWARP.  The
initial MPA exchange must be tracked this way so that t4_tom's state for
the tid is all clean at the time the tid transitions to RDMA mode.  Once
it does, t4_tom is out of the way and iw_cxgbe uses the qp endpoints
directly.

Sponsored by: Chelsio Communications

9 years agoImport in latest mtree from NetBSD to fix a bug in parsing group files
brooks [Tue, 28 Oct 2014 17:52:26 +0000 (17:52 +0000)]
Import in latest mtree from NetBSD to fix a bug in parsing group files
that jmg fixed upstream.

MFC after: 1 week
Sponsored by: DARPA, AFRL

9 years agoDocument iSNS defaults.
trasz [Tue, 28 Oct 2014 17:11:51 +0000 (17:11 +0000)]
Document iSNS defaults.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

9 years agoFix renaming a group via the gr_copy function
bapt [Tue, 28 Oct 2014 16:27:29 +0000 (16:27 +0000)]
Fix renaming a group via the gr_copy function

Add a regression test to pw(8) because the bug was discovered via using:
pw groupmod

PR: 187189
Reported by: mcdouga9@egr.msu.edu
Tested by: mcdouga9@egr.msu.edu
Patch by: Marc de la Gueronniere

9 years agoActually install casuword(9) to fix build.
jkim [Tue, 28 Oct 2014 16:19:02 +0000 (16:19 +0000)]
Actually install casuword(9) to fix build.

9 years agoEnsure pw userdel -u <invalid> do not try to remove root
bapt [Tue, 28 Oct 2014 15:46:22 +0000 (15:46 +0000)]
Ensure pw userdel -u <invalid> do not try to remove root

Check the uid passed is actually a number as early as possible

MFC after: 1 week

9 years agoFix atf syntax
bapt [Tue, 28 Oct 2014 15:33:15 +0000 (15:33 +0000)]
Fix atf syntax

9 years agoConvert kern_umtx.c to use fueword() and casueword().
kib [Tue, 28 Oct 2014 15:30:33 +0000 (15:30 +0000)]
Convert kern_umtx.c to use fueword() and casueword().

Also fix some mishandling of suword(9) errors as errno, which resulted
in spurious ERESTART.

Sponsored by: The FreeBSD Foundation
Tested by: pho
MFC after: 3 weeks

9 years agoReplace some calls to fuword() by fueword() with proper error checking.
kib [Tue, 28 Oct 2014 15:28:20 +0000 (15:28 +0000)]
Replace some calls to fuword() by fueword() with proper error checking.

Sponsored by: The FreeBSD Foundation
Tested by: pho
MFC after: 3 weeks

9 years agoAdd fueword(9) and casueword(9) functions. They are like fuword(9)
kib [Tue, 28 Oct 2014 15:22:13 +0000 (15:22 +0000)]
Add fueword(9) and casueword(9) functions.  They are like fuword(9)
and casuword(9), but do not mix value read and indication of fault.

I know (or remember) enough assembly to handle x86 and powerpc.  For
arm, mips and sparc64, implement fueword() and casueword() as wrappers
around fuword() and casuword(), which means that the functions cannot
distinguish between -1 and fault.

On architectures where fueword() and casueword() are native, implement
fuword() and casuword() using fueword() and casuword(), to reduce
assembly code duplication.

Sponsored by: The FreeBSD Foundation
Tested by: pho
MFC after: 2 weeks (ia64 needs treating)

9 years agoDo not delete the group wheel when bad argument is passed to pw groupdel -g
bapt [Tue, 28 Oct 2014 14:54:04 +0000 (14:54 +0000)]
Do not delete the group wheel when bad argument is passed to pw groupdel -g

Check that the -g argument is actually a number, if not report an error.
This argument is converted without checking with atoi(3) later so without this
check it converts any alpha entries into 0 meaning it deletes the group wheel

Add a regression test about it

PR: 90114
Reported by: bkoenig@cs.tu-berlin.de
MFC after: 1 week

9 years agoAdd missing /usr/lib/debug directories
emaste [Tue, 28 Oct 2014 14:48:52 +0000 (14:48 +0000)]
Add missing /usr/lib/debug directories

Directories for /usr/lib{,32}/{i18n,private} were missing from the mtree
file, which caused installworld to install the files that should be in
the directory as the name of the directory.

9 years agoFix a regression in pw usermod -G list
bapt [Tue, 28 Oct 2014 14:19:17 +0000 (14:19 +0000)]
Fix a regression in pw usermod -G list

The user was perperly adding the to different groups from "list" but was not
removed from the other groups it could have belong to.
While here add a regression test about this bug

PR: 185666
Reported by: sub.mesa@gmail.com
MFC after: 1 week

9 years agoRemove spurious libelf dependency.
nwhitehorn [Tue, 28 Oct 2014 14:11:54 +0000 (14:11 +0000)]
Remove spurious libelf dependency.

Submitted by: pluknet

9 years agoMake some infiniband example utilities easily buildable:
hselasky [Tue, 28 Oct 2014 13:38:10 +0000 (13:38 +0000)]
Make some infiniband example utilities easily buildable:
- Add new Makefiles.
- Add more include directories when building.
- Fixed a printf() formatting string.

MFC after: 3 days
Sponsored by: Mellanox Technologies

9 years agoThe SYSCTL data pointers can come from userspace and must not be
hselasky [Tue, 28 Oct 2014 12:00:39 +0000 (12:00 +0000)]
The SYSCTL data pointers can come from userspace and must not be
directly accessed. Although this will work on some platforms, it can
throw an exception if the pointer is invalid and then panic the kernel.

Add a missing SYSCTL_IN() of "SCTP_BASE_STATS" structure.

MFC after: 3 days
Sponsored by: Mellanox Technologies

9 years agoWhen a group is renamed then the group has been invalidated for sure.
bapt [Tue, 28 Oct 2014 11:20:30 +0000 (11:20 +0000)]
When a group is renamed then the group has been invalidated for sure.
In that case get the group information using the new name.

Add a regression test about this bug

PR: 193704
Reported by: az

9 years agoAdd regression tests for the timeout(1) utility
bapt [Tue, 28 Oct 2014 10:39:41 +0000 (10:39 +0000)]
Add regression tests for the timeout(1) utility

They are modeled over the regression tests that are provided for the GNU
coreutils timeout(1) utility

9 years agoFix build after previous commit. While here, improve error messages.
trasz [Tue, 28 Oct 2014 10:39:29 +0000 (10:39 +0000)]
Fix build after previous commit.  While here, improve error messages.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

9 years agoImprove compatibility with GNU timeout
bapt [Tue, 28 Oct 2014 10:33:31 +0000 (10:33 +0000)]
Improve compatibility with GNU timeout

According to the coreutils regression testsuite for timeout(1)
It is expect to exit with a status being:
125 in case an invalid duration or signal is passed in arguments
126 in case an invalid command is passed in arguments
127 in case the command passed in arguments does not exists.

While here document this behaviour in the man page

9 years agoRemove the distinction between strings and numbers from ctld(8) yacc parser.
trasz [Tue, 28 Oct 2014 10:25:59 +0000 (10:25 +0000)]
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.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

9 years agoReported by: Coverity
araujo [Tue, 28 Oct 2014 07:19:02 +0000 (07:19 +0000)]
Reported by: Coverity
CID: 1249760
Reviewed by: neel
Approved by: neel
Sponsored by: QNAP Systems Inc.

9 years agoSimplify sys_getloginclass.
mjg [Tue, 28 Oct 2014 04:59:33 +0000 (04:59 +0000)]
Simplify sys_getloginclass.

Just use current thread credentials as they have the same accuracy as the
ones obtained from proc..

9 years agoChange loginclass mutex to an rwlock.
mjg [Tue, 28 Oct 2014 04:33:57 +0000 (04:33 +0000)]
Change loginclass mutex to an rwlock.

While here reduce nesting in loginclass_free.

Submitted by: Tiwei Bie <btw mail.ustc.edu.cn>
X-Additional: JuniorJobs project
MFC after: 2 weeks

9 years agoAllow loading of dtraceall without nfscl if what you really wnat is nfsclient
julian [Tue, 28 Oct 2014 04:18:09 +0000 (04:18 +0000)]
Allow loading of dtraceall without nfscl if what you really wnat is nfsclient

Obtained from: Panzura tree
MFC after: 1 week

9 years agoDrop __DECONST as well as few fixes of style(9).
araujo [Tue, 28 Oct 2014 03:42:09 +0000 (03:42 +0000)]
Drop __DECONST as well as few fixes of style(9).

Phabric: D1012
Suggested by: mjg, jhb
Reviewed by: mjg, jhb
Sponsored by: QNAP Systems Inc.

9 years agoFix prototypes.
kevlo [Tue, 28 Oct 2014 02:05:57 +0000 (02:05 +0000)]
Fix prototypes.

9 years agoAdd CAPABILITIES and CAPABILITY_MODE to powerpc GENERIC64, missed with the addition to
jhibbits [Tue, 28 Oct 2014 01:34:01 +0000 (01:34 +0000)]
Add CAPABILITIES and CAPABILITY_MODE to powerpc GENERIC64, missed with the addition to
GENERIC

MFC after: 3 weeks

9 years agoonly install .pc files when we are not installing 32bit compat libs...
jmg [Mon, 27 Oct 2014 23:43:25 +0000 (23:43 +0000)]
only install .pc files when we are not installing 32bit compat libs...

This fixes the problem of installing the .pc files multiple times...

9 years agoRename XFLAGS to XCFLAGS and XXFLAGS to XCXXFLAGS
bapt [Mon, 27 Oct 2014 23:31:07 +0000 (23:31 +0000)]
Rename XFLAGS to XCFLAGS and XXFLAGS to XCXXFLAGS

This is less confusing names and actually more reflexting what they are intended
to.

Discussed with: brooks

9 years agoUse pkg-1.4-style platform identifiers based on MACHINE_ARCH (e.g.
nwhitehorn [Mon, 27 Oct 2014 23:19:51 +0000 (23:19 +0000)]
Use pkg-1.4-style platform identifiers based on MACHINE_ARCH (e.g.
FreeBSD:11:amd64 instead of freebsd:11:x86:64) when bootstrapping pkg.
Thanks to portmgr for providing symlinks so both styles work.

Reviewed by: bapt
MFC after: 3 weeks

9 years agoiwcm_event status needs to be populated for close_complete_upcall
np [Mon, 27 Oct 2014 23:11:48 +0000 (23:11 +0000)]
iwcm_event status needs to be populated for close_complete_upcall

Submitted by: Hariprasad at Chelsio dot com
Sponsored by: Chelsio Communications

9 years agofix typo, properly install a link to nv for nvlist_freev...
jmg [Mon, 27 Oct 2014 23:03:17 +0000 (23:03 +0000)]
fix typo, properly install a link to nv for nvlist_freev...

9 years agokrping: In verbose mode print only first 128 bytes of krping data.
np [Mon, 27 Oct 2014 22:41:55 +0000 (22:41 +0000)]
krping: In verbose mode print only first 128 bytes of krping data.

Submitted by: Hariprasad at Chelsio dot com.
Sponsored by: Chelsio Communications

9 years agoSome cxgbe/iw_cxgbe fixes:
np [Mon, 27 Oct 2014 22:22:46 +0000 (22:22 +0000)]
Some cxgbe/iw_cxgbe fixes:
- Free rt in c4iw_connect only if it is allocated.
- Call soclose instead of so_shutdown if there is an abort from the peer.
- Close socket and return failure if TOE is not enabled.

Submitted by: Hariprasad at Chelsio dot com
Sponsored by: Chelsio Communications

9 years agoRemove bhyve SVM feature printf's now that they are available in the
grehan [Mon, 27 Oct 2014 22:20:51 +0000 (22:20 +0000)]
Remove bhyve SVM feature printf's now that they are available in the
general CPU feature detection code.

Reviewed by: neel

9 years agoOutput a summary of optional SVM features in dmesg similar to CPU features.
grehan [Mon, 27 Oct 2014 22:02:35 +0000 (22:02 +0000)]
Output a summary of optional SVM features in dmesg similar to CPU features.
If bootverbose is enabled, a detailed list is provided; otherwise, a
single-line summary is displayed.

Differential Revision: https://reviews.freebsd.org/D1008
Reviewed by: jhb, neel
MFC after: 1 week

9 years agoRemove an extra copy of hv_kvp_daemon(8) [1].
delphij [Mon, 27 Oct 2014 21:29:42 +0000 (21:29 +0000)]
Remove an extra copy of hv_kvp_daemon(8) [1].

While I'm there also correct typos in OptionalObsoleteFiles and add
information of the command line options for hv_kvp_daemon(8).

Reported by: jmg [1]
Reviewed by: jmg
MFC after: 2 weeks

9 years agoTidy up functions related to uidinfo management.
mjg [Mon, 27 Oct 2014 20:20:05 +0000 (20:20 +0000)]
Tidy up functions related to uidinfo management.

- reference found uidinfo in uilookup
- reduce nesting by handling shorter cases first

9 years agoDe-k&r-ify function definitions in kern/kern_resource.c
mjg [Mon, 27 Oct 2014 20:18:30 +0000 (20:18 +0000)]
De-k&r-ify function definitions in kern/kern_resource.c

No functional changes.

9 years agoAdd foo_genassym.c files to DPSRCS so dependencies for them are generated.
jhb [Mon, 27 Oct 2014 18:37:11 +0000 (18:37 +0000)]
Add foo_genassym.c files to DPSRCS so dependencies for them are generated.
This ensures these objects are rebuilt to generate an updated header of
assembly constants if needed.

9 years agobin/dd: revert 273734, as it fails on 32bit platforms
pi [Mon, 27 Oct 2014 17:39:37 +0000 (17:39 +0000)]
bin/dd: revert 273734, as it fails on 32bit platforms

Revert: insufficient testing on 32bit platforms

PR: 191263

9 years agoDo not automatically install routes to link-local and interface-local multicast
ae [Mon, 27 Oct 2014 16:15:15 +0000 (16:15 +0000)]
Do not automatically install routes to link-local and interface-local multicast
addresses.

Obtained from: Yandex LLC
Sponsored by: Yandex LLC

9 years agoTiny comment fixup.
glebius [Mon, 27 Oct 2014 16:13:51 +0000 (16:13 +0000)]
Tiny comment fixup.

9 years agoPreserve limitation of "TCP_CA_NAME_MAX" when matching the algorithm
hselasky [Mon, 27 Oct 2014 16:08:41 +0000 (16:08 +0000)]
Preserve limitation of "TCP_CA_NAME_MAX" when matching the algorithm
name.

MFC after: 3 days
Suggested by: gnn @

9 years agoFix rendering
bapt [Mon, 27 Oct 2014 15:50:47 +0000 (15:50 +0000)]
Fix rendering

Submitted by: brueffer

9 years agoCorrect a typo: this is the manpage for pthread_cleanup_pop, not push.
jhb [Mon, 27 Oct 2014 15:45:37 +0000 (15:45 +0000)]
Correct a typo: this is the manpage for pthread_cleanup_pop, not push.

Submitted by: ian

9 years agoClarify the documentation of pmcstat:
bapt [Mon, 27 Oct 2014 15:33:44 +0000 (15:33 +0000)]
Clarify the documentation of pmcstat:
the -d argument should be passed before -p, -s, -P or -S to be taken in account

Differential Revision: https://reviews.freebsd.org/D1011
Reviewed by: adrian, gnn
MFC after: 1 week

9 years agobin/dd: Fix incorrect casting of arguments
pi [Mon, 27 Oct 2014 11:38:17 +0000 (11:38 +0000)]
bin/dd: Fix incorrect casting of arguments

dd(1) casts many of its numeric arguments from uintmax_t to intmax_t
and back again to detect whether or not the original arguments were
negative. This caused wrong behaviour in some boundary cases:

$ dd if=/dev/zero of=/dev/null count=18446744073709551615
dd: count cannot be negative

After the fix:

$ dd if=/dev/zero of=/dev/null count=18446744073709551615
dd: count: Result too large

PR: 191263
Submitted by: will@worrbase.com
Approved by: cognet@

9 years agoMake assignments to "net.inet.tcp.cc.algorithm" work by fixing a bad
hselasky [Mon, 27 Oct 2014 11:21:47 +0000 (11:21 +0000)]
Make assignments to "net.inet.tcp.cc.algorithm" work by fixing a bad
string comparison.

MFC after: 3 days
Reported by: Jukka Ukkonen <jau789@gmail.com>
Sponsored by: Mellanox Technologies

9 years agoRemove unused function.
ae [Mon, 27 Oct 2014 10:34:09 +0000 (10:34 +0000)]
Remove unused function.

Sponsored by: Yandex LLC

9 years agoRemove comment obsoleted by r273730.
mav [Mon, 27 Oct 2014 09:30:57 +0000 (09:30 +0000)]
Remove comment obsoleted by r273730.

MFC after: 1 week

9 years agoReduce code duplication around Write Exclusive persistent reservation.
mav [Mon, 27 Oct 2014 09:26:24 +0000 (09:26 +0000)]
Reduce code duplication around Write Exclusive persistent reservation.

While there, allow some more commands to pass persistent reservation.

MFC after: 1 week

9 years agoAdd a method to iicbus to request IIC_M_NOSTOP behaviour for multibyte
kib [Mon, 27 Oct 2014 07:51:26 +0000 (07:51 +0000)]
Add a method to iicbus to request IIC_M_NOSTOP behaviour for multibyte
transfers to be default.  It simplifies porting code which assumes
such settings.

Discussed with: avg, llos, nwhitehorn
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

9 years agoAllow the vfs.nfsd knobs to be set from loader.conf (or using
kib [Mon, 27 Oct 2014 07:47:13 +0000 (07:47 +0000)]
Allow the vfs.nfsd knobs to be set from loader.conf (or using
kenv(8)).  This is useful when nfsd is loaded as module.

Reviewed by: rmacklem
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

9 years agoMerge of 273518, tzdata2014i
edwin [Mon, 27 Oct 2014 05:50:02 +0000 (05:50 +0000)]
Merge of 273518, tzdata2014i

Upgrade to 2014i

Lots of historical data

Pacific/Fiji will go into DST from 2014-11-02 to 2015-01-18
Pacific/Bougainville will go from UTC+10 to UTC+11.
Europe/Minsk will go from FET to MSK.

9 years agogetgrouplist(3) was reimplemented in terms of getgrent_r(3) in r174547, so
markj [Mon, 27 Oct 2014 04:09:23 +0000 (04:09 +0000)]
getgrouplist(3) was reimplemented in terms of getgrent_r(3) in r174547, so
this bug is no longer valid.

MFC after: 3 days

9 years agoSimplify memrw().
alc [Mon, 27 Oct 2014 01:10:40 +0000 (01:10 +0000)]
Simplify memrw().

MFC after: 10 days

9 years agoAllocate buffer for READ BUFFER/WRITE BUFFER commands on demand.
mav [Sun, 26 Oct 2014 23:25:42 +0000 (23:25 +0000)]
Allocate buffer for READ BUFFER/WRITE BUFFER commands on demand.

These commands are rare, but consume additional 256KB RAM per LUN.

MFC after: 1 week

9 years agoAdd a comment explaining the intent behind the I/O reservation [0x72-0x77].
neel [Sun, 26 Oct 2014 21:17:44 +0000 (21:17 +0000)]
Add a comment explaining the intent behind the I/O reservation [0x72-0x77].

9 years agoReplace update from -r271410 accidentally lost in -r273575.
mckusick [Sun, 26 Oct 2014 20:48:26 +0000 (20:48 +0000)]
Replace update from -r271410 accidentally lost in -r273575.

9 years agoFix support for LUN flat space addressing.
mav [Sun, 26 Oct 2014 20:13:46 +0000 (20:13 +0000)]
Fix support for LUN flat space addressing.

MFC after: 1 week

9 years agoAvoid dynamic syscall overhead for statically compiled modules.
mjg [Sun, 26 Oct 2014 19:42:44 +0000 (19:42 +0000)]
Avoid dynamic syscall overhead for statically compiled modules.

The kernel tracks syscall users so that modules can safely unregister them.

But if the module is not unloadable or was compiled into the kernel, there is
no need to do this.

Achieve this by adding SY_THR_STATIC_KLD macro which expands to SY_THR_STATIC
during kernel build and 0 otherwise.

Reviewed by: kib (previous version)
MFC after: 2 weeks

9 years agoChange the type of the first argument to the I/O emulation handlers to
neel [Sun, 26 Oct 2014 19:03:06 +0000 (19:03 +0000)]
Change the type of the first argument to the I/O emulation handlers to
'struct vm *'. Previously it used to be a 'void *' but there is no reason
to hide the actual type from the handler.

Discussed with: tychon
MFC after: 1 week

9 years agoFix CF ERASE breakage caused by 268205.
smh [Sun, 26 Oct 2014 18:41:01 +0000 (18:41 +0000)]
Fix CF ERASE breakage caused by 268205.

This prevents BIO_DELETE requests getting stuck in the TRIM queue which
results in a panic on shutdown due to outstanding requests.

PR: 194606
Reported by: Guido Falsi
Reviewed by: mav
MFC after: 3 days
Sponsored by: Multiplay

9 years agoRemove the ARM_DEVICE_MULTIPASS option and make its effect be the default.
ian [Sun, 26 Oct 2014 18:30:35 +0000 (18:30 +0000)]
Remove the ARM_DEVICE_MULTIPASS option and make its effect be the default.

Multipass device attachment was tested on many arm platforms by users and
only success was reported on the arm@ mailing list.  This is just the
long-delayed followup of making it the default.

Multipass attachment is necessary when using vendor-supplied FDT data,
because our devices may need to be attached in a different order than they
are described in the FDT data.

9 years agoRemove incorrect semicolon.
stefanf [Sun, 26 Oct 2014 17:56:58 +0000 (17:56 +0000)]
Remove incorrect semicolon.