]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
FreeBSD/stable/8.git
14 years agoMFC r203148
thompsa [Mon, 17 May 2010 23:41:06 +0000 (23:41 +0000)]
MFC r203148

 Uuencode the rt2870 firmware into ascii like the other firmware blobs.

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

14 years agoMFC r208030:
trasz [Mon, 17 May 2010 17:56:27 +0000 (17:56 +0000)]
MFC r208030:

Add missing check to prevent local users from panicing the kernel by trying
to set malformed ACL.

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

14 years agoMFC r207971:
yongari [Mon, 17 May 2010 17:17:57 +0000 (17:17 +0000)]
MFC r207971:
  Document undocumented tunables and sysctl variables.
  While here use actual string to specify width as well as using Cm
  to set command argument.

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

14 years agoMFC r207853:
yongari [Mon, 17 May 2010 17:16:12 +0000 (17:16 +0000)]
MFC r207853:
  Now sge(4) supports TCP segmentation offload (TSO).

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

14 years agoMFC r207852:
yongari [Mon, 17 May 2010 17:12:35 +0000 (17:12 +0000)]
MFC r207852:
  SiS190 supports RX 10 bytes padding, CRC stripping as well as VLAN
  hardware tag insertion/stripping. Remove conditional code that
  disables these hardware features on SiS190. Also nuke RX fixup code
  which is no more required on strict-alignment architectures because
  SiS190 supports RX 10 bytes padding.
  Now all hardware features except jumbo frame and WOL are supported.
  Thanks to Masa Murayama who confirmed SiS190 also has the same
  hardware features of SiS191.
  I guess the only difference between SiS191 and SiS190 would be
  jumbo frame support. It will be implemented in near future.

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

14 years agoMFC r207851:
yongari [Mon, 17 May 2010 17:02:42 +0000 (17:02 +0000)]
MFC r207851:
  Implement TSO and TSO over VLAN. Increase number of allowed
  fragmentation of mbuf chain to 32 from 16 because TSO can send 64KB
  sized packet which in turn requires long list of mbuf chain. Due to
  lack of documentation, I'm not sure whether driver have to pull up
  ethernet/IP/TCP header with options to make controller work but
  driver have to parse TCP header to update pseudo TCP checksum
  anyway. The controller expects pseudo TCP checksum computed by
  upper stack and the checksum should follow the MS NDIS
  specification to make TSO work.

  Tested by: xclin <xclin <> cs dot nctu dot edu dot tw >

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

14 years agoMFC r207832:
yongari [Mon, 17 May 2010 16:57:55 +0000 (16:57 +0000)]
MFC r207832:
  Export hardware MAC statistics through sysctl node. Previously
  fxp(4) already used to extract most hardware MAC statistics but it
  didn't show them. With this change, all MAC statistics counters
  are exported. Because there are a couple of new counters for 82558
  and 82559, enable extended MAC statistics functionality to get
  these counters. Accoring to public data sheet, 82559 MAC statistics
  return 24 DWORD counters(3 counters are unknown at this moment) so
  increase MAC counter structure to meet the MAC statistics block size.
  The completion of MAC counter dump is now checked against
  FXP_STATS_DR_COMPLETE status code which is appended at the end of
  status block. Previously fxp(4) ignored the status of the
  FXP_SCB_COMMAND_CU_DUMPRESET command. fxp(4) does not wait for the
  completion of pending command before issuing
  FXP_SCB_COMMAND_CU_DUMPRESET. Instead it skips the command and try
  it next time. This scheme may show better performance but there is
  chance to loose updated counters after stopping controller. So make
  sure to update MAC statistics in fxp_stop().
  While I'm here move sysctl node creation to fxp_sysctl_node().

  Tested by: Larry Baird < lab <> gta dot com >

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

14 years agoMFC r207750:
yongari [Mon, 17 May 2010 16:47:25 +0000 (16:47 +0000)]
MFC r207750:
  8255x configure command requires number of bytes of configuration
  table. The default size of the configuration table was 22 bytes. To
  use extended feature of 82550/82551 the configuration table size
  was expanded to 32 bytes. The added configuration for 82550/82551
  specifies VLAN hardware tagging and IPSec configuration as well as
  TCO.
  To make configuration easier fxp(4) used a configuration template
  and the template was copied to configuration table. After that,
  some parameters of the configuration table was changed depending on
  controller type and operation mode. However the size of template
  was 22 bytes so some configuration parameters were not properly
  initialized on 82550/82551.
  Fix this by increasing the template size. For 82557, 82558 and
  82559 the size of the configuration is still 22 bytes.

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

14 years agoMFC: Locks SPTREE when setting some SP entries to state DEAD.
vanhu [Mon, 17 May 2010 15:31:24 +0000 (15:31 +0000)]
MFC: Locks SPTREE when setting some SP entries to state DEAD.
This can prevent kernel panics when updating SPs while there is
some traffic for them.

