]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/log
FreeBSD/stable/9.git
11 years agoShift to "FreeBSD 9.1" for what gets printed in manual pages.
kensmith [Tue, 10 Jul 2012 19:05:27 +0000 (19:05 +0000)]
Shift to "FreeBSD 9.1" for what gets printed in manual pages.

Approved by: re (implicit)

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

11 years agoRe-enable IFCAP_TSO6 in cxgb(4) and cxgbe(4) in stable/9. The kernel
np [Mon, 9 Jul 2012 17:25:56 +0000 (17:25 +0000)]
Re-enable IFCAP_TSO6 in cxgb(4) and cxgbe(4) in stable/9.  The kernel
changes needed for all this to work have now been MFC'd to 9 by bz@.

This is a direct commit to stable/9 that removes earlier changes made to
drivers in this branch only.

Approved by: re (kib)

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

11 years agoMFC r238121:
tuexen [Mon, 9 Jul 2012 13:21:49 +0000 (13:21 +0000)]
MFC r238121:
Use CSUM_SCTP_IPV6 for IPv6.

Approved by: re@

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

11 years agoMerge r237162, r237163, r237164, r237226.
melifaro [Mon, 9 Jul 2012 11:53:06 +0000 (11:53 +0000)]
Merge r237162, r237163, r237164, r237226.

Fix improper L4 header handling for IPv6 packets passed via DLT_RAW.
Set netflow v9 observation domain value to fib number instead of node id.
This fixes multi-fib netflow v9 export.
Use time_uptime instead of getnanotime for accouting integer number of seconds.
Simplify IP pointer recovery in case of mbuf reallocation.

Approved by:     ae(mentor)
Approved by:     re

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

11 years agoMFC r237988:
kib [Mon, 9 Jul 2012 10:33:53 +0000 (10:33 +0000)]
MFC r237988:
Issue proper diagnostic on the short writes, also consider the
case of write reporting 0 bytes as short write.

Approved by: re (hrs)

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

11 years agoMFC r238173:
pfg [Mon, 9 Jul 2012 09:11:07 +0000 (09:11 +0000)]
MFC r238173:

Fix issue resizing bin/sh

This partially reverts some changes from r237448 that are causing
breakage when resizing under bin/sh .

Reverted changes from NetBSD are:

Mar 10 20:46:15 2009 - editline.3 read.c
make el_gets set the count to -1 on error to distinguish between EOF and
error.

Feb 19 15:20:22 2009 - read.c sig.c sig.h
reset and redraw on sigcont. From Anon Ymous.

Feb 15 21:24:13 2009
don't restart on EINTR, instead return NULL immediately. From Anon Ymous

PR: 169603
Reported by: Peter Jeremy, David Shao
MFC after: 3 days
Approved by: re

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

11 years agoMerge r234032 from head to stable/9:
rwatson [Mon, 9 Jul 2012 08:42:54 +0000 (08:42 +0000)]
Merge r234032 from head to stable/9:

  When allocation of labels on files is implicitly disabled due to MAC
  policy configuration, avoid leaking resources following failed calls
  to get and set MAC labels by file descriptor.

  Reported by: Mateusz Guzik <mjguzik at gmail.com> + clang scan-build

Approved by: re (kib)

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

11 years agoMerge r229521 from head to stable/9:
rwatson [Mon, 9 Jul 2012 08:27:04 +0000 (08:27 +0000)]
Merge r229521 from head to stable/9:

  Add missing -w to kgdb(1)'s usage().

  Sponsored by: Adara Networks, Inc.

Approved by: re (kib)

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

11 years agoMerge r231712 from head to stable/9:
rwatson [Sun, 8 Jul 2012 21:21:45 +0000 (21:21 +0000)]
Merge r231712 from head to stable/9:

  When initialising the CP0 status register during boot on 64-bit MIPS,
  set all three of the kernel, supervisor, and user-mode 64-bit mode
  flags.  While FreeBSD does not currently use the supervisor ring (and
  hence this is effectively a NOP on most systems), doing this avoids
  triggering an exception on 64-bit MIPS CPUs that don't support 32-bit
  compatibility mode, and therefore don't allow clearing the SX bit.

  Reviewed by:        gonzo
  Sponsored by:       DARPA, SRI International

Approved by:  re (kib)

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

