]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
9 years ago- When reconfiguring protocol on a lagg, first set it to LAGG_PROTO_NONE,
Gleb Smirnoff [Fri, 26 Sep 2014 08:42:32 +0000 (08:42 +0000)]
- When reconfiguring protocol on a lagg, first set it to LAGG_PROTO_NONE,
  then drop lock, run the attach routines, and then set it to specific
  proto. This removes tons of WITNESS warnings.
- Make lagg protocol attach handlers not failing and allocate memory
  with M_WAITOK.

Sponsored by: Netflix
Sponsored by: Nginx, Inc.

9 years agoAdd new (untested) device IDs to smsc(4)
Gavin Atkinson [Fri, 26 Sep 2014 08:16:26 +0000 (08:16 +0000)]
Add new (untested) device IDs to smsc(4)

MFC after: 1 week

9 years agoMake lagg protos a enum.
Gleb Smirnoff [Fri, 26 Sep 2014 08:12:12 +0000 (08:12 +0000)]
Make lagg protos a enum.

9 years agoMake lagg protocols detach methods returning void.
Gleb Smirnoff [Fri, 26 Sep 2014 07:12:40 +0000 (07:12 +0000)]
Make lagg protocols detach methods returning void.

Sponsored by: Netflix
Sponsored by: Nginx, Inc.

9 years agoFix the description of the -h option.
Mark Johnston [Fri, 26 Sep 2014 07:01:27 +0000 (07:01 +0000)]
Fix the description of the -h option.

Reported by: swills
MFC after: 3 days

9 years agoRefactor the code a little bit to reduce duplicated code.
Xin LI [Fri, 26 Sep 2014 05:05:34 +0000 (05:05 +0000)]
Refactor the code a little bit to reduce duplicated code.

Reviewed by: mjg
MFC after: 2 weeks

9 years agoFix description of mutex acquisition.
Sergey Kandaurov [Fri, 26 Sep 2014 04:33:27 +0000 (04:33 +0000)]
Fix description of mutex acquisition.

Reviewed by: kib
X-MFC with: r272070
Sponsored by: Nginx, Inc.

9 years agoRevert r272122
Pedro F. Giffuni [Thu, 25 Sep 2014 23:04:37 +0000 (23:04 +0000)]
Revert r272122

The patch still needs to be more robust and it broke the
build on MIPS so revert it for now while all the issues
are fixed.

Reported by: ache, davide
PR: 137307

9 years agoExplicitly set errno to 0 before calling strto*.
Xin LI [Thu, 25 Sep 2014 22:47:19 +0000 (22:47 +0000)]
Explicitly set errno to 0 before calling strto*.

Suggested by: mjg
MFC after: 2 weeks

9 years agoThe strtol(3) family of functions would set errno when it hits one.
Xin LI [Thu, 25 Sep 2014 22:37:27 +0000 (22:37 +0000)]
The strtol(3) family of functions would set errno when it hits one.
Check errno and handle it as invalid input.

Obtained from: HardenedBSD
Submitted by: David CARLIER <devnexen@gmail.com>
MFC after: 2 weeks

9 years agoUse a char * as iterator over a bounded string.
Xin LI [Thu, 25 Sep 2014 22:22:57 +0000 (22:22 +0000)]
Use a char * as iterator over a bounded string.

MFC after: 1 week

9 years agoUse strlcpy(). I don't believe these are real problems but it's better
Xin LI [Thu, 25 Sep 2014 22:22:54 +0000 (22:22 +0000)]
Use strlcpy(). I don't believe these are real problems but it's better
to use a safe idiom.

Reported by: Coverity
CID: 1238914
MFC after: 1 week

9 years agoRefactor the code a little bit to avoid NULL deference when
Xin LI [Thu, 25 Sep 2014 22:22:51 +0000 (22:22 +0000)]
Refactor the code a little bit to avoid NULL deference when
allocation was failed.

Reported by: Coverity
CID: 1238915
MFC after: 1 week

9 years agoPlug a file descriptor leak.
Xin LI [Thu, 25 Sep 2014 22:22:48 +0000 (22:22 +0000)]
Plug a file descriptor leak.

Reported by: Coverity
CID: 1238916
MFC after: 1 week

9 years agoBeing able to access a path do not necessarily mean we have access
Xin LI [Thu, 25 Sep 2014 22:22:43 +0000 (22:22 +0000)]
Being able to access a path do not necessarily mean we have access
to a directory. So instead of doing this, we just call mkdir(2)
directly and test if the returned value is 0 or errno is EISDIR.

Reported by: Coverity
CID: 1238925
MFC after: 1 week

9 years ago* Whitespace.
Steve Kargl [Thu, 25 Sep 2014 22:15:10 +0000 (22:15 +0000)]
* Whitespace.