Obtained from: NETASQ

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

14 years agoMFC r207553, r207555, r207651:
mm [Mon, 17 May 2010 14:27:40 +0000 (14:27 +0000)]
MFC r207553, r207555, r207651:

Implement the no_user_check option to pam_krb5.

This option is available in the Linux implementation of pam_krb5
and allows to authorize a user not known to the local system.

Ccache is not used as we don't have a secure uid/gid for the cache file.

Usable for authentication of external kerberos users (e.g Active Directory)
via PAM from applications like Cyrus saslauthd, PHP or perl.

PR: bin/146186
Approved by: deplhij (mentor)

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

14 years agoSince sometimes developer activity the week before a code freeze starts causes
kensmith [Mon, 17 May 2010 14:20:26 +0000 (14:20 +0000)]
Since sometimes developer activity the week before a code freeze starts causes
the stable branch to be a little less reliable than normal mark the stable/8
branch as 8.1-PRERELEASE to warn users.

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

14 years agoMFC r207848:
kib [Mon, 17 May 2010 08:15:04 +0000 (08:15 +0000)]
MFC r207848:
The thread_unsuspend() requires both process mutex and process spinlock
locked. Postpone the process unlock till the thread_unsuspend() is called.

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

14 years agoMFC r207847:
kib [Mon, 17 May 2010 08:11:23 +0000 (08:11 +0000)]
MFC r207847:
For detach procfs ctl command, also clear P_STOPPED_TRACE process stop
flag, and for each thread, TDB_SUSPEND debug flag, same as it is done by
exit1() for orphaned debugee.

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

14 years agoMFC: r207785
rmacklem [Mon, 17 May 2010 02:01:22 +0000 (02:01 +0000)]
MFC: r207785
Fix typos in macros.

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

14 years agoMFC: r207764
rmacklem [Mon, 17 May 2010 01:41:11 +0000 (01:41 +0000)]
MFC: r207764
Patch the experimental NFS client so that it works for NFSv2
by adding the necessary mapping from NFSv3 procedure numbers
to NFSv2 procedure numbers when doing NFSv2 RPCs.

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

14 years agoMFC: r207689
rmacklem [Mon, 17 May 2010 01:18:12 +0000 (01:18 +0000)]
MFC: r207689
If the "-alldirs" export option was used for the V4: line, mountd
would crash in check_options() since dp == NULL for the V4: line.
This patch moves the check for options allowed on the V4: line to
ahead of where dp is used to avoid this crash.

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

14 years agoMFC r207944: sh: Fix pathname expansion with quoted slashes like *\/.
jilles [Sun, 16 May 2010 22:52:51 +0000 (22:52 +0000)]
MFC r207944: sh: Fix pathname expansion with quoted slashes like *\/.

These are git commits 36f0fa8fcbc8c7b2b194addd29100fb40e73e4e9 and
d6d06ff5c2ea0fa44becc5ef4340e5f2f15073e4 in dash.

Because this is the first code I'm importing from dash to expand.c, add the
Herbert Xu copyright notice which is in dash's expand.c.

When pathname expanding *\/, the CTLESC representing the quoted state was
erroneously taken as part of the * pathname component. This CTLESC was then
seen by the pattern matching code as escaping the '\0' terminating the
string.

The code is slightly different because dash converts the CTLESC characters
to backslashes and removes all the other CTL* characters to allow
substituting glob(3).

The effect of the bug was also slightly different from dash (where nothing
matched at all). Because a CTLESC can escape a '\0' in some way, whether
files were included despite the bug depended on memory that should not be
read. In particular, on many machines /*\/ expanded to a strict subset of
what /*/ expanded to.

Example:
  echo /*"/null"

This should print /dev/null, not /*/null.

PR: bin/146378
Obtained from: dash

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

14 years agoMFC 207985
rrs [Sun, 16 May 2010 16:52:56 +0000 (16:52 +0000)]
MFC 207985

 Fix an old long time bug in generating a
 fwd-tsn. This would appear when greater than
 the size of mbuf TSN's would need to be skipped.

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

14 years agoMFC 207983
rrs [Sun, 16 May 2010 16:51:44 +0000 (16:51 +0000)]
MFC 207983

 More PR-SCTP bugs:
   - Make sure that when you kick the streams you add correctly
     using a 16 bit unsigned.
   - Make sure when sending out you allow FWD-TSN to skip over
     and list the ACKED chunks in the stream/seq list (so the
     rcv will kick the stream)

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

14 years agoMFC 207966 (for Michael)
rrs [Sun, 16 May 2010 16:50:33 +0000 (16:50 +0000)]
MFC 207966 (for Michael)

Get rid of unused constants.

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

14 years agoMFC of 207963
rrs [Sun, 16 May 2010 16:45:49 +0000 (16:45 +0000)]
MFC of 207963

 This fixes PR-SCTP issues:
  - Slide the map at the proper place.
  - Mark the bits in the nr_array ONLY if there
    is no marking.
  - When generating a FWD-TSN we allow us to skip past
    ACKED chunks too.

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