11 years agoMerge r234034 from head to stable/9:
rwatson [Sun, 8 Jul 2012 20:41:54 +0000 (20:41 +0000)]
Merge r234034 from head to stable/9:

  Merge a local fix to OpenBSM's libauditd to avoid a directory descriptor
  leak when iterating over possible audit trail directories.  This fix will
  be merged upstream in an identical form, but hasn't yet appeared in an
  OpenBSM release.

  Submitted by:   guido
  Obtained from:  TrustedBSD Project

Approved by: re (kib)

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

11 years agoMFC of 238149
jfv [Sun, 8 Jul 2012 20:39:00 +0000 (20:39 +0000)]
MFC of 238149

Approved by:re

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

11 years agoMFC of the e1000 drivers: 236406,238148,238151,238181, and 238214
jfv [Sun, 8 Jul 2012 20:35:56 +0000 (20:35 +0000)]
MFC of the e1000 drivers: 236406,238148,238151,238181, and 238214

Approved by:re

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

11 years agoFix RTTVAR scale in net.inet.tcp.hostcache.list sysctl.
trociny [Sun, 8 Jul 2012 19:29:08 +0000 (19:29 +0000)]
Fix RTTVAR scale in net.inet.tcp.hostcache.list sysctl.

Reviewed by: andre
Approved by: re (kib)

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

11 years agoMFC r237049:
tuexen [Sun, 8 Jul 2012 16:14:42 +0000 (16:14 +0000)]
MFC r237049:
Pass flowid explicitly through the stack instead of taking it from
the mbuf chain at different places.
While there: Fix several bugs related to VRFs.

Approved by: re@

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

11 years agoMFC r236956:
tuexen [Sun, 8 Jul 2012 16:11:16 +0000 (16:11 +0000)]
MFC r236956:
Unify the sending of ABORT, SHUTDOWN-COMPLETE and ERROR chunks.
While there: Fix also some minor bugs and prepare for SCTP/DTLS.

Approved by: re@

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

11 years agoMFC r236332:
tuexen [Sun, 8 Jul 2012 16:00:45 +0000 (16:00 +0000)]
MFC r236332:
Seperate SCTP checksum offloading for IPv4 and IPv6.
While there: remove some trainling whitespaces.

Approved by: re@

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

11 years agoMFC r236087:
tuexen [Sun, 8 Jul 2012 15:37:58 +0000 (15:37 +0000)]
MFC r236087:
Get rid of SCTP specific code to avoid CRC32C computations on loopback.
Just use offloading.

Approved by: re

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

11 years agoMFC r236170,236176:
bz [Sun, 8 Jul 2012 14:21:36 +0000 (14:21 +0000)]
MFC r236170,236176:

 It turns out that too many drivers are not only parsing the L2/3/4
 headers for TSO but also for generic checksum offloading.  Ideally we
 would only have one common function shared amongst all drivers, and
 perhaps when updating them for IPv6 we should introduce that.
 Eventually we should provide the meta information along with mbufs to
 avoid (re-)parsing entirely.

 To not break IPv6 (checksums and offload) and to be able to MFC the
 changes without risking to hurt 3rd party drivers, duplicate the v4
 framework, as other OSes have done as well.

 Introduce interface capability flags for TX/RX checksum offload with
 IPv6, to allow independent toggling (where possible).  Add CSUM_*_IPV6
 flags for UDP/TCP over IPv6, and reserve further for SCTP, and IPv6
 fragmentation.  Define CSUM_DELAY_DATA_IPV6 as we do for legacy IP and
 add an alias for CSUM_DATA_VALID_IPV6.

 This pretty much brings IPv6 handling in line with IPv4.
 TSO is still handled in a different way and not via if_hwassist.

 Update ifconfig to allow (un)setting of the new capability flags.
 Update loopback to announce the new capabilities and if_hwassist flags.

 Individual driver updates will have to follow, as will SCTP.

 Removed the IFCAP_ prefix when printing the IPv6 checksum capabilities.

Approved by: re

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

11 years agoMFC r236093:
bz [Sun, 8 Jul 2012 12:39:02 +0000 (12:39 +0000)]
MFC r236093:

 Trim the extra $FreeBSD$ from the comment below the license.  We use
 the __FBSDID() macro on the file now instead.

Approved by: re

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

11 years agoMFC r235950:
bz [Sun, 8 Jul 2012 12:36:44 +0000 (12:36 +0000)]
MFC r235950:

   Factor out the tcp_hc_getmtu() call.  As the comments say it
   applies to both v4 and v6, so only write it once making it easier
   to read the protocol family specifc code.