9 years agoRevised to better point to release notes and errata, security advisories,
Warren Block [Thu, 25 Sep 2014 21:57:35 +0000 (21:57 +0000)]
Revised to better point to release notes and errata, security advisories,
and be more specific about the -questions list.

MFC after: 3 days

9 years agoUpdate man(1) to list the different sections of the manual
Allan Jude [Thu, 25 Sep 2014 21:34:57 +0000 (21:34 +0000)]
Update man(1) to list the different sections of the manual

Add each of the intro sections to the 'Also See' list

PR: 193460
Differential Revision: D834
Approved by: bcr (mentor)
Sponsored by: ScaleEngine Inc.

9 years agoFix fcntl(2) compat32 after r270691. The copyin and copyout of the
Konstantin Belousov [Thu, 25 Sep 2014 21:07:19 +0000 (21:07 +0000)]
Fix fcntl(2) compat32 after r270691.  The copyin and copyout of the
struct flock are done in the sys_fcntl(), which mean that compat32 used
direct access to userland pointers.

Move code from sys_fcntl() to new wrapper, kern_fcntl_freebsd(), which
performs neccessary userland memory accesses, and use it from both
native and compat32 fcntl syscalls.

Reported by: jhibbits
Sponsored by: The FreeBSD Foundation
MFC after: 3 days

9 years agoIn kern_linkat() and kern_renameat(), do not call namei(9) while
Konstantin Belousov [Thu, 25 Sep 2014 20:42:25 +0000 (20:42 +0000)]
In kern_linkat() and kern_renameat(), do not call namei(9) while
holding a write reference on the filesystem.  Try to get write
reference in unblocked way after all vnodes are resolved; if failed,
drop all locks and retry after waiting for suspension end.

The VFS_UNMOUNT() methods for UFS and tmpfs try to establish
suspension on unmount, while covered vnode is locked by VFS, which
prevents namei() from stepping over the mount point.  The thread doing
namei() sleeps on the covered vnode lock, owning the write ref.

Reported by: bdrewery
Tested by: bdrewery (previous version), pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

9 years agoMerge the PC98 fdc(4) driver into the MI driver. While here, replace
John Baldwin [Thu, 25 Sep 2014 20:40:24 +0000 (20:40 +0000)]
Merge the PC98 fdc(4) driver into the MI driver.  While here, replace
the magic numbers used with NE7CMD_SPECIFY with invocations of the
NE7_SPEC_x() macros.

Approved by: nyan

9 years agobsdgrep: Work-around for segmentation fault.
Pedro F. Giffuni [Thu, 25 Sep 2014 19:22:26 +0000 (19:22 +0000)]
bsdgrep: Work-around for segmentation fault.

Fix by David Carlier.

Obtained from: HardenedBSD
PR: 167921
MFC after: 1 month

9 years agoreiserfs: Use signed i_nlink
Pedro F. Giffuni [Thu, 25 Sep 2014 19:10:32 +0000 (19:10 +0000)]
reiserfs: Use signed i_nlink

Unlike Linux, FreeBSD's kernel doesn't like unsigned file link
count. This is consistent with our ext2fs implementation.

MFC after: 1 month

9 years agoFactor out some of the duplicated code in the symbol lookup functions, in
Mark Johnston [Thu, 25 Sep 2014 19:08:06 +0000 (19:08 +0000)]
Factor out some of the duplicated code in the symbol lookup functions, in
preparation for adding userland CTF support to DTrace.

MFC after: 1 month
Sponsored by: EMC / Isilon Storage Division

9 years agoUse callout(9) instead of timeout(9).
John Baldwin [Thu, 25 Sep 2014 18:54:36 +0000 (18:54 +0000)]
Use callout(9) instead of timeout(9).

Approved by: nyan

9 years agoUse callout() instead of timeout(). This is almost identical to the
John Baldwin [Thu, 25 Sep 2014 18:53:27 +0000 (18:53 +0000)]
Use callout() instead of timeout().  This is almost identical to the
changes in r271963.

Approved by: nyan

9 years agoAdd strptime(3) support for %U and %W
Pedro F. Giffuni [Thu, 25 Sep 2014 18:52:17 +0000 (18:52 +0000)]
Add strptime(3) support for %U and %W

Add support for the missing POSIX-2001 %U and %W features: the
existing  FreeBSD strptime code recognizes both directives and
validates that the week number lies in the permitted range,
but then simply discards the value.

Initial support for the feature was written by Paul Green with
important fixes by Andrey Chernov. Additional support for
handling tm_wday/tm_yday was written by David Carlier.

PR: 137307
MFC after: 1 month

9 years agoLock ncr(4) and mark it MPSAFE along with various other fixes:
John Baldwin [Thu, 25 Sep 2014 18:43:52 +0000 (18:43 +0000)]
Lock ncr(4) and mark it MPSAFE along with various other fixes:
- Use bus_*() instead of bus_space_*().
- Use device_printf().
- Remove unused global variables and the extra warning suppression
  they required.