14 years agoMFC of 207924:
rrs [Sun, 16 May 2010 16:42:52 +0000 (16:42 +0000)]
MFC of 207924:

This fixes a bug with the one-2-one model socket when a
user sets up a socket to a server sends data and closes
the socket before the server has called accept(). It used
to NOT work at all. Now we add a flag to the assoc and
defer assoc cleanup so that the accept will succeed

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

14 years agoMFC r208036:
zec [Sun, 16 May 2010 14:53:43 +0000 (14:53 +0000)]
MFC r208036:

  Increase the target buffer for performing NGM_ASCII2BINARY conversion
  from 2000 bytes to 20 Kbytes, which now matches the buffer size used for
  NGM_BINARY2ASCII conversions.

  The aim of this change is to allow for bigger binary structures to be
  managed via netgraph ASCII messages, until we come up with an API
  improvement which would get rid of such arbitrary hardcoded limits.

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

14 years agoMFC r207680:
zec [Sun, 16 May 2010 14:51:36 +0000 (14:51 +0000)]
MFC r207680:

  Add an optional "persistent" flag to ng_hub and ng_bridge, which if set,
  disables automatic node shutdown when the last hook gets disconnected.

  Reviewed by:  julian

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

14 years agoMFC r207817: builtin(1): sh has no @ builtin command.
jilles [Sun, 16 May 2010 11:06:32 +0000 (11:06 +0000)]
MFC r207817: builtin(1): sh has no @ builtin command.

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

14 years agoMFC r207816: Document clock and pshared condvar attributes.
jilles [Sun, 16 May 2010 11:03:46 +0000 (11:03 +0000)]
MFC r207816: Document clock and pshared condvar attributes.

Note: clock accepts CLOCK_VIRTUAL and CLOCK_PROF too, but this seems broken
as it simply waits for the difference of the current and given value of the
clock as if it were CLOCK_MONOTONIC. So document only CLOCK_REALTIME and
CLOCK_MONOTONIC as allowed.

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

14 years agoMerge r199631: Handle current work directories of arbitrary length.
stefanf [Sun, 16 May 2010 10:01:06 +0000 (10:01 +0000)]
Merge r199631: Handle current work directories of arbitrary length.

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

14 years agoMFC r207935: sh: Add some simple testcases for pathname expansion.
jilles [Sat, 15 May 2010 12:51:22 +0000 (12:51 +0000)]
MFC r207935: sh: Add some simple testcases for pathname expansion.

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

14 years agoMFC r207821: Generate some tests for sh's case command
jilles [Sat, 15 May 2010 12:42:07 +0000 (12:42 +0000)]
MFC r207821: Generate some tests for sh's case command
from the fnmatch tests.

I'm committing the generated files because I don't like a build dependency
for the sh(1) tests, and they are small and will not change much.

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

14 years agoMFC r207481, r207956:
mm [Sat, 15 May 2010 07:07:38 +0000 (07:07 +0000)]
MFC r207481, r207956:

MFC r207481 [1]:
Add sysctl and loader tunable vfs.zfs.txg.write_limit_override.
This tunable improves fine-tuning of ZFS write throttling.

MFC r207956 [2]:
Fix possible hang when replaying large truncations.
OpenSolaris onnv revision: 7904:6a124a4ca9c5

PR: kern/146108 [1]
Suggested by: Nikolay Denev <ndenev at gmail.com> [1]
Obtained from: OpenSolaris (Bug ID 6761624) [2]
Approved by: pjd, delphij (mentor)

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

14 years agoMissing fix in lem code to limit WOL to MAGIC,
jfv [Fri, 14 May 2010 22:20:58 +0000 (22:20 +0000)]
Missing fix in lem code to limit WOL to MAGIC,
and made code backward compatible to 7.3 with
conditionals around the buf_ring_free call.

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

14 years agoMFC 208060:
dougb [Fri, 14 May 2010 19:28:16 +0000 (19:28 +0000)]
MFC 208060:

Remove trailing white space. No functional changes.

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

14 years agoMFC: r207885
marius [Fri, 14 May 2010 19:18:07 +0000 (19:18 +0000)]
MFC: r207885

Include <machine/ofw_machdep.h> for OF_getscsinitid().

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

14 years agoMFC: r207586
marius [Fri, 14 May 2010 19:15:51 +0000 (19:15 +0000)]
MFC: r207586

Sun GigaSwift Ethernet 1.0 MMF work with r207585 (MFC'ed to stable/8 in
r208086) in place.

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

14 years agoMFC: r207585
marius [Fri, 14 May 2010 19:11:41 +0000 (19:11 +0000)]
MFC: r207585