Approved by: re

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

11 years agoMFC r235953:
bz [Sun, 8 Jul 2012 12:34:12 +0000 (12:34 +0000)]
MFC r235953:

   No need to hold the (expensive) rt lock over (expensive) logging.

Approved by: re

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

11 years agoMFC r235986:
bz [Sun, 8 Jul 2012 12:30:25 +0000 (12:30 +0000)]
MFC r235986:

   Use M_ZERO with malloc rather than calling bzero() ourselves.

   Change if () panic() checks to KASSERT()s as they are only
   catching invariants in code flow but not dependent on network
   input/output.

   Move initial assigments indirecting pointers after the lock
   has been aquired.

   Passing layer boundries, reset M_PROTOFLAGS.

   Remove a NULL assignment before free.

Approved by: re

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

11 years agoMFC r235985:
bz [Sun, 8 Jul 2012 12:26:32 +0000 (12:26 +0000)]
MFC r235985:

   Properly protect the inp read access when handling the control code.
   In the past this was expensive but given the rlock it's not so much
   anymore.

Approved by: re

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

11 years agoMFC r235981,236394
bz [Sun, 8 Jul 2012 12:23:27 +0000 (12:23 +0000)]
MFC r235981,236394

 In case forwarding is turned on for a given address family, refuse to
 queue the packet for LRO and tell the driver to directly pass it on.
 This avoids re-assembly and later re-fragmentation problems when
 forwarding.

 It's not the best solution but the simplest and most effective for
 the moment.

 Make TCP LRO work properly with VIMAGE kernels rather than just panicing.
 There's no VIMAGE context set there yet as this is before if_ethersubr.c.

Approved by: re

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

11 years agoMFC r235962:
bz [Sun, 8 Jul 2012 12:17:56 +0000 (12:17 +0000)]
MFC r235962:

   Factor out Hop-By-Hop option processing.  It's still not heavily used,
   it reduces the footprint of ip6_input() and makes ip6_input() more
   readable.

Approved by: re

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

11 years agoMFC r235961:
bz [Sun, 8 Jul 2012 12:12:34 +0000 (12:12 +0000)]
MFC r235961:

   Add code to handle pre-checked TCP checksums as indicated by mbuf
   flags to save the entire computation for validation if not needed.

   In the IPv6 TCP output path only compute the pseudo-header checksum,
   set the checksum offset in the mbuf field along the appropriate flag
   as done in IPv4.

   In tcp_respond() just initialize the IPv6 payload length to 0 as
   ip6_output() will properly set it.

Approved by: re

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

11 years agoMFC r235960:
bz [Sun, 8 Jul 2012 12:01:11 +0000 (12:01 +0000)]
MFC r235960:

   Simple yet effective change enabling checksum "offload" on loopback
   for IPv6 to avoid expensive computations.

Approved by: re

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

11 years agoMFC r235959:
bz [Sun, 8 Jul 2012 11:57:11 +0000 (11:57 +0000)]
MFC r235959:

   Defer checksum calulations on UDP6 output and respect the mbuf
   flags set by NICs having done checksum validation for us already,
   thus saving the computing time in the input path as well.

Approved by: re

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

11 years agoMFC r235958,236130:
bz [Sun, 8 Jul 2012 11:53:13 +0000 (11:53 +0000)]
MFC r235958,236130:

   Add support for delayed checksum calculations in the IPv6
   output path.  We currently cannot offload to the card if we
   add extension headers (which incl. fragmentation).

   Fix two SCTP offload support copy&paste bugs: calculate
   checksums if fragmenting and no need to flag IPv4 header
   checksums in the IPv6 forwarding path.

 Correctly get the payload length in host byte order.  While we
 already plan to support >64k payload here, the IPv6 header payload
 length obviously is only 16 bit and the calculations need to be right.

Approved by: re

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

11 years agoMFC r235956:
bz [Sun, 8 Jul 2012 11:42:21 +0000 (11:42 +0000)]
MFC r235956:

   Hide the ip6aux functions.  The only one referenced outside ip6_input.c
   is not compiled in yet (__notyet__) in route6.c (r235954, r238231).
   We do have accessor functions that should be used.

Approved by: re

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

11 years agoMFC r235955:
bz [Sun, 8 Jul 2012 11:33:49 +0000 (11:33 +0000)]
MFC r235955:

   Simplify the code removing a return from an earlier else case,
   not differing from the default function return called now.