- Use callout() instead of timeout().

Reviewed by: se

9 years agoAdd driver for Synopsys DesignWare 3504-0 Universal 10/100/1000
Ruslan Bukin [Thu, 25 Sep 2014 18:03:14 +0000 (18:03 +0000)]
Add driver for Synopsys DesignWare 3504-0 Universal 10/100/1000
Ethernet MAC.

Sponsored by: DARPA, AFRL

9 years agofix a panic when passing ifioctl from a netmap file descriptor to
Luigi Rizzo [Thu, 25 Sep 2014 16:22:32 +0000 (16:22 +0000)]
fix a panic when passing ifioctl from a netmap file descriptor to
the underlying device. This needs to be merged to 10.1

Reported by: Patrick Kelsey
MFC after: 3 days

9 years agoadapt the code to different freebsd versions.
Luigi Rizzo [Thu, 25 Sep 2014 15:57:57 +0000 (15:57 +0000)]
adapt the code to different freebsd versions.
Not necessary to MFC

9 years agoReplace multiple nearly-identical copies of code to walk through an FDT
Ian Lepore [Thu, 25 Sep 2014 15:02:33 +0000 (15:02 +0000)]
Replace multiple nearly-identical copies of code to walk through an FDT
node's interrupts=<...> property creating resource list entries with a
single common implementation.  This change makes ofw_bus_intr_to_rl() the
one true copy of that code and removes the copies of it from other places.

This also adds handling of the interrupts-extended property, which allows
specifying multiple interrupts for a node where each interrupt can have a
separate interrupt-parent.  The bindings for this state that the property
cells contain an xref phandle to the interrupt parent followed by whatever
interrupt info that parent normally expects.  This leads to having a
variable number of icells per interrupt in the property.  For example you
could have <&intc1 1 &intc2 26 9 0 &intc3 9 4>.

Differential Revision: https://reviews.freebsd.org/D803

9 years agoadd missing file
Luigi Rizzo [Thu, 25 Sep 2014 14:25:38 +0000 (14:25 +0000)]
add missing file

Submitted by: Daniel Peyrolon
MFC after: 3 days

9 years agoCross reference cdce(4), ipheth(4) and urndis(4) from each other.
Gavin Atkinson [Thu, 25 Sep 2014 14:22:32 +0000 (14:22 +0000)]
Cross reference cdce(4), ipheth(4) and urndis(4) from each other.

MFC after: 1 week

9 years agoAdd basic man page for ipheth(4).
Gavin Atkinson [Thu, 25 Sep 2014 14:18:34 +0000 (14:18 +0000)]
Add basic man page for ipheth(4).

MFC after: 1 week

9 years agoRemove duplicated header content
Ed Maste [Thu, 25 Sep 2014 13:31:08 +0000 (13:31 +0000)]
Remove duplicated header content

I fail at patch(1).

MFC after: 3 days

9 years agoMove the ARM Samsung s3c2xx0 support files into the samsung directory, to
Gavin Atkinson [Thu, 25 Sep 2014 11:38:26 +0000 (11:38 +0000)]
Move the ARM Samsung s3c2xx0 support files into the samsung directory, to
match other platforms.

Discussed with: andrew

9 years agoDocument the new nvlist_get_parent() function.
Pawel Jakub Dawidek [Thu, 25 Sep 2014 10:59:01 +0000 (10:59 +0000)]
Document the new nvlist_get_parent() function.

Submitted by: Mariusz Zaborski

9 years agoProvide vmxnet3_get_counter() to return counters that are not collected,
Gleb Smirnoff [Thu, 25 Sep 2014 08:36:11 +0000 (08:36 +0000)]
Provide vmxnet3_get_counter() to return counters that are not collected,
but taken from hardware.

9 years agoddb: allow specifying the exact address of the symtab and strtab
Roger Pau Monné [Thu, 25 Sep 2014 08:28:10 +0000 (08:28 +0000)]
ddb: allow specifying the exact address of the symtab and strtab

When the FreeBSD kernel is loaded from Xen the symtab and strtab are
not loaded the same way as the native boot loader. This patch adds
three new global variables to ddb that can be used to specify the
exact position and size of those tables, so they can be directly used
as parameters to db_add_symbol_table. A new helper is introduced, so callers
that used to set ksym_start and ksym_end can use this helper to set the new
variables.

It also adds support for loading them from the Xen PVH port, that was
previously missing those tables.

Sponsored by: Citrix Systems R&D
Reviewed by: kib

ddb/db_main.c:
 - Add three new global variables: ksymtab, kstrtab, ksymtab_size that
   can be used to specify the position and size of the symtab and
   strtab.
 - Use those new variables in db_init in order to call db_add_symbol_table.
 - Move the logic in db_init to db_fetch_symtab in order to set ksymtab,
   kstrtab, ksymtab_size from ksym_start and ksym_end.