- Don't set CAS_PCS_DATAPATH to anything except CAS_PCS_DATAPATH_SERDES
  on Cassini using the external PCS SERDES otherwise unaligned access
  traps and other strange effects happen with some machines. Don't touch
  the MIF which is unused in that case either. These changes require the
  PHY type to use to be determined via the OFW device tree or from the
  VPD in machines without the former.
- Disable the SERDES pins of Saturn when not used in order to save power
  and ensure they are enabled otherwise.
- In cas_attach() use the correct register offset for CAS_PCS_CONF_EN.
- Add some bus space barriers missing in the PCS code path.

These changes make the Sun GigaSwift Ethernet 1.0 MMF cards as well as
the on-board interfaces found in Sun Fire B100s Blade Server work.

PR: 144867

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

14 years agoMFC r207761 partially:
fabient [Fri, 14 May 2010 13:48:11 +0000 (13:48 +0000)]
MFC r207761 partially:
 Add a fastpath to allocate from packet zone when using m_getjcl.
 This will add support for packet zone for at least igb and ixgbe.

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

14 years agoMFC r207755:
fabient [Fri, 14 May 2010 13:42:17 +0000 (13:42 +0000)]
MFC r207755:
Rework the calltree top view by critical callchain.
The percentage shown is the sum of the cost for the codepath.

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

14 years agoMFC r207453:
ed [Fri, 14 May 2010 12:34:06 +0000 (12:34 +0000)]
MFC r207453:

  Remove WNOHANG flag from wait3().

  Because script(1) now reliably terminates when the TTY is closed, it may
  be the case that the call to wait3() occurs just before the child
  process exits. This causes error codes to be ignored.

  Just change script(1) to use waitpid() instead of wait3(). This makes it
  more portable and prevents the need for a loop, since waitpid() only
  returns a specified process.

PR:           bin/146189
Tested by:    amdmi3@, older version

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

14 years agoMFC r207910:
mm [Fri, 14 May 2010 09:57:10 +0000 (09:57 +0000)]
MFC r207910:
(cddl/contrib/opensolaris part)

Fix possible panic with zfs destroy.
OpenSolaris onnv revision: 8779:f164e0e90508

PR: kern/146471
Approved by: pjd, delphij (mentor)
Obtained from: OpenSolaris (Bug ID 6784924)

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

14 years agoMFC r207909, r207910, r207911:
mm [Fri, 14 May 2010 09:50:28 +0000 (09:50 +0000)]
MFC r207909, r207910, r207911:

MFC r207909:
Fix zfs rename (may occasionally fail with dataset busy).
OpenSolaris onnv revision: 8517:41a0783dde17

MFC r207910:
Fix possible panic with zfs destroy.
OpenSolaris onnv revision: 8779:f164e0e90508

MFC r207911:
Fix failed assertion on destroying datasets from an older pool version.
OpenSolaris onnv revision: 9390:887948510f80

PR: kern/146471
Approved by: pjd, delphij (mentor)
Obtained from: OpenSolaris (Bug ID 678475767849246826861)

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

14 years agoMFC r207908:
mm [Fri, 14 May 2010 09:06:49 +0000 (09:06 +0000)]
MFC r207908:

Fix endianess bug in ZFS intent log (ZIL).

OpenSolaris onnv revision: 8109:6147a1bdd359

Approved by: pjd, delphij (mentor)
Obtained from: OpenSolaris (Bug ID 6760048)

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

14 years agoMFC r207427:
mm [Fri, 14 May 2010 09:00:29 +0000 (09:00 +0000)]
MFC r207427:

Fix improper pool write throughput calculation.

OpenSolaris onnv revision: 9366:17553395a745

PR: kern/146108
Obtained from: OpenSolaris (Bug ID 6817339)
Approved by: pjd, delphij (mentor)

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

14 years agoMFC r206878, r206897, r207921:
attilio [Fri, 14 May 2010 01:43:13 +0000 (01:43 +0000)]
MFC r206878, r206897, r207921:
Fix a deadlock in the shutdown code when some CPUs are performing
smp_rendezvous() (or smp_tlb_shootdown()) and are waiting for
acknowledgment.

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

14 years agoMFC r205099-205100,205108:
delphij [Thu, 13 May 2010 23:28:20 +0000 (23:28 +0000)]
MFC r205099-205100,205108:

Two optimizations to MI strlen(3) inspired by David S. Miller's
blog posting [1].

 - Use word-sized test for unaligned pointer before working
   the hard way.

   Memory page boundary is always integral multiple of a word
   alignment boundary.  Therefore, if we can access memory
   referenced by pointer p, then (p & ~word mask) must be also
   accessible.

 - Better utilization of multi-issue processor's ability of
   concurrency.

   The previous implementation utilized a formular that must be
   executed sequentially.  However, the ~, & and - operations can
   actually be caculated at the same time when the operand were
   different and unrelated.

   The original Hacker's Delight formular also offered consistent
   performance regardless whether the input would contain
   characters with their highest-bit set, as it catches real
   nul characters only.