Approved by: re

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

11 years agoMFC r235954:
bz [Sun, 8 Jul 2012 11:28:33 +0000 (11:28 +0000)]
MFC r235954:

   We currently nowhere set IP6A_SWAP making the entire check useless
   with the current code.  Keep around but do not compile in.

Approved by: re

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

11 years agoMFC r235944:
bz [Sun, 8 Jul 2012 11:24:22 +0000 (11:24 +0000)]
MFC r235944:

   Significantly update tcp_lro for mostly two things:
   1) introduce basic support for IPv6 without extension headers.
   2) try hard to also get the incremental checksum updates right,
      especially also in the IPv4 case for the IP and TCP header.

   Move variables around for better locality, factor things out into
   functions, allow checksum updates to be compiled out, ...

   Leave a few comments on further things to look at in the future,
   though that is not the full list.

   Update drivers with appropriate #includes as needed for IPv6 data
   type in LRO.

Approved by: re

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

11 years agoMFC r235941:
bz [Sun, 8 Jul 2012 10:46:55 +0000 (10:46 +0000)]
MFC r235941:

   in_cksum.h required ip.h to be included for struct ip.  To be
   able to use some general checksum functions like in_addword()
   in a non-IPv4 context, limit the (also exported to user space)
   IPv4 specific functions to the times, when the ip.h header is
   present and IPVERSION is defined (to 4).

Approved by: re

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

11 years agoMFC r235924:
bz [Sun, 8 Jul 2012 10:29:01 +0000 (10:29 +0000)]
MFC r235924:

   Introduce a (for now copied stripped down) in6_cksum_pseudo()
   function.  We should be able to use this from in6_cksum() but
   we should also ponder possible MD specific improvements.
   It takes an extra csum argument to allow for easy checks as
   will be done by the upper layer protocol input paths.

Approved by: re

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

11 years agoMFC r235921:
bz [Sun, 8 Jul 2012 10:04:30 +0000 (10:04 +0000)]
MFC r235921:

   Optimize in6_cksum(), re-ordering work and limiting variable
   initialization, removing a bzero() for mostly re-initialized
   struct values, making use of the newly introduced in6_getscope(),
   as well as converting an if/panic to a KASSERT().

Approved by: re

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

11 years agoMFC r235916:
bz [Sun, 8 Jul 2012 09:49:01 +0000 (09:49 +0000)]
MFC r235916:

   Introduce in6_getscope() to allow more effective checksum
   computations without the need to copy the address to clear the
   scope.

Approved by: re

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

11 years agoMFC r235671:
bz [Sun, 8 Jul 2012 09:06:25 +0000 (09:06 +0000)]
MFC r235671:

   Allow tso4 and tso6 be set individually given we have the bits.
   This will help with drivers not working as expected during the
   transition time and later.

Approved by: re

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

11 years agoMFC r238071:
dim [Fri, 6 Jul 2012 17:42:34 +0000 (17:42 +0000)]
MFC r238071:

Fix clang warning, introduced in the recent dtrace import.

Approved by: re (kib)

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

11 years agoMFC r237581:
bjk [Fri, 6 Jul 2012 03:56:45 +0000 (03:56 +0000)]
MFC r237581:
  Explicitly mention that setting the change and expiry times to zero is
  equivalent to leaving the time unset. [1]

  Wordsmith in the compat support section.

  Use a full path to nologin(8) in the context of setting it as a user's shell,
  keeping a separate cross-reference.

PR: docs/169354 [1]
Approved by: re (hrs), hrs (mentor)

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

11 years agoMFC r237777
ache [Fri, 6 Jul 2012 01:32:53 +0000 (01:32 +0000)]
MFC r237777

Call set_terminal_mode() after video mode change, not before, because
video mode change always reset terminal mode to xterm.
It allows things like 'vidcontrol -T cons25 80x30' works as supposed,
and allows 'allscreens_flags="-T cons25 80x30"' in /etc/rc.conf too.

Approved by:    re (hrs)

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

11 years agoMFC r237636:
trasz [Thu, 5 Jul 2012 16:02:14 +0000 (16:02 +0000)]
MFC r237636:

Add manual page for bxe(4).

Approved by: re (kib)

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

11 years agoMFC r237661:
kib [Thu, 5 Jul 2012 15:41:31 +0000 (15:41 +0000)]
MFC r237661:
Add a test for number of CPUs configured/online.