ddb/ddb.h:
 - Add prototype for db_fetch_ksymtab.
 - Declate the extern variables ksymtab, kstrtab and ksymtab_size.

x86/xen/pv.c:
 - Add support for finding the symtab and strtab when booted as a Xen
   PVH guest. Since Xen loads the symtab and strtab as NetBSD expects
   to find them we have to adapt and use the same method.

amd64/amd64/machdep.c:
arm/arm/machdep.c:
i386/i386/machdep.c:
mips/mips/machdep.c:
pc98/pc98/machdep.c:
powerpc/aim/machdep.c:
powerpc/booke/machdep.c:
sparc64/sparc64/machdep.c:
 - Use the newly introduced db_fetch_ksymtab in order to set ksymtab,
   kstrtab and ksymtab_size.

9 years ago- Provide bce_get_counter() to return counters that are not collected,
Gleb Smirnoff [Thu, 25 Sep 2014 07:22:24 +0000 (07:22 +0000)]
- Provide bce_get_counter() to return counters that are not collected,
  but taken from hardware.
- Mechanically convert to if_inc_counter() the rest of counters.
- While here fix 3 instances of the same bug, when error counter was ++
  in one place and then assigned in other place, losing the increment.
  Achieve that storing soft errors counters in softc.

9 years ago- Provide lmc_get_counter() to return counters that are not collected,
Gleb Smirnoff [Thu, 25 Sep 2014 07:00:31 +0000 (07:00 +0000)]
- Provide lmc_get_counter() to return counters that are not collected,
  but taken from hardware.
- Mechanically convert to if_inc_counter() the rest of counters.

9 years agoRun through unifdef(1) with slight hand-editing after. It is obvious,
Gleb Smirnoff [Thu, 25 Sep 2014 06:47:38 +0000 (06:47 +0000)]
Run through unifdef(1) with slight hand-editing after. It is obvious,
that the driver is not going to be ever improved in terms of hardware
support, it is going to be only maintained as our kernel APIs change.
Carrying all the compatibility with ancient versions of NetBSD, OpenBSD,
Linux and BSDI, as well as obsoleted FreeBSD versions has no reason.

9 years agoWhitespace cleanup.
Gleb Smirnoff [Thu, 25 Sep 2014 05:47:33 +0000 (05:47 +0000)]
Whitespace cleanup.

9 years ago- Provide mxge_get_counter() to return counters that are not collected,
Gleb Smirnoff [Thu, 25 Sep 2014 05:45:52 +0000 (05:45 +0000)]
- Provide mxge_get_counter() to return counters that are not collected,
  but taken from hardware.
- Mechanically convert to if_inc_counter() the rest of counters.

9 years agoFix NULL pointer deref in ipfw when using dummynet at layer 2.
Sean Bruno [Thu, 25 Sep 2014 02:26:05 +0000 (02:26 +0000)]
Fix NULL pointer deref in ipfw when using dummynet at layer 2.
Drop packet if pkg->ifp is NULL, which is the case here.

ref. https://github.com/HardenedBSD/hardenedBSD
commit 4eef3881c64f6e3aa38eebbeaf27a947a5d47dd7

PR 193861 --  DUMMYNET LAYER2: kernel panic

in this case a kernel panic occurs. Hence, when we do not get an interface,
we just drop the packet in question.

PR: 193681
Submitted by: David Carlier <david.carlier@hardenedbsd.org>
Obtained from: Hardened BSD
MFC after: 2 weeks
Relnotes: yes

9 years agoAdd baseline files for QCOW2.
Marcel Moolenaar [Wed, 24 Sep 2014 22:58:10 +0000 (22:58 +0000)]
Add baseline files for QCOW2.

9 years agoIncrease the memory disk size in the following testcases to avoid mount
Enji Cooper [Wed, 24 Sep 2014 22:51:16 +0000 (22:51 +0000)]
Increase the memory disk size in the following testcases to avoid mount
failures, which would cause cascade failures in the rest of the test
run:

link/15.t, open/19.t, mkdir/11.t, mkfifo/11.t, symlink/11.t

Fail quickly in all of the testcases if mdconfig, mount, umount, etc
fails to avoid issues similar to this in the future

Submitted by: Casey Peel <cpeel@isilon.com>
MFC after: 2 weeks
X-MFC with: r272057
Sponsored by: EMC / Isilon Storage Division

9 years agoFinish QCOW version 2 and stop making it conditional.
Marcel Moolenaar [Wed, 24 Sep 2014 22:45:03 +0000 (22:45 +0000)]
Finish QCOW version 2 and stop making it conditional.

We have a different ordering for the RC block(s) and L2 tables.
This is expected to be a non-issue, because everything is found
through file offsets in the corresponding RC table and L1 table.
Files that grow organically have RC blocks and L2 tables scattered
all over the place anyway.