These two optimizations has shown further improvements over the
previous implementation on microbenchmarks on i386 and amd64 CPU
including Pentium 4, Core Duo 2 and i7.

[1] http://vger.kernel.org/~davem/cgi-bin/blog.cgi/2010/03/08#strlen_1

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

14 years agoMFC r206814 (by alc):
kib [Thu, 13 May 2010 20:31:24 +0000 (20:31 +0000)]
MFC r206814 (by alc):
Remove a nonsensical test from vm_pageout_clean().  A page can't be in the
inactive queue and have a non-zero wire count.

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

14 years agoMFC elimination of several settings of PG_REFERENCED bit, that either
kib [Thu, 13 May 2010 20:26:16 +0000 (20:26 +0000)]
MFC elimination of several settings of PG_REFERENCED bit, that either
do not make sense or are harmful.

MFC r206761 (by alc):
Setting PG_REFERENCED on the requested page in swap_pager_getpages() is
either redundant or harmful, depending on the caller.

MFC r206768 (by alc):
In vm_object_backing_scan(), setting PG_REFERENCED on a page before
sleeping on that page is nonsensical.

MFC r206770 (by alc):
In vm_object_madvise() setting PG_REFERENCED on a page before sleeping on
that page only makes sense if the advice is MADV_WILLNEED.

MFC r206801 (by alc):
There is no justification for vm_object_split() setting PG_REFERENCED on a
page that it is going to sleep on.

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

14 years agoMFC r207365:
kib [Thu, 13 May 2010 18:17:01 +0000 (18:17 +0000)]
MFC r207365:
When doing kstack swapin, read as much pages in one run as possible.

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

14 years agoMFC r206545 (by alc):
kib [Thu, 13 May 2010 18:12:44 +0000 (18:12 +0000)]
MFC r206545 (by alc):
Simplify vm_thread_swapin().

Approved by: alc

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

14 years agoMFC r207639, r207643, r207687, r207688
np [Thu, 13 May 2010 17:45:32 +0000 (17:45 +0000)]
MFC r207639, r207643, r207687, r207688

r207639: Add IFCAP_LINKSTATE to cxgb
r207643: T3 hardware filters + cxgbtool interface to this functionality.
r207687: if_cxgb should not depend on the T3 firmware module directly.
r207688: various doorbell adjustments

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

14 years agoMFC r206143,r206148,r206149,r206167,r206491,r206817,r207127,r207824
jilles [Thu, 13 May 2010 17:22:00 +0000 (17:22 +0000)]
MFC r206143,r206148,r206149,r206167,r206491,r206817,r207127,r207824
Various testcases that work correctly with stable/8 sh.

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

14 years agoMFC r207734: sigaltstack(2): document some modernizations:
jilles [Thu, 13 May 2010 15:44:49 +0000 (15:44 +0000)]
MFC r207734: sigaltstack(2): document some modernizations:
* un-document 'struct sigaltstack' tag for stack_t as this is BSD-specific;
  this doesn't seem useful enough to document as such
* alternate stacks are per thread, not per process
* update error codes to what the kernel does and POSIX requires

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

14 years agoMFC r207364:
kib [Thu, 13 May 2010 09:26:31 +0000 (09:26 +0000)]
MFC r207364:
In swap pager, do not free the non-requested pages from the run if they are
wired. Kstack pages are wired, this change prepares swap pager for handling
of long runs of kstack pages.

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

14 years agoMFC r203757:
jh [Wed, 12 May 2010 17:22:11 +0000 (17:22 +0000)]
MFC r203757:

- Remove reference to nfs4. mount_nfs4(8) was removed in r192578.
- Add newnfs.

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

14 years agoMFC r207763:
yongari [Wed, 12 May 2010 17:18:07 +0000 (17:18 +0000)]
MFC r207763:
  Don't change PCIe maximum read request size to 2048 on RTL810x
  controllers. It caused device timeouts.

  Reported by: McLone < mclone <> gmail dot com >
  Tested by: McLone < mclone <> gmail dot com >

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

14 years agoMFC r207748:
yongari [Wed, 12 May 2010 17:07:19 +0000 (17:07 +0000)]
MFC r207748:
  It seems controller has two types of promiscuous control, one for
  unicast and the other for multicast. To receive multicast frames
  that host didn't join in promiscuous mode, driver have to set
  promiscuous mode for multicast frames as well.
  The Open Source Software Developer Manual for i8255x was not clear
  how to handle promiscuous mode.

  PR: kern/145905

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

14 years agoMFC:
vanhu [Wed, 12 May 2010 11:49:15 +0000 (11:49 +0000)]
MFC:
Set/update SA's NAT-T stuff before calling key_mature() in
key_add() and key_update(), as the SA may be used as soon as
key_mature() has been called

Obtained from: NETASQ

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