Approved by: re (kensmith)

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

11 years agoMFC r238022:
mav [Thu, 5 Jul 2012 15:39:30 +0000 (15:39 +0000)]
MFC r238022:
Remove 14 not very useful characters " HDA CODEC PCM" from HDA pcm
device names to shorten them. PulseAudio reported to have problems with
names longer then 63 chars and at least in XMMS long names are inconvinient.

Approved by: re (kib)

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

11 years agoMFC r237660:
kib [Thu, 5 Jul 2012 15:38:32 +0000 (15:38 +0000)]
MFC r237660:
Optimize the handling of SC_NPROCESSORS_CONF, by using auxv AT_NCPU
value if present.

Approved by: re (kensmith)

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

11 years agoMFC r238015:
mav [Thu, 5 Jul 2012 15:35:59 +0000 (15:35 +0000)]
MFC r238015:
Add IDs for some USB controllers I have around. Just a cosmetics.

Approved by: re (kib)

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

11 years agoMFC r237659:
kib [Thu, 5 Jul 2012 15:34:55 +0000 (15:34 +0000)]
MFC r237659:
Ensure that for the object which is a dependency for some filtee,
relocations are performed before the object's initializer is called.

Approved by: re (kensmith)

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

11 years agoMFC r238011:
mav [Thu, 5 Jul 2012 15:32:31 +0000 (15:32 +0000)]
MFC r238011:
Restore GPIO config quirks handling, lost during last big refactoring.
This fixes sound from speakers on some laptops, including MacBook Pro.

Approved by: re (kib)

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

11 years agoMFC r237572:
trasz [Thu, 5 Jul 2012 13:45:23 +0000 (13:45 +0000)]
MFC r237572:

Add missing MLINKS for whatever -> if_whatever.

Approved by: re (kib)

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

11 years agoMFC r237901:
delphij [Wed, 4 Jul 2012 00:54:16 +0000 (00:54 +0000)]
MFC r237901:

tws(4) is interfaced with CAM so move it to the same section.

Reported by: joel
Approved by: re (kib)

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

11 years agoDo not enable IFCAP_TSO6 in cxgb(4) and cxgbe(4) in stable/9. The
np [Tue, 3 Jul 2012 22:17:36 +0000 (22:17 +0000)]
Do not enable IFCAP_TSO6 in cxgb(4) and cxgbe(4) in stable/9.  The
kernel code in 9 isn't quite ready for TSO6 yet.

This is a direct commit to stable/9.  IFCAP_TSO6 works properly in head
and there is no need to disable it over there.

Approved by: re (kib)

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

11 years agoMFC r238008:
wblock [Tue, 3 Jul 2012 16:49:38 +0000 (16:49 +0000)]
MFC r238008:

Add reference to portsnap(8).

Submitted by: Tim Kientzle
Approved by: re

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

11 years agoMFC 237878:
ken [Tue, 3 Jul 2012 15:37:36 +0000 (15:37 +0000)]
MFC 237878:

  r237878 | ken | 2012-06-30 23:32:26 -0600 (Sat, 30 Jun 2012) | 6 lines

  Now that the mps(4) driver is endian-safe, add it to the powerpc 32-bit
  GENERIC config file.

Requested by: nwhitehorn
Approved by: re (kensmith)

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

11 years agoMFC r237848:
kib [Tue, 3 Jul 2012 08:40:20 +0000 (08:40 +0000)]
MFC r237848:
Remove stray blank line.

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

11 years agoMFC 237847:
kib [Tue, 3 Jul 2012 08:23:22 +0000 (08:23 +0000)]
MFC 237847:
Do not test ki_stat as mask.

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

11 years agoMFC r237844, r237845, r237846:
kib [Tue, 3 Jul 2012 08:21:56 +0000 (08:21 +0000)]
MFC r237844, r237845, r237846:
Minor tweaks.

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

11 years agoMFC r238054:
np [Tue, 3 Jul 2012 07:03:14 +0000 (07:03 +0000)]
MFC r238054:
Fix inverted test that resulted in incorrect multicast hw programming.

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

11 years agoMFC r237852
thompsa [Tue, 3 Jul 2012 01:45:28 +0000 (01:45 +0000)]
MFC r237852

 Add the same check as vlan(4) where we ignore the ifnet departure event if the
 interface is just being renamed.

PR: kern/169557

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