The reason for the difference is that mkimg needs to be able to
write to a pipe. We can't seek forward and backward to fill in
the bits in non-sequential order.

9 years agoAdd myself (jch) to calendar.freebsd and committers-src.dot
Julien Charbon [Wed, 24 Sep 2014 22:31:40 +0000 (22:31 +0000)]
Add myself (jch) to calendar.freebsd and committers-src.dot

Approved by: jhb (mentor)

9 years agoFix the executed testplan count
Enji Cooper [Wed, 24 Sep 2014 22:18:21 +0000 (22:18 +0000)]
Fix the executed testplan count

MFC after: 2 weeks
X-MFC with: r272057
Sponsored by: EMC / Isilon Storage Division

9 years agoExpect ELOOP on Darwin/Linux with "O_NOFOLLOW was specified and the target is a
Enji Cooper [Wed, 24 Sep 2014 22:14:53 +0000 (22:14 +0000)]
Expect ELOOP on Darwin/Linux with "O_NOFOLLOW was specified and the target is a
symbolic link" case. Assume EMLINK on the rest of the OSes (FreeBSD, Solaris,
etc)

MFC after: 2 weeks
X-MFC with: r272057
Sponsored by: EMC / Isilon Storage Division

9 years agoCatch up with r271119.
Navdeep Parhar [Wed, 24 Sep 2014 20:12:40 +0000 (20:12 +0000)]
Catch up with r271119.

9 years agoUpdate comment (missed this bit in r272079).
Navdeep Parhar [Wed, 24 Sep 2014 20:08:43 +0000 (20:08 +0000)]
Update comment (missed this bit in r272079).

9 years agocxgbe/tom: Catch up with r271119, syncache_add doesn't need tcbinfo lock.
Navdeep Parhar [Wed, 24 Sep 2014 20:04:11 +0000 (20:04 +0000)]
cxgbe/tom:  Catch up with r271119, syncache_add doesn't need tcbinfo lock.

9 years agoMerge apr-util 1.5.3 -> 1.5.4. A minor bug fix update.
Peter Wemm [Wed, 24 Sep 2014 18:38:51 +0000 (18:38 +0000)]
Merge apr-util 1.5.3 -> 1.5.4.  A minor bug fix update.

9 years agoVendor import apr-util-1.5.4 - a minor bug fix release.
Peter Wemm [Wed, 24 Sep 2014 18:12:23 +0000 (18:12 +0000)]
Vendor import apr-util-1.5.4 - a minor bug fix release.

9 years agoUpdate the baseline for QCOW version 1. A bug was found that rendered
Marcel Moolenaar [Wed, 24 Sep 2014 15:15:14 +0000 (15:15 +0000)]
Update the baseline for QCOW version 1. A bug was found that rendered
the baseline invalid.

9 years agoFix the creation of the L2 cluster table for version 1. The blkofs
Marcel Moolenaar [Wed, 24 Sep 2014 15:14:01 +0000 (15:14 +0000)]
Fix the creation of the L2 cluster table for version 1. The blkofs
variable was assigned the image offset in bytes and not in blocks
(i.e. sectors). This had image_data() return FALSE, which meant that
we didn't assign a cluster when we needed and also meant that we
didn't write parts of the L2 table when we should have. The result
being that the actual data clusters were written at the wrong offset.

Improve support for QCOW version 2. We're having the right layout
and even know how many refcnt blocks we need. All we need to do is
populate the refcnt blocks for every cluster we write and allocate
a cluster when we need a new refcnt block. The allocation part is
tricky in that it'll interleave with the assignment of clusters to
L2 tables and data. Since version 2 is not quite done, keep it
compiled out for now.

9 years agoFix ticks wrap issue of lowmem test in vm_pageout_scan
Steven Hartland [Wed, 24 Sep 2014 14:35:08 +0000 (14:35 +0000)]
Fix ticks wrap issue of lowmem test in vm_pageout_scan

Reviewed by: jhb (D818)
MFC after: 3 days
Sponsored by: Multiplay

9 years agoExpand the libthr(3) manpage to document knobs accepted by libthr.so
Konstantin Belousov [Wed, 24 Sep 2014 12:41:39 +0000 (12:41 +0000)]
Expand the libthr(3) manpage to document knobs accepted by libthr.so
and explain some internal working of the library, neccessary to
understand the knobs effects.

Reviewed by: bjk, pluknet
Sponsored by: The FreeBSD Foundation
MFC after: 3 weeks

9 years agoSwitch the defaults to not split the RLIMIT_STACK-sized initial thread
Konstantin Belousov [Wed, 24 Sep 2014 12:39:12 +0000 (12:39 +0000)]
Switch the defaults to not split the RLIMIT_STACK-sized initial thread
stack into the stacks of the created threads.  Add knob
LIBPTHREAD_SPLITSTACK_MAIN to restore the older behaviour.