14 years agoMFC r207676:
kib [Wed, 12 May 2010 09:34:10 +0000 (09:34 +0000)]
MFC r207676:
Add definitions for Intel AESNI CPUID bits and print the capabilities
on boot.

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

14 years agoMFC r205622:
delphij [Tue, 11 May 2010 19:25:13 +0000 (19:25 +0000)]
MFC r205622:

Expose MACHINE_CPU while building lib32 target.

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

14 years agoMFC r207709:
bschmidt [Tue, 11 May 2010 17:21:54 +0000 (17:21 +0000)]
MFC r207709:
Add a workaround for a bug in the firmware regarding the transition
from passive to active scans. Basicly disable it by increasing the
amount packets to be received to an amount which can't be reached
during dwell times.

Approved by: rpaulo (mentor)

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

14 years agoMFC r207604:
kib [Tue, 11 May 2010 13:39:37 +0000 (13:39 +0000)]
MFC r207604:
Document RUSAGE_THREAD.

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

14 years agoMFC r207605:
kib [Tue, 11 May 2010 13:35:35 +0000 (13:35 +0000)]
MFC r207605:
Remove a comment that merely repeats code.

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

14 years agoMFC r207603
kib [Tue, 11 May 2010 13:33:37 +0000 (13:33 +0000)]
MFC r207603
Use td_rux.rux_runtime for ki_runtime instead of redoing calculation.

MFC r207659:
Fix a mistake in r207603. td_rux.rux_runtime still needs conversion.

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

14 years agoMFC r207468:
kib [Tue, 11 May 2010 13:18:41 +0000 (13:18 +0000)]
MFC r207468:
Extract thread_lock()/ruxagg()/thread_unlock() fragment into utility
function ruxagg_tlock().
Convert the definition of kern_getrusage() to ANSI C.

MFC r207602:
Implement RUSAGE_THREAD. Add td_rux to keep extended runtime and ticks
information for thread to allow calcru1() (re)use.

Rename ruxagg()->ruxagg_locked(), ruxagg_tlock()->ruxagg() [1].
The ruxagg_locked() function no longer clears thread ticks nor
td_incruntime.

Not an MFC: the td_rux is added to the end of struct thread to keep
the KBI. Explicit bzero() of td_rux is added to new thread initialization
points.

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

14 years agoMFC r207600:
kib [Tue, 11 May 2010 12:07:40 +0000 (12:07 +0000)]
MFC r207600:
Move definition of struct rusage_ext before struct thread.

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

14 years agoMFC r207268:
kib [Tue, 11 May 2010 11:53:10 +0000 (11:53 +0000)]
MFC r207268:
Provide 32bit compat for SIOCGDEFIFACE_IN6.

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

14 years agoMFC r206548:
kib [Tue, 11 May 2010 11:22:18 +0000 (11:22 +0000)]
MFC r206548:
Update the list of the process flags for P_WKILLED.

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

14 years agoMFC r206367, r206358, r206370, r206371, r206372, r206398, r206415,
rpaulo [Tue, 11 May 2010 11:08:15 +0000 (11:08 +0000)]
MFC r206367, r206358, r206370, r206371, r206372, r206398, r206415,
    r206416, r206417, r206418, r206418:

net80211 ratectl framework.

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

14 years agoMFC r207624:
mm [Tue, 11 May 2010 07:02:29 +0000 (07:02 +0000)]
MFC r207624:

Fix deadlock during zfs receive.

OpenSolaris onnv revision: 9299:8809e849f63e

PR: kern/146296
Approved by: pjd, delphij (mentor)
Obtained from: OpenSolaris (Bug ID 67838186826836)

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

14 years agoMFC of 207898, tzdata2010j:
edwin [Mon, 10 May 2010 21:04:45 +0000 (21:04 +0000)]
MFC of 207898, tzdata2010j:

- Bahia de Banderas (Mexican state of Nayarit) changed time zone
  UTC-7 to new time zone UTC-6 on April 4, 2010 (to share the same
  time zone as nearby city Puerto Vallarta, Jalisco).

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

14 years agoMFC: r207683
marius [Mon, 10 May 2010 20:55:24 +0000 (20:55 +0000)]
MFC: r207683

- Fix broken symlinks on cross platform zfs send/recv. [1]
- Enable zfs_ace_byteswap() on FreeBSD as it works just fine (tested between
  amd64 and sparc64 in both directions by Michael Moll).

PR: 146272
Approved by: mm, pjd
Obtained from: OpenSolaris (onnv rev. 8283:1ca59f393041; Bug ID 6764193) [1]

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

14 years agoMFC: r207570
marius [Mon, 10 May 2010 20:34:16 +0000 (20:34 +0000)]
MFC: r207570

On sparc64 obtain the initiator ID from the Open Firmware device tree
in order to match what the PROM built-in driver uses.

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

14 years agoMFC: r207537
marius [Mon, 10 May 2010 20:25:51 +0000 (20:25 +0000)]
MFC: r207537