11 years agoMFC r238038:
dougb [Mon, 2 Jul 2012 22:18:29 +0000 (22:18 +0000)]
MFC r238038:

Unfortunately the change in r237958 resulted in s/install/instclean/ due to
the aggressive pattern matching of the :C modifier. I tested build and
install in 2 phases, however with different solutions, resulting in the
breakage. Mea culpa.

The solution is to break out the all: target. This causes a few lines of
code duplication, but now the all: target works as it should, and the
other targets continue to work as they did before.

While I'm here, add a ===> header line to the start of each port build
to make it easier to find/more clear in the logs.

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

11 years agoMFC r238028:
np [Mon, 2 Jul 2012 22:04:09 +0000 (22:04 +0000)]
MFC r238028:
Instruct the firmware not to provision resources for TCP offload if the
kernel is being built without TCP_OFFLOAD.  But never override
toecaps_allowed if it has been set manually.

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

11 years agoMFC r237245, r237250, r237251, r237273, r237330
sbruno [Mon, 2 Jul 2012 21:59:10 +0000 (21:59 +0000)]
MFC r237245, r237250, r237251, r237273, r237330

Document support for Intel Enhanced Speedstep Tech interface
of cpufreq(4) via a new man page est(4)

Document the two exposed tuneables of est(4).

Numerous cleanups and mdoc updates from reviewers. Thanks to mav, joel,
wblock, hrs, gjb

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

11 years agoMFC: r237547
marius [Mon, 2 Jul 2012 19:56:31 +0000 (19:56 +0000)]
MFC: r237547

Fix size of the bcopy when extracting ethernet address

Obtained from: DragonFly

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

11 years agoMFC: r237546
marius [Mon, 2 Jul 2012 19:19:07 +0000 (19:19 +0000)]
MFC: r237546

Correct sizeof usage

Obtained from: DragonFly

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

11 years agoMFC: r237842
marius [Mon, 2 Jul 2012 19:13:38 +0000 (19:13 +0000)]
MFC: r237842

Switch back to the 4BSD scheduler for now. There is some more or less
recent regression with ULE, causing processes to get stuck in getblk
as well as interrupt handler execution delays to rise above the command
timeout of mpt(4).

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

11 years agoMFC r237085
alc [Mon, 2 Jul 2012 17:37:40 +0000 (17:37 +0000)]
MFC r237085
  Correctly identify the function in a KASSERT().

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

11 years agoMFC r236534
alc [Mon, 2 Jul 2012 17:22:38 +0000 (17:22 +0000)]
MFC r236534
  Various small changes to PV entry management.

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

11 years agoMFC: r237657, r237658, r237666
jkim [Mon, 2 Jul 2012 16:00:38 +0000 (16:00 +0000)]
MFC: r237657, r237658, r237666

Merge OpenSSL 0.9.8x and regen manual pages.

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

11 years agoMerge r237736 from HEAD:
bms [Mon, 2 Jul 2012 11:46:47 +0000 (11:46 +0000)]
Merge r237736 from HEAD:
  Kick the current-state report timer when a V1 group report would
  be triggered.

Submitted by: rpaulo@

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

11 years agoMFC: r236623: RAID is an acronym
obrien [Mon, 2 Jul 2012 10:16:14 +0000 (10:16 +0000)]
MFC: r236623: RAID is an acronym

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

11 years ago* Avoid race conditions with 'make -j<N>'.
obrien [Mon, 2 Jul 2012 10:14:12 +0000 (10:14 +0000)]
* Avoid race conditions with 'make -j<N>'.
  (partially MFC r236337 (in spirit))

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

11 years agoMerge r237735 from HEAD:
bms [Mon, 2 Jul 2012 10:07:32 +0000 (10:07 +0000)]
Merge r237735 from HEAD:
  Fix a typo in MLD query exponent processing.

Submitted by: rpaulo@

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

11 years agoRevert r223540 - it broke the simple 'make -C kerberos5' build.
obrien [Mon, 2 Jul 2012 10:06:13 +0000 (10:06 +0000)]
Revert r223540 - it broke the simple 'make -C kerberos5' build.

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

11 years agoMerge r237734 from HEAD:
bms [Mon, 2 Jul 2012 10:06:00 +0000 (10:06 +0000)]
Merge r237734 from HEAD:
  In MLDv2 general query processing, do not enforce the strict check
  on query origins.

Submitted by: Gu Yong

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