Sponsored by: The FreeBSD Foundation
MFC after: 3 weeks

9 years ago- Provide wi_get_counter() to return counters that are not collected,
Gleb Smirnoff [Wed, 24 Sep 2014 12:19:00 +0000 (12:19 +0000)]
- Provide wi_get_counter() to return counters that are not collected,
  but taken from hardware.
- Mechanically convert to if_inc_counter() the rest of counters.

9 years ago- Provide txp_get_counter() to return counters that are not collected,
Gleb Smirnoff [Wed, 24 Sep 2014 11:58:23 +0000 (11:58 +0000)]
- Provide txp_get_counter() to return counters that are not collected,
  but taken from hardware.
- Mechanically convert to if_inc_counter() the rest of counters.

9 years agoMechanically convert to if_inc_counter().
Gleb Smirnoff [Wed, 24 Sep 2014 11:33:43 +0000 (11:33 +0000)]
Mechanically convert to if_inc_counter().

9 years ago- Provide vte_get_counter() to return counters that are not collected,
Gleb Smirnoff [Wed, 24 Sep 2014 11:31:46 +0000 (11:31 +0000)]
- Provide vte_get_counter() to return counters that are not collected,
  but taken from hardware.
- Mechanically convert to if_inc_counter() the rest of counters.

9 years ago- Provide igb_get_counter() to return counters that are not collected,
Gleb Smirnoff [Wed, 24 Sep 2014 11:23:55 +0000 (11:23 +0000)]
- Provide igb_get_counter() to return counters that are not collected,
  but taken from hardware.
- Mechanically convert to if_inc_counter() the rest of counters.

9 years agoUpdate code to use new network counter API.
Hans Petter Selasky [Wed, 24 Sep 2014 08:28:34 +0000 (08:28 +0000)]
Update code to use new network counter API.
Fix some minor compile warnings while at it.

Sponsored by: Mellanox Technologies
Suggested by: glebius@
MFC after: 1 week

9 years agoRemake Linux' SOUND_MIXER_INFO IOCTL as a wrapper around new FreeBSD's one.
Alexander Motin [Wed, 24 Sep 2014 08:18:11 +0000 (08:18 +0000)]
Remake Linux' SOUND_MIXER_INFO IOCTL as a wrapper around new FreeBSD's one.

Submitted by: Dmitry Luhtionov <dmitryluhtionov@gmail.com>
MFC after: 3 days

9 years agoImport pjdfstest from ^/vendor/pjdfstest/abf03c3a47745d4521b0e4aa141317553ca48f91
Enji Cooper [Wed, 24 Sep 2014 07:00:35 +0000 (07:00 +0000)]
Import pjdfstest from ^/vendor/pjdfstest/abf03c3a47745d4521b0e4aa141317553ca48f91

- Remove tools/regression/pjdfstest
- Add upgrade directions for contrib/pjdfstest
- Add a note to UPDATING for the move (the reachover Makefiles are coming
  soon)

Functional differences:
- ftruncate testcases are added from upstream (github)

Non-functional differences:
- The copyright for the project has been updated to 2012
- pjd's contact information has been updated

Discussed with: -testing, jmmv, pjd
MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division

9 years agoFix a typo in the upgrade directions
Enji Cooper [Wed, 24 Sep 2014 06:50:14 +0000 (06:50 +0000)]
Fix a typo in the upgrade directions

MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division

9 years agoImprove bsd.progs.mk compatibility with bsd.prog.mk
Enji Cooper [Wed, 24 Sep 2014 04:45:35 +0000 (04:45 +0000)]
Improve bsd.progs.mk compatibility with bsd.prog.mk

1. Do not install FILES/SCRIPTS multiple times if PROGS is specified; this is
   already handled via bsd.prog.mk when it's called recursively (PR: 191055,
   191955).
2. Some variables, like BINDIR and PROGNAME, default to a value if unset
   whereas others get appended to, like CFLAGS. Add support for the former case
   (PR: 191056)
3. Make "checkdpadd" and "clean" available targets for recursive execution.

Reviewed by: marcel, sjg
Phabric: D822
PR: 191055, 191056, 191955
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

9 years agoClean the generated baseline files by adding them to CLEANFILES.
Marcel Moolenaar [Wed, 24 Sep 2014 04:17:29 +0000 (04:17 +0000)]
Clean the generated baseline files by adding them to CLEANFILES.

9 years agoHave distrib-dirs, distribution, hier, hierarchy, redistribute, and reinstall
Enji Cooper [Wed, 24 Sep 2014 04:06:54 +0000 (04:06 +0000)]
Have distrib-dirs, distribution, hier, hierarchy, redistribute, and reinstall
depend on the .MAKE special target