Add support for SPARC64 V (and where it already makes sense for other
HAL/Fujitsu) CPUs. For the most part this consists of fleshing out the
MMU and cache handling, it doesn't add pmap optimizations possible with
these CPU, yet, though.
With these changes FreeBSD runs stable on Fujitsu Siemens PRIMEPOWER 250
and likely also other models based on SPARC64 V like 450, 650 and 850.
Thanks go to Michael Moll for providing access to a PRIMEPOWER 250.

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

14 years agoMFC: r207533 (partial)
marius [Mon, 10 May 2010 20:15:39 +0000 (20:15 +0000)]
MFC: r207533 (partial)

Remove redundant checking of sc_leaving (uart_intr() already handles this).

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

14 years agoMFC: r207532
marius [Mon, 10 May 2010 20:10:45 +0000 (20:10 +0000)]
MFC: r207532

Remove a soft member which was never used.

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

14 years agoMFC r207622-207623,207638
yongari [Mon, 10 May 2010 20:01:51 +0000 (20:01 +0000)]
MFC r207622-207623,207638
r207622:
  Drop driver lock before exiting from interrupt handler.

r207623:
  Make sure to check whether driver is running before processing
  received frames. Also check driver has valid ifp pointer before
  calling msk_stop() in device_shutdown handler. While I'm here
  remove unnecessary accesses to interrupt mask registers in
  device_shutdown handler because driver puts the controller into
  reset state.
  With these changes, msk(4) now survive from heavy RX traffic(1byte
  UDP frame) while reboot is in progress.

r207638:
  When VLAN hardware tagging is disabled, make sure to disable VLAN
  checksum offloading as well as TSO over VLAN.

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

14 years agoMFC r207628,207635:
yongari [Mon, 10 May 2010 19:47:37 +0000 (19:47 +0000)]
MFC r207628,207635:
r207628:
  Enable multi-descriptor transmisstion for fragmented mbufs. There
  is no more need to defragment mbufs. After transmitting the
  multi-fragmented frame, the controller updates only the first
  descriptor of multi-descriptor transmission so it's driver's
  responsibility to clear OWN bits of remaining descriptor of
  multi-descriptor transmission. It seems the controller behaves much
  like jme(4) controllers in descriptor handling.

r207635:
  Free entire mbuf chain instead of the first mbuf.

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

14 years agoMFC: r207330, r207620
jkim [Mon, 10 May 2010 19:21:50 +0000 (19:21 +0000)]
MFC: r207330, r207620

- Remove dead code.  Calculated greatest common divisor was not used at all.
- Prefer u_int32_t over unsigned int to make its intention more clearer.
- Move the function to a header file and make it a static inline function.

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

14 years agoMFC: r207500
marius [Mon, 10 May 2010 19:02:21 +0000 (19:02 +0000)]
MFC: r207500

Add a hack for SPARC64 V CPUs, which set some undocumented bits in the
first data word.

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

14 years agoMFC: r207287
marius [Mon, 10 May 2010 18:56:36 +0000 (18:56 +0000)]
MFC: r207287

On sparc64 obtain the initiator ID to be used for SPI HBAs from the
Open Firmware device tree in order to match what the PROM built-in
driver uses. This is especially important when netbooting Fujitsu
Siemens PRIMEPOWER250 as in that case the built-in driver isn't used
and the port facts PortSCSIID defaults to 0, conflicting with the
disk at the same address.

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

14 years agoMFC: r207286
marius [Mon, 10 May 2010 18:54:58 +0000 (18:54 +0000)]
MFC: r207286

Replace a magic value with the appropriate macro.

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

14 years agoMFC: r207285
marius [Mon, 10 May 2010 18:53:32 +0000 (18:53 +0000)]
MFC: r207285

- On sparc64 obtain the initiator ID from the Open Firmware device tree
  in order to match what the PROM built-in driver uses.
- Remove some no longer used includes.

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

14 years agoMFC: r207281
marius [Mon, 10 May 2010 18:51:49 +0000 (18:51 +0000)]
MFC: r207281

Take advantage of OF_getscsinitid().

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

14 years agoMFC: r207248
marius [Mon, 10 May 2010 18:50:26 +0000 (18:50 +0000)]
MFC: r207248

Don't bother enabling interrupts before we're ready to handle them. This
prevents the firmware of Fujitsu Siemens PRIMEPOWER250, which both causes
stray interrupts and erroneously enables interrupts at least when calling
SUNW,set-trap-table, from shooting itself in the foot.

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

14 years agoMFC: r207243
marius [Mon, 10 May 2010 18:47:52 +0000 (18:47 +0000)]
MFC: r207243

Add OF_getscsinitid(), a helper similar to OF_getetheraddr() but for
obtaining the initiator ID to be used for SPI controllers from the
Open Firmware device tree.

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

14 years agoMFC: r207242
marius [Mon, 10 May 2010 18:46:37 +0000 (18:46 +0000)]
MFC: r207242