11 years agoMFC: r235939: consitently use "__LP64__"
obrien [Mon, 2 Jul 2012 10:00:28 +0000 (10:00 +0000)]
MFC: r235939: consitently use "__LP64__"

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

11 years agoMFC: r235879: style.Makefile(5)
obrien [Mon, 2 Jul 2012 09:47:38 +0000 (09:47 +0000)]
MFC: r235879: style.Makefile(5)

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

11 years agoMFC: r228114 r228116 r234690: install a readline/tilde.h
obrien [Mon, 2 Jul 2012 09:35:28 +0000 (09:35 +0000)]
MFC: r228114 r228116 r234690: install a readline/tilde.h

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

11 years agoAllow building on FreeBSD 7.
obrien [Mon, 2 Jul 2012 09:25:08 +0000 (09:25 +0000)]
Allow building on FreeBSD 7.

Note that "HAVE_GETLINE" should be #undef'ed in config.h as were not using
the libc interface -- however that leads to redundant redeclaration compiler
warnings between the internal file.h and <stdio.h>.

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

11 years agoMFC: r234449: update file(1) to version 5.11.
obrien [Mon, 2 Jul 2012 08:48:58 +0000 (08:48 +0000)]
MFC: r234449: update file(1) to version 5.11.

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

11 years agoMFC: r232274: Document fetch(1)'s 'URL' argument.
obrien [Mon, 2 Jul 2012 08:28:16 +0000 (08:28 +0000)]
MFC: r232274: Document fetch(1)'s 'URL' argument.

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

11 years agoMFC: r228475 & r228487: Disallow various debug.kdb sysctl's when securelevel
obrien [Mon, 2 Jul 2012 08:21:15 +0000 (08:21 +0000)]
MFC: r228475 & r228487: Disallow various debug.kdb sysctl's when securelevel
is raised.

PR: 161350

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

11 years agoMFC r237748: dtrace instruction decoder: add 0x0f 0x1f NOP opcode support
avg [Mon, 2 Jul 2012 08:08:29 +0000 (08:08 +0000)]
MFC r237748: dtrace instruction decoder: add 0x0f 0x1f NOP opcode support

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

11 years agoMFC: r228199: Split sentences at period boundaries.
obrien [Mon, 2 Jul 2012 07:39:33 +0000 (07:39 +0000)]
MFC: r228199: Split sentences at period boundaries.

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

11 years agoMFC: r228193: tweak the r137233 fix to r136283 -- Code was making two send()
obrien [Mon, 2 Jul 2012 07:37:06 +0000 (07:37 +0000)]
MFC: r228193: tweak the r137233 fix to r136283 -- Code was making two send()
attempts vs. the comment documented "If we are working with a privileged
socket, then take only one attempt".  Make the code match.

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

11 years agoRecord that r228191 (ensure kldxref is run first) was MFC'ed [r231373].
obrien [Mon, 2 Jul 2012 07:22:22 +0000 (07:22 +0000)]
Record that r228191 (ensure kldxref is run first) was MFC'ed [r231373].

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

11 years agoMFC: r227526: KNF
obrien [Mon, 2 Jul 2012 07:18:27 +0000 (07:18 +0000)]
MFC: r227526: KNF

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

11 years agoMFC: r227524: improve the grep-ability output strings.
obrien [Mon, 2 Jul 2012 07:14:21 +0000 (07:14 +0000)]
MFC: r227524: improve the grep-ability output strings.

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

11 years agoMFC: r237279: install filemon.h into /usr/include for userland consumption.
obrien [Mon, 2 Jul 2012 07:11:43 +0000 (07:11 +0000)]
MFC: r237279: install filemon.h into /usr/include for userland consumption.

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

11 years agoMFC: r227518: reformat comment to be more readable in standard Xterm.
obrien [Mon, 2 Jul 2012 07:10:33 +0000 (07:10 +0000)]
MFC: r227518: reformat comment to be more readable in standard Xterm.

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

11 years agoMFC r235695, r236158, r236190, r236494
alc [Mon, 2 Jul 2012 07:01:41 +0000 (07:01 +0000)]
MFC r235695, r236158, r236190, r236494
  Replace all uses of the vm page queues lock by a r/w lock that is
  private to this pmap.c.

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

11 years agoMFC r237958:
dougb [Mon, 2 Jul 2012 06:51:49 +0000 (06:51 +0000)]
MFC r237958:

For the ports modules building code, clean WRKDIR before building. This is
important for those that use -DNO_CLEAN routinely, since it will prevent
installing stale stuff, and even more important when the port is upgraded
to a newer version. When the user doesn't use -DNO_CLEAN, this will create
an infinitesimal amount of extra work, but won't hurt anything.

This is necessary because the ports tree has flags that prevent the ususal
'update the build if newer source files exist' logic from doing what it
would do in the base.

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

11 years agoMFC: r237836
brueffer [Mon, 2 Jul 2012 06:40:11 +0000 (06:40 +0000)]
MFC: r237836

mps(4) is endian safe as of r237876.

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

11 years agoMFC r236247 (pjd):
mm [Mon, 2 Jul 2012 06:39:06 +0000 (06:39 +0000)]
MFC r236247 (pjd):
Remove unused sysctl.

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

11 years agoRecord that r226343 r226347 r226348 r226349 r226353 r226388 was MFC'ed.
obrien [Mon, 2 Jul 2012 06:02:56 +0000 (06:02 +0000)]
Record that r226343 r226347 r226348 r226349 r226353 r226388 was MFC'ed.

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

11 years agoMFC r235912
alc [Mon, 2 Jul 2012 05:57:44 +0000 (05:57 +0000)]
MFC r235912
  There is no need for pmap_protect() to acquire the page queues lock
  unless it is going to access the pv lists or PMAP1/PADDR1.

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

11 years agoMFC: r229809: Don't include <sys/timeb.h>.
obrien [Mon, 2 Jul 2012 05:57:01 +0000 (05:57 +0000)]
MFC: r229809: Don't include <sys/timeb.h>.
The purpose of not including <sys/timeb.h> is to avoid the compiler
warning we put in <sys/timeb.h>.  So this change will cause CVS to
provide its own definition of 'struct timeb'.  This is only OK
because the code never calls the libc ftime(3) interface.  CVS only
uses 'struct timeb' as a convenience structure -- thus it doesn't
matter how its supplied definition does or does not match the
ftime(3) ABI.

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

11 years agoMFC r233290, r235598, r235973, r236045, r236240, r236291, r236378
alc [Mon, 2 Jul 2012 05:35:55 +0000 (05:35 +0000)]
MFC r233290, r235598, r235973, r236045, r236240, r236291, r236378
  Change pv_entry_count to a long on amd64.

  Rename pmap_collect() to pmap_pv_reclaim() and rewrite it such that it
  no longer uses the active and inactive paging queues.

  Eliminate some purely stylistic differences among the amd64, i386
  native, and i386 xen PV entry allocators.

  Eliminate code duplication in free_pv_entry() and pmap_remove_pages()
  by introducing free_pv_chunk().

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

11 years agoMFC r226843
alc [Mon, 2 Jul 2012 03:49:52 +0000 (03:49 +0000)]
MFC r226843
  Eliminate vestiges of page coloring in VM_ALLOC_NOOBJ calls to
  vm_page_alloc().  While I'm here, for the sake of consistency, always
  specify the allocation class, such as VM_ALLOC_NORMAL, as the first of
  the flags.

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

11 years agoMFC 237800:
ken [Mon, 2 Jul 2012 02:56:01 +0000 (02:56 +0000)]
MFC 237800:

  r237800 | ken | 2012-06-29 11:00:52 -0600 (Fri, 29 Jun 2012) | 7 lines

  Change the mps(4) driver to only scan a target if that is what is
  needed instead of scanning the full bus every time.

Submitted by: mav
Discussed with: Sreekanth Reddy <Sreekanth.Reddy@lsi.com>

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

11 years agoMFC r237571:
delphij [Mon, 2 Jul 2012 02:50:10 +0000 (02:50 +0000)]
MFC r237571:

Fix a LOR acquiring the if_afdata lock while holding an rtentry lock.
Possibly do some entra work in case we would not get into the
ifa0 != NULL paths later as we already do for the mltaddr before.

XXX We should possibly error in case in6_setscope fails.

Reference: http://lists.freebsd.org/pipermail/freebsd-net/2011-September/029829.html

Submitted by: bz

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

11 years agoMFC 237730:
ken [Mon, 2 Jul 2012 02:44:00 +0000 (02:44 +0000)]
MFC 237730:

  r237730 | ken | 2012-06-28 14:48:24 -0600 (Thu, 28 Jun 2012) | 5 lines

  Now that the mps(4) driver is endian-safe, add it to the powerpc and
  sparc64 GENERIC config files.

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