This will allow users to do something like the following to print out the
results of the running the simulated make target with bmake, like some of the
other top-level make targets in Makefile.inc1:

  % make -f Makefile.inc1 -n distribution TARGET=i386 TARGET_ARCH=i386

MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division

9 years agoipfilter bug #558 add in some missing frag table function comments.
Cy Schubert [Wed, 24 Sep 2014 01:21:31 +0000 (01:21 +0000)]
ipfilter bug #558 add in some missing frag table function comments.

Approved by: glebius (mentor)
Obtained from: ipfilter CVS repo (r1.36)

9 years agocxgbe(4): Verify that the addresses in if_multiaddrs really are multicast
Navdeep Parhar [Tue, 23 Sep 2014 22:57:11 +0000 (22:57 +0000)]
cxgbe(4):  Verify that the addresses in if_multiaddrs really are multicast
addresses.  (The chip doesn't really care, it's just that it needs to be
told explicitly if unicast DMACs are checked for "hits" in the hash that
is used after the TCAM entries are all used up).

9 years agoDelete mentions to removed manpages
Craig Rodrigues [Tue, 23 Sep 2014 22:29:03 +0000 (22:29 +0000)]
Delete mentions to removed manpages

Obtained from:  atf (git 23c570d6f393c76dff041360bb5f7779900c7191)

9 years agoThe ATF source code is now hosted on GitHub.
Craig Rodrigues [Tue, 23 Sep 2014 22:20:19 +0000 (22:20 +0000)]
The ATF source code is now hosted on GitHub.

9 years agoConstify a parameter of name2oid. No functional change.
Xin LI [Tue, 23 Sep 2014 22:15:00 +0000 (22:15 +0000)]
Constify a parameter of name2oid.  No functional change.

MFC after: 2 months

9 years agoDon't install /etc/rc.d/keyserv unless MK_OPENSSL == yes
Enji Cooper [Tue, 23 Sep 2014 22:07:08 +0000 (22:07 +0000)]
Don't install /etc/rc.d/keyserv unless MK_OPENSSL == yes

Sponsored by: EMC / Isilon Storage Division

9 years agoWhen reporting some major UNIT ATTENTION condition, like POWER ON OCCURRED
Alexander Motin [Tue, 23 Sep 2014 20:35:48 +0000 (20:35 +0000)]
When reporting some major UNIT ATTENTION condition, like POWER ON OCCURRED
or I_T NEXUS LOSS, clear all minor UAs for the LUN, redundant in this case.

All SAM specifications tell that target MAY do it, but libiscsi initiator
seems require it to be done, terminating connection with error if some more
UAs happen to be reported during iSCSI connection.

MFC after: 3 days

9 years agoNote KBI breakage with DEBUG_LOCKS.
Bryan Drewery [Tue, 23 Sep 2014 19:24:13 +0000 (19:24 +0000)]
Note KBI breakage with DEBUG_LOCKS.

It specifically modifies struct lock, which many other structures embed.

Noted by: kib
MFC after: 3 days
X-MFC-with: r272032

9 years agoFix thinko that, with two map entries like shown below, in that order,
Edward Tomasz Napierala [Tue, 23 Sep 2014 19:12:06 +0000 (19:12 +0000)]
Fix thinko that, with two map entries like shown below, in that order,
made automountd(8) mix them up: trying to access the second one would
trigger mount for the first one.

foo             host:/foo
foobar          host:/foobar

PR: 193584
MFC after: 3 days
Sponsored by: The FreeBSD Foundation

9 years agovm_map_pmap_enter() and pmap_enter_object() are currently not aware of
Konstantin Belousov [Tue, 23 Sep 2014 18:54:23 +0000 (18:54 +0000)]
vm_map_pmap_enter() and pmap_enter_object() are currently not aware of
the wired attribute of the mapping.  As result, some pmap
implementations clear the wired state of the page table entries, which
breaks invariants and allows the entries to be lost.  Avoid calling
vm_map_pmap_enter() for the MADV_WILLNEED on the wired entry, the
pages must be already mapped.

Noted and reviewed by: alc
Sponsored by: The FreeBSD Foundation
MFC after: 3 days

9 years agoRemove settings for pkg_* scripts which are no longer present.
Mark Johnston [Tue, 23 Sep 2014 18:38:06 +0000 (18:38 +0000)]
Remove settings for pkg_* scripts which are no longer present.

MFC after: 1 week

9 years agoBuild plockstat if WITH_PLOCKSTAT is defined.
Rui Paulo [Tue, 23 Sep 2014 18:22:40 +0000 (18:22 +0000)]
Build plockstat if WITH_PLOCKSTAT is defined.

9 years agoFix ASCQ for "Logical unit not ready, manual intervention required" error.
Alexander Motin [Tue, 23 Sep 2014 17:30:00 +0000 (17:30 +0000)]
Fix ASCQ for "Logical unit not ready, manual intervention required" error.