For the on-board interfaces found in Fujitsu SPARC64 machines obtain the
MAC address via OFW as well.

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

14 years agoMFC: r207241
marius [Mon, 10 May 2010 18:45:18 +0000 (18:45 +0000)]
MFC: r207241

- Add a missing const.
- Map the NS16550 found in Fujitsu Siemens PRIMEPOWER250 to PNP0501 as well.

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

14 years agoMFC: r207240
marius [Mon, 10 May 2010 18:41:27 +0000 (18:41 +0000)]
MFC: r207240

Skip the pseudo-devices found in Fujitsu Siemens PRIMEPOWER250.

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

14 years agoMFC r207545,207625:
yongari [Mon, 10 May 2010 18:37:46 +0000 (18:37 +0000)]
MFC r207545,207625:
r207545:
  Fix wrong dma tag usage. Previously it used TX descriptor ring dma
  tag which should be TX mbuf dma tag.

r207625:
  Remove clearing RxHashTable2 register. The register is reprogrammed
  in sge_rxfilter().

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

14 years agoMFC r207580:
kib [Mon, 10 May 2010 11:50:26 +0000 (11:50 +0000)]
MFC r207580:
Handle busy status of the page in a way expected for pager_getpage().
Flush requested page, unbusy other pages, do not clear m->busy.

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

14 years agoMFC r207247,r207283,207284:
delphij [Mon, 10 May 2010 02:07:57 +0000 (02:07 +0000)]
MFC r207247,r207283,207284:

 - Add a signal handler for SIGINT which removes output file when necessary.
 - While I'm there, move unlink_input() slightly down to after closing the
   output file, in uncompression path.
 - Language improvements to make the BUGS section easier to read.

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

14 years agoMFC r207590:
emaste [Mon, 10 May 2010 01:22:29 +0000 (01:22 +0000)]
MFC r207590:

  Update GRANDPARENTED text to match the contents of tzdata/factory r19879.
  This eliminates "warning: time zone abbreviation differs from POSIX" on
  installworld.

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

14 years agoMFC r207485: pathchk(1): Fix the example so it allows arbitrary pathnames.
jilles [Sun, 9 May 2010 19:32:37 +0000 (19:32 +0000)]
MFC r207485: pathchk(1): Fix the example so it allows arbitrary pathnames.

Spaces and various other characters in pathnames are not passed through
literally by xargs in its default mode. Instead, use find . -exec ... {} +

Although the -- argument is not strictly required here, add it anyway to
avoid surprises when modifying the code to find -f -somedir ...

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

14 years agoMFC r207483: pathchk: Add the new POSIX -P option.
jilles [Sun, 9 May 2010 19:30:52 +0000 (19:30 +0000)]
MFC r207483: pathchk: Add the new POSIX -P option.

This option checks for empty pathnames and components starting with '-'.
Our -p option also checks for the latter, which remains the case.

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

14 years agoMFC r207731:
fabient [Sun, 9 May 2010 15:39:49 +0000 (15:39 +0000)]
MFC r207731:
Exclude undefined symbol from ELF file when doing function resolve.

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

14 years agoMFC r207195:
kib [Sun, 9 May 2010 12:36:51 +0000 (12:36 +0000)]
MFC r207195:
Provide compat32 shims for bpf(4), except zero-copy facilities.

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

14 years agoMFC r207194:
kib [Sun, 9 May 2010 12:34:20 +0000 (12:34 +0000)]
MFC r207194:
Provide 32bit compat shims for sysctl net.route NET_RT_IFLIST.

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

14 years agoMFC r207363:
kib [Sun, 9 May 2010 12:32:10 +0000 (12:32 +0000)]
MFC r207363:
Remove caddr_t casts.

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

14 years agoMFC 207346:
dougb [Sat, 8 May 2010 22:24:01 +0000 (22:24 +0000)]
MFC 207346:

Fix named-checkconf in the situation where named_chroot_autoupdate
is NOT set, but named_chrootdir IS set.

Remove required_files for named.conf, named-checkconf is enough.

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

14 years agoMFC r206686:
dougb [Sat, 8 May 2010 21:18:22 +0000 (21:18 +0000)]
MFC r206686:

Make 'stop' work even if ${name}_enable is not set.

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

14 years agoMFC r204051 (by imp):
kib [Sat, 8 May 2010 18:54:47 +0000 (18:54 +0000)]
MFC r204051 (by imp):
n64 has a different size for KINFO_PROC_SIZE.

Approved by: imp

MFC r207152:
Move the constants specifying the size of struct kinfo_proc into
machine-specific header files. Add KINFO_PROC32_SIZE for struct
kinfo_proc32 for architectures providing COMPAT_FREEBSD32. Add
CTASSERT for the size of struct kinfo_proc32.

MFC r207269:
Style: use #define<TAB> instead of #define<SPACE>.

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