9 years agoDEBUG_LOCKS no longer modifies 'struct vnode', nor does fstat(1) use it.
Bryan Drewery [Tue, 23 Sep 2014 17:04:21 +0000 (17:04 +0000)]
DEBUG_LOCKS no longer modifies 'struct vnode', nor does fstat(1) use it.
fstat(1) now uses libprocstat(9).  There is no userland impact to using this.

MFC after: 3 days

9 years agoMake it more explicitly clear that -t will not change filename.
Bryan Drewery [Tue, 23 Sep 2014 13:58:39 +0000 (13:58 +0000)]
Make it more explicitly clear that -t will not change filename.

MFC after: 3 days

9 years agoHardware driver update from Mellanox Technologies, including:
Hans Petter Selasky [Tue, 23 Sep 2014 12:37:01 +0000 (12:37 +0000)]
Hardware driver update from Mellanox Technologies, including:
 - improved performance
 - better stability
 - new features
 - bugfixes

Supported HCAs:
 - ConnectX-2
 - ConnectX-3
 - ConnectX-3 Pro

Sponsored by: Mellanox Technologies
MFC after: 1 week

9 years agoinstall: re-check failed mkdir for EEXIST
Mateusz Guzik [Tue, 23 Sep 2014 11:41:09 +0000 (11:41 +0000)]
install: re-check failed mkdir for EEXIST

Since the code stats and mkdirs in 2 separate steps, it is possible that
the directory will be created in the meantime by something else (e.g.
concurrent install).[1]

While here alter the code to properly report stat failure, previously it
would always claim it was mkdir which failed.

Noted by: royger [1]
MFC after: 1 week

9 years agoFix thinko that, with two map entries like shown below, in that order,
Edward Tomasz Napierala [Tue, 23 Sep 2014 11:27:43 +0000 (11:27 +0000)]
Fix thinko that, with two map entries like shown below, in that order,
made autofs mix them up: the second one wasn't visible in ls(1) output,
and trying to access it would trigger mount for the first one.

foobar host:/foobar
foo host:/foo

MFC after: 3 days
Sponsored by: The FreeBSD Foundation

9 years agoGiven we are restricting ixl(4) to 64bit platforms now backout the change
Bjoern A. Zeeb [Tue, 23 Sep 2014 08:39:08 +0000 (08:39 +0000)]
Given we are restricting ixl(4) to 64bit platforms now backout the change
r270820 to common (shared) Intel code no longer needed.

MFC after: 3 days

9 years agoAs per [1] Intel only supports this driver on 64bit platforms.
Bjoern A. Zeeb [Tue, 23 Sep 2014 08:33:03 +0000 (08:33 +0000)]
As per [1] Intel only supports this driver on 64bit platforms.
For now restrict it to amd64.  Other architectures might be
re-added later once tested.

Remove the drivers from the global NOTES and files files and move
them to the amd64 specifics.
Remove the drivers from the i386 modules build and only leave the
amd64 version.

Rather than depending on "inet" depend on "pci" and make sure that
ixl(4) and ixlv(4) can be compiled independently [2].  This also
allows the drivers to build properly on IPv4-only or IPv6-only
kernels.

PR: 193824 [2]
Reviewed by: eric.joyner intel.com
MFC after: 3 days

References:
[1] http://lists.freebsd.org/pipermail/svn-src-all/2014-August/090470.html

9 years agoRemove "pci" from CSCOPEDIRS.
Rui Paulo [Tue, 23 Sep 2014 06:32:19 +0000 (06:32 +0000)]
Remove "pci" from CSCOPEDIRS.

9 years agoRemove the empty sys/pci directory.
Rui Paulo [Tue, 23 Sep 2014 06:31:46 +0000 (06:31 +0000)]
Remove the empty sys/pci directory.

9 years agoMove all the power management (SMBus) drivers to their own directory,
Rui Paulo [Tue, 23 Sep 2014 06:31:15 +0000 (06:31 +0000)]
Move all the power management (SMBus) drivers to their own directory,
away from sys/pci.

9 years agoMove amdsmb and nfsmb from dev/pci to their own device directory.
Rui Paulo [Tue, 23 Sep 2014 05:54:18 +0000 (05:54 +0000)]
Move amdsmb and nfsmb from dev/pci to their own device directory.

9 years agoMove pci/ncr to dev/ncr.
Rui Paulo [Tue, 23 Sep 2014 05:37:17 +0000 (05:37 +0000)]
Move pci/ncr to dev/ncr.

9 years agoWe should have an isync after switching MSR[SF] in bootstrap.
Nathan Whitehorn [Tue, 23 Sep 2014 04:13:21 +0000 (04:13 +0000)]
We should have an isync after switching MSR[SF] in bootstrap.

Submitted by: Mark Millard
MFC after: 3 days