]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
FreeBSD/stable/8.git
13 years agoMFC r214237,214489:
uqs [Tue, 23 Nov 2010 21:36:53 +0000 (21:36 +0000)]
MFC r214237,214489:

Remove mention of non-existant -o flag for debugging options.

Fix CPU load reporting independent of scheduler used.
- Sample CPU usage data from kern.cp_times, this makes for a far more
  accurate and scheduler independent algorithm.
- Rip out the process list scraping that is no longer required.
- Don't update CPU usage sampling on every request, but every 15s
  instead. This makes it impossible for an attacker to hide the CPU load
  by triggering 4 samplings in short succession when the system is idle.
- After reaching the steady-state, the system will always report the
  average CPU load of the last 60 sampled seconds.
- Untangling of call graph.

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

13 years agoMFC r214288:
mav [Tue, 23 Nov 2010 21:35:13 +0000 (21:35 +0000)]
MFC r214288:
Make da driver to handle some probably broken Android devices, returning
zero media and sector size instead of "Medium not present" error,
until some confirmation button is tapped on device.

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

13 years agoMFC r215428, r215431, r215462:
mav [Tue, 23 Nov 2010 21:29:40 +0000 (21:29 +0000)]
MFC r215428, r215431, r215462:
Add support for VIA VX900 chipset SATA controller.

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

13 years agoMFC r214896:
mav [Tue, 23 Nov 2010 21:22:18 +0000 (21:22 +0000)]
MFC r214896:
Mark command submission timeouts as timeouts. This should trigger device
resets and increase chances of getting device back again.

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

13 years agoMFC r214880:
mav [Tue, 23 Nov 2010 21:20:27 +0000 (21:20 +0000)]
MFC r214880:
Add support for odd-sized PIO transfers, sometimes used by ATAPI.

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

13 years agoMFC r213856
n_hibma [Tue, 23 Nov 2010 19:22:44 +0000 (19:22 +0000)]
MFC r213856

- Add more USB devices to usbdevs and rename some previously unknown
  ones.
- Add more USB mass storage quirks.

Note: In this MFC the QUALCOMMINC E2000 entry is left intact as it is in
use.

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

13 years agoMFC r215353,215355:
yongari [Tue, 23 Nov 2010 19:21:44 +0000 (19:21 +0000)]
MFC r215353,215355:
r215353:
  Plug memory leakage introduced in r204989.

  Reported by: yongari
r215355:
  Restore the previous behaviour of substring match.

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

13 years agoMFC r215327,215350:
yongari [Tue, 23 Nov 2010 19:11:27 +0000 (19:11 +0000)]
MFC r215327,215350:
r215327:
  P5N32-SLI PREMIUM from ASUSTeK is known to have MSI/MSI-X issue
  such that nfe(4) does not work with MSI-X. When MSI-X support was
  introduced, I remember MCP55 controller worked without problems so
  the issue could be either PCI bridge or BIOS issue. But I also
  noticed snd_hda(4) disabled MSI on all MCP55 chipset so I'm still
  not sure this is generic issue of MCP55 chipset. If this was PCI
  bridge issue we would have added it to a system wide black-list
  table but it's not clear to me at this moment whether it was caused
  by either broken BIOS or silicon bug of MCP55 chipset.

  To workaround the issue, maintain a MSI/MSI-X black-list table in
  driver and lookup base board manufacturer and product name from the
  table before attempting to use MSI-X. If driver find an matching
  entry, nfe(4) will not use MSI/MSI-X and fall back on traditional
  INTx mode. This approach should be the last resort since it relies
  on smbios and if another instance of MSI/MSI-X breakage is reported
  with different maker/product, we may have to get the PCI bridge
  black-listed instead of adding an new entry.

  PR: kern/152150

r215350:
  Plug memory leakage introduced in r215327.

  Submitted by: jkim

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

13 years agoMFC r215237: Fix bug in jn(3) and jnf(3) that led to -inf results
uqs [Tue, 23 Nov 2010 18:48:57 +0000 (18:48 +0000)]
MFC r215237: Fix bug in jn(3) and jnf(3) that led to -inf results

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

13 years agoRevert r215755 as it was supposed to happen on -CURRENT and not STABLE_8.
attilio [Tue, 23 Nov 2010 18:47:43 +0000 (18:47 +0000)]
Revert r215755 as it was supposed to happen on -CURRENT and not STABLE_8.

Pointy hat to: me

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

13 years agoMake this printf output more verbose.
attilio [Tue, 23 Nov 2010 18:45:12 +0000 (18:45 +0000)]
Make this printf output more verbose.

Sponsored by: Sandvine Incorporated
Submitted by: Sandvine Incorporated
MFC after: 3 days

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

13 years agoMFC r208839,214999:
nwhitehorn [Tue, 23 Nov 2010 14:13:12 +0000 (14:13 +0000)]
MFC r208839,214999:
Add two new flags (IIC_M_NOSTOP and IIC_M_NOSTART) to struct iic_msg to
allow consumers of iicbus_transfer() to send messages with repeated starts.

Reviewed by: imp, thompsa

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

13 years agoMFC 212726:
zec [Tue, 23 Nov 2010 13:37:42 +0000 (13:37 +0000)]
MFC 212726:

  Make the format of "Real Memory" and "Virtual Memory" lines more
  consistent with the rest of sysctl vm.vmtotal output.

  MFC after:    3 days

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

13 years agoMFC 209723:
zec [Tue, 23 Nov 2010 13:28:45 +0000 (13:28 +0000)]
MFC 209723:

   Fix a double-free bug which can occur if both bit error rate and
   packet duplication probability are configured on a ng_pipe node.

   Submitted by:   Jeffrey Ahrenholtz
   MFC after:    3 days

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

13 years agoMFC 207426:
zec [Tue, 23 Nov 2010 13:26:59 +0000 (13:26 +0000)]
MFC 207426:

   Avoid undefined behaviour.

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

13 years agoMFC 206360:
zec [Tue, 23 Nov 2010 13:25:27 +0000 (13:25 +0000)]
MFC 206360:
   Start copyright notice with /*-

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

13 years agoMFC r215176:
pluknet [Tue, 23 Nov 2010 11:39:11 +0000 (11:39 +0000)]
MFC r215176:

 Stop documenting vgonel() after its converting to the static function:
  svn r147332 (by jeff): "Don't make vgonel() globally visible".
 While here, specify the vnode locking scheme for vgone().

Approved by: avg (mentor), kib (mentor)

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

13 years agoMFC r213718:
mm [Tue, 23 Nov 2010 11:31:12 +0000 (11:31 +0000)]
MFC r213718:

- Add support for xz compression to pkg_create, bzip2 remains the default
compression algorithm.
- Bump PKG_INSTALL_VERSION to 20101012.

Submitted by: mm
Approved by: portmgr (flz)

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

13 years agoMFC r213700, r215187, r215515:
mm [Tue, 23 Nov 2010 10:37:00 +0000 (10:37 +0000)]
MFC r213700, r215187, r215515:

MFC r213700:
Upgrade xz to git snapshot as of 20101010

MFC r215187:
Update xz to release 5.0.0

MFC r215515
Remove obsoleted private symbol.

Approved by: delphij (mentor)

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

13 years agoMFC 200669:
fabient [Tue, 23 Nov 2010 09:12:43 +0000 (09:12 +0000)]
MFC 200669:
Recognize Intel CPUs with Family 0x6, Models 0x1E and 0x1F.

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

13 years agoMFC r204459 (antonie):
delphij [Tue, 23 Nov 2010 01:39:30 +0000 (01:39 +0000)]
MFC r204459 (antonie):

Add files to remove when MK_PKGTOOLS=no.

MFC r215045 [1]:

Hide 460.chkportsum in MK_PKGTOOLS != no case.

Submitted by: Alex Kozlov <spam rm-rf kiev ua> [1]

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

13 years agoMFC of 213119
mckusick [Tue, 23 Nov 2010 01:24:27 +0000 (01:24 +0000)]
MFC of 213119

Reported problem:
Large (60GB) filesystems created using "newfs -U -O 1 -b 65536 -f 8192"
show incorrect results from "df" for free and used space when mounted
immediately after creation. fsck on the new filesystem (before ever
mounting it once) gives a "SUMMARY INFORMATION BAD" error in phase 5.

This error hasn't occurred in any runs of fsck immediately after
"newfs -U -b 65536 -f 8192" (leaving out the "-O 1" option).

Solution:
The default UFS1 superblock is located at offset 8K in the filesystem
partition; the default UFS2 superblock is located at offset 64K in
the filesystem partition. For UFS1 filesystems with a blocksize of
64K, the first alternate superblock resides at 64K which is the the
location used for the default UFS2 superblock. By default, the
system first checks for a valid superblock at the default location
for a UFS2 filoesystem. For a UFS1 filesystem with a blocksize of
64K, there is a valid UFS1 superblock at this location. Thus, even
though it is expected to be a backup superblock, the system will
use it as its default superblock. So, we have to ensure that all the
statistcs on usage are correct in this first alternate superblock
as it is the superblock that will actually be used.

While tracking down this problem, another limitation of UFS1 became
evident. For UFS1, the number of inodes per cylinder group is stored
in an int16_t. Thus the maximum number of inodes per cylinder group
is limited to 2^15 - 1. This limit can easily be exceeded for block
sizes of 32K and above. Thus when building UFS1 filesystems, newfs
must limit the number of inodes per cylinder group to 2^15 - 1.

Reported by: Guy Helmer<ghelmer@palisadesys.com>
Followup by: Bruce Cran <brucec@freebsd.org>
PR: 107692

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

13 years agoMFC r214754:
n_hibma [Mon, 22 Nov 2010 22:41:43 +0000 (22:41 +0000)]
MFC r214754:

Don't spam the console with 'Loading <alias module>' messages.

This cannot be hidden behind 'bootverbose' as this file is included from
userland.

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

13 years agoMFC -r212829: Bugfix: Reset the packet counters at the same time as the byte counts.
n_hibma [Mon, 22 Nov 2010 21:43:45 +0000 (21:43 +0000)]
MFC -r212829: Bugfix: Reset the packet counters at the same time as the byte counts.

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

13 years agoRemove a stale file. It seems this file was mis-merged from current.
jkim [Mon, 22 Nov 2010 21:12:20 +0000 (21:12 +0000)]
Remove a stale file.  It seems this file was mis-merged from current.

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

13 years agoMFH r215508:
mlaier [Mon, 22 Nov 2010 20:50:40 +0000 (20:50 +0000)]
MFH r215508:
  Off by one page in vm_reserv_reclaim_contig(): reclaim reservations with
  only a single free page as well.

  Reviewed by: alc

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

13 years agoMFC r209052, r210702, r211095, r211182, r212149: Fix a memory leak and
des [Mon, 22 Nov 2010 19:02:30 +0000 (19:02 +0000)]
MFC r209052, r210702, r211095, r211182, r212149: Fix a memory leak and
some potential deadlocks, increase the target limit from 4 to 64, and
numerous other scalability and stability improvements, including.

Submitted by: Daniel Braniss <danny@cs.huji.ac.il>
Sponsored by: Dansk Scanning A/S, Data Robotics Inc.

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

13 years agoMFC r212054:
nwhitehorn [Mon, 22 Nov 2010 17:39:18 +0000 (17:39 +0000)]
MFC r212054:
Restructure how reset and poweroff are handled on PowerPC systems, since
the existing code was very platform specific, and broken for SMP systems
trying to reboot from KDB.

- Add a new PLATFORM_RESET() method to the platform KOBJ interface, and
  migrate existing reset functions into platform modules.
- Modify the OF_reboot() routine to submit the request by hand to avoid
  the IPIs involved in the regular openfirmware() routine. This fixes
  reboot from KDB on SMP machines.
- Move non-KDB reset and poweroff functions on the Powermac platform
  into the relevant power control drivers (cuda, pmu, smu), instead of
  using them through the Open Firmware backdoor.
- Rename platform_chrp to platform_powermac since it has become
  increasingly Powermac specific. When we gain support for IBM systems,
  we will grow a new platform_chrp.

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

13 years agoMFC r208842:
nwhitehorn [Mon, 22 Nov 2010 17:15:41 +0000 (17:15 +0000)]
MFC r208842:
Add a driver for the CPU temperature sensors attached over I2C on the
PowerMac 11,2.

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

13 years agoMFC r208841:
nwhitehorn [Mon, 22 Nov 2010 17:14:29 +0000 (17:14 +0000)]
MFC r208841:
Add support for the I2C busses hanging off Apple system management chips.

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

13 years agoMFC r205506:
nwhitehorn [Mon, 22 Nov 2010 17:13:04 +0000 (17:13 +0000)]
MFC r205506:
Get nexus(4) out of the RTC business. The interface used by nexus(4)
in Open Firmware was Apple-specific, and we have complete coverage of Apple
system controllers, so move RTC responsibilities into the system controller
drivers. This avoids interesting problems from manipulating these devices
through Open Firmware behind the backs of their drivers.

Obtained from: NetBSD

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

13 years agoMFC r215100:
nwhitehorn [Mon, 22 Nov 2010 17:09:42 +0000 (17:09 +0000)]
MFC r215100:
Disabling CPU NAP modes during SMU commands is a hack needed only on U3
systems. Don't use it on non-U3 systems to allow cpu_idle() to work
correctly.

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

13 years agoMFC r204127,215101:
nwhitehorn [Mon, 22 Nov 2010 17:06:24 +0000 (17:06 +0000)]
MFC r204127,215101:
Provide support for the DEEPNAP power-saving mode found on the 970MP.

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

13 years agoMFC r214575:
nwhitehorn [Mon, 22 Nov 2010 17:03:09 +0000 (17:03 +0000)]
MFC r214575:
Allow access to the HT I/O port space on the IBM CPC9X5 northbridge chips.

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

13 years agoMFC r214610:
nwhitehorn [Mon, 22 Nov 2010 17:01:40 +0000 (17:01 +0000)]
MFC r214610:
Map userland copyin/copyout segment no-execute while it is mapped into the
kernel.

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

13 years agoMFC r213986:
nwhitehorn [Mon, 22 Nov 2010 16:58:07 +0000 (16:58 +0000)]
MFC r213986:
Fix an XXX comment by answering 'no'. OS X does not set the day-of-week
counter on SMU-based systems, which causes FreeBSD to reject the RTC time
when used in a dual-boot environment. Since we don't use the day-of-week
counter anyway, solve this by just not checking that it matches.

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

13 years agoWe're a bit under a week from Code Freeze for the upcoming 8.2-RELEASE
kensmith [Mon, 22 Nov 2010 16:09:57 +0000 (16:09 +0000)]
We're a bit under a week from Code Freeze for the upcoming 8.2-RELEASE
cycle.  Warn people tracking stable/8 that the branch may be more
active than usual.

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

13 years agoMFC r212247 & r212724 from head:
brian [Mon, 22 Nov 2010 09:32:54 +0000 (09:32 +0000)]
MFC r212247 & r212724 from head:
    Handle geli-encrypted root disk devices.
    Add support for identifying a journaled root filesystem.
    Fix support for identifying the given /dev/vinum/root example.

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

13 years agoMFC r215339:
netchild [Mon, 22 Nov 2010 08:35:06 +0000 (08:35 +0000)]
MFC r215339:
  Some style(9) fixes.

  Submitted by: arundel

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

13 years agoMFC r215338:
netchild [Mon, 22 Nov 2010 08:21:58 +0000 (08:21 +0000)]
MFC r215338:
  - print out the PID and program name of the program trying to use an
    unsupported futex operation
  - for those futex operations which are known to be not supported,
    print out which futex operation it is
  - shortcut the error return of the unsupported FUTEX_CLOCK_REALTIME in
    some cases:
      FUTEX_CLOCK_REALTIME can be used to tell linux to use
      CLOCK_REALTIME instead of CLOCK_MONOTONIC. FUTEX_CLOCK_REALTIME
      however must only be set, if either FUTEX_WAIT_BITSET or
      FUTEX_WAIT_REQUEUE_PI are set too. If that's not the case
      we can die with ENOSYS right at the beginning.

  Submitted by: arundel
  Reviewed by: rdivacky (earlier iteration of the patch)
  MFC after: 1 week

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

13 years agoMFC r215607:
kevlo [Mon, 22 Nov 2010 06:41:05 +0000 (06:41 +0000)]
MFC r215607:
Fix missing closedir()

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

13 years agoMFC r215519:
kevlo [Mon, 22 Nov 2010 06:38:52 +0000 (06:38 +0000)]
MFC r215519:
Fix fd leak

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

13 years agoMFC r215518:
kevlo [Mon, 22 Nov 2010 06:37:21 +0000 (06:37 +0000)]
MFC r215518:
Close file and directory descriptors

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

13 years agoMFC r215335:
kevlo [Mon, 22 Nov 2010 06:31:42 +0000 (06:31 +0000)]
MFC r215335:
Remove unused struct rue_type

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

13 years agoMFC r209669
alc [Mon, 22 Nov 2010 06:25:56 +0000 (06:25 +0000)]
MFC r209669
  Improve the comment and man page for vm_page_alloc().

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

13 years agoMFC 215334:
dougb [Mon, 22 Nov 2010 00:31:52 +0000 (00:31 +0000)]
MFC 215334:

Remove references to MAKEDEV(8)

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

13 years agoMFC 215250:
dougb [Mon, 22 Nov 2010 00:10:14 +0000 (00:10 +0000)]
MFC 215250:

Remove references to the long-gone ramdisk

Submitted by: Garrett Cooper <yanegomi@gmail.com>

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

13 years agoMFC r203567 (by antoine):
brucec [Sun, 21 Nov 2010 18:04:28 +0000 (18:04 +0000)]
MFC r203567 (by antoine):
Update files to remove when MK_KERBEROS=no.

MFC r203561 (by antoine):
Add files to remove when MK_GSSAPI=no.

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

13 years agoMFC r215306:
brucec [Sun, 21 Nov 2010 13:41:04 +0000 (13:41 +0000)]
MFC r215306:

libatm_p.a, libkeycap_p.a and libmytinfo_p.a are already in ObsoleteFiles.inc.
liblwres.so.10 has been replaced by liblwres.so.50.
usr/share/man/man8/nsupdate.8.gz was moved to usr/share/man/man1/nsupdate.1.gz
in bind 9.4.3.

Reported by: arundel

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

13 years agoMFC r212262:
kib [Sun, 21 Nov 2010 13:25:10 +0000 (13:25 +0000)]
MFC r212262:
Add aesni(4) manpage.

MFC r212268:
Grammar fixes.

MFC r212388 (by brueffer):
Some more grammar, wording and mdoc fixes.

MFC r212389 (by brueffer):
Xref aesni(4).

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

13 years agoBring aesni(4) driver from HEAD.
kib [Sun, 21 Nov 2010 13:20:14 +0000 (13:20 +0000)]
Bring aesni(4) driver from HEAD.

MFC r210409:
Crypto(4) driver for AESNI.

MFC r213064 (by pjd):
Simplify code a bit.

MFC r213066 (by pjd):
Add support for CRD_F_KEY_EXPLICIT flag.

MFC r213069 (by pjd):
Add support for CRYPTO_AES_XTS.

MFC r213166 (by pjd):
Fix two copy&paste bugs.

MFC r213797 (by dim):
Change two missed instances of 'retq' in aeskeys_i386.S to 'retl'.

MFC r215427:
Only save FPU context when not executing in the context of the crypto
thread.

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

13 years agoMFC r215286:
brucec [Sun, 21 Nov 2010 13:04:53 +0000 (13:04 +0000)]
MFC r215286:

Connect to ftp2.tr.freebsd.org when the Turkey #2 mirror is selected.

PR: bin/128587
Submitted by:  Mehmet Kose <mehmet.kose at gmail.com>

MFC r215287:

"Web" should not be all upper-case because it's not an acronym.

PR: bin/130366
Submitted by: Royce Williams <royce at alaska.net>

MFC r215290:

ntpdate(8) hosts are now configured in rc.conf via ntpdate_hosts.

PR: bin/148350
Submitted by: Joel FAEDI <joel.faedi at gmail.com>

MFC r215291:

Remove support for cpioVerbose=medium because bsdcpio doesn't support the
"-V" flag.

PR: bin/151821
Submitted by: Devin Teske <dteske at vicor.com>

MFC r215296:

Fix use of CD_VERSION=any in cdrom.inf by calling strcmp instead of
variable_cmp.

PR: bin/142960
Submitted by: G. Paul Ziemba <p-fbsd-bugs at ziemba.us>

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

13 years agoMFC r215284, r215285:
brucec [Sun, 21 Nov 2010 12:52:33 +0000 (12:52 +0000)]
MFC r215284, r215285:

When rebooting the machine jump to 0xf000:0xfff0 instead of 0xffff:0x0.
This is the same change that was made in rev 1.33 of boot/i386/btx/btx.S.

PR: i386/91871
Submitted by: Bjorn Konig <bkoenig at cs.tu-berlin.de>

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

13 years agoMFC r215281, r215282, r215283, r215304:
brucec [Sun, 21 Nov 2010 12:47:54 +0000 (12:47 +0000)]
MFC r215281, r215282, r215283, r215304:

Add some descriptions to sys/kern sysctls.
Fix style(9) issues.

PR: kern/148710
PR: kern/148510

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

13 years agoMFC r214125:
delphij [Sun, 21 Nov 2010 12:40:16 +0000 (12:40 +0000)]
MFC r214125:

In syscall_module_handler(): all switch branches return, remove
unreached code as pointed out in a Chinese forum [1].

[1] http://www.freebsdchina.org/forum/viewtopic.php?t=50619

Pointed out by: btw616 <btw s qq com>

MFC r214181:

Call chainevh callback when we are invoked with neither MOD_LOAD nor
MOD_UNLOAD.  This makes it possible to add custom hooks for other module
events.

Return EOPNOTSUPP when there is no callback available.

Pointed out by: jhb
Reviewed by: jhb

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

13 years agoRevert r215618, ABI breakage ahead.
bschmidt [Sun, 21 Nov 2010 12:32:35 +0000 (12:32 +0000)]
Revert r215618, ABI breakage ahead.

Pointy hat to: me

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

13 years agoMFC r210372:
simon [Sun, 21 Nov 2010 11:10:09 +0000 (11:10 +0000)]
MFC r210372:

Add support for creating the archived log filenames using a time-stamp
instead of the traditional simple counter.

Using the time-stamp based file-names, once a log file is archived, it
will not change name until it is deleted.  This means that many backup
systems will only perform one backup of the archived log file, instead
for performing a new backup of the logfile upon each logfile rotation.

This implementation is separate from the patches in the mentioned PR,
as I wasn't aware of the existence of the PR until after I had
implemented the same functionality as the patches in the PR provide.
Unlike the PR, this new code does honor the 'log count' in
newsyslog.conf so old logfiles are deleted.  This new code does not
currently support never deleting the archived logfiles.

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

13 years agoMFC r215249:
tuexen [Sun, 21 Nov 2010 11:08:22 +0000 (11:08 +0000)]
MFC r215249:
Add for existing protocol entries the missing SCTP port allocations
and add protocol entries for protocols which have SCTP port allocations.
These entries are according to
http://www.iana.org/assignments/port-numbers
as of today. Also add SCTP port allocation entires for the
echo, daytime, and chargen service.
Discussed with rwatson@

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

13 years agoMFC r208649 by gordon (needed for MFC of r210372):
simon [Sun, 21 Nov 2010 11:04:19 +0000 (11:04 +0000)]
MFC r208649 by gordon (needed for MFC of r210372):

Add file include processing for newsyslog.

Format for the include line in /etc/newsyslog.conf is:
<include> /etc/defaults/newsyslog.conf

Other notes of interest:
Globbing is supported in <include> statements.
Properly detect circular include loop dependencies.

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

13 years agoMFC r203422,r203556:
bschmidt [Sun, 21 Nov 2010 11:03:22 +0000 (11:03 +0000)]
MFC r203422,r203556:
When taking the AMPDU reorder fastpath, need_tap wasn't being
initialized. Initialize on declaration to avoid this.

Found with: clang static analyzer
Committed by: rpaulo

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

13 years agoMFC r208648 by gordon (needed for MFC of r210372):
simon [Sun, 21 Nov 2010 11:01:56 +0000 (11:01 +0000)]
MFC r208648 by gordon (needed for MFC of r210372):

Convert newsyslog to using queue(3) macros instead of a home rolled version.

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

13 years agoMFC r199076:
bschmidt [Sun, 21 Nov 2010 10:58:18 +0000 (10:58 +0000)]
MFC r199076:
The isr_intval in ieee80211req_scan_result structure should be 16 bit.
This makes ifconfig list scan display the correct beacon interval
(previously it would int overflow). As a side effect, this makes the
ieee80211req_scan_result word aligned.

Submitted by: Paul B Mahol <onemda at gmail.com>
Committed by: rpaulo

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

13 years agoMFC r200242:
bschmidt [Sun, 21 Nov 2010 10:55:43 +0000 (10:55 +0000)]
MFC r200242:
Fix typo in comment

Submitted by: Paul B Mahol <onemda at gmail.com>
Committed by: rpaulo

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

13 years agoMFC r207322:
bschmidt [Sun, 21 Nov 2010 10:52:18 +0000 (10:52 +0000)]
MFC r207322:
Fix typo. No functional change.

Obtained from: DragonFlyBSD
Committed by: rpaulo

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

13 years agoCompare the address of the array, not the array.
bschmidt [Sun, 21 Nov 2010 10:49:40 +0000 (10:49 +0000)]
Compare the address of the array, not the array.

Committed by: rpaulo
Found with: Coverity Prevent(tm)
CID: 3690

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

13 years agoMFC r208028 by uqs:
simon [Sun, 21 Nov 2010 10:45:10 +0000 (10:45 +0000)]
MFC r208028 by uqs:

mdoc: move remaining sections into consistent order

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

13 years agoMFC r215309:
kib [Sun, 21 Nov 2010 10:00:43 +0000 (10:00 +0000)]
MFC r215309:
Use symbolic names instead of hardcoding values for magic p_osrel constants.

MFC r215321:
Do not use __FreeBSD_version prefix for the special osrel version.

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

13 years agoMFC r215307:
kib [Sun, 21 Nov 2010 09:50:11 +0000 (09:50 +0000)]
MFC r215307:
Implement a (soft) stack guard page for auto-growing stack mappings.

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

13 years agoMFC: r215325
marius [Sun, 21 Nov 2010 00:53:19 +0000 (00:53 +0000)]
MFC: r215325

Use the correct variable for determining the verbosity level in mpt_lprtc().
While at it, fix the whitespace of that macro.

PR: 149502
Submitted by: Andrew Boyer

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

13 years agoMFC: r215295
marius [Sun, 21 Nov 2010 00:50:29 +0000 (00:50 +0000)]
MFC: r215295

Let cryptosoft(4) add its pseudo-device with a specific unit number and its
probe method return BUS_PROBE_NOWILDCARD so it doesn't get attached to real
devices hanging off of nexus(4) with no specific devclass set. Actually, the
more desirable fix for this would be to get rid of the newbus interface of
cryptosoft(4) altogether but apparently crypto(9) was written with support
for cryptographic hardware in mind so that approach would require some KPI
breaking changes which don't seem worth it.

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

13 years agoMFC: r215093
marius [Sun, 21 Nov 2010 00:45:18 +0000 (00:45 +0000)]
MFC: r215093

Enable reservation-based physical memory allocation.  Even without the
creation of large page mappings in the pmap, it can provide modest
performance benefits.  In particular, for a "buildworld" on a 2x 1GHz
Ultrasparc IIIi it reduced the wall clock time by 2.2% and the system
time by 12.6%.

Tested by: marius@

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

13 years agoMFC r215410:
tuexen [Sat, 20 Nov 2010 21:44:18 +0000 (21:44 +0000)]
MFC r215410:
Add an SCTP socket option to retrieve the number of timeouts
of an association.

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

13 years agoMFC r215305:
tuexen [Sat, 20 Nov 2010 21:41:07 +0000 (21:41 +0000)]
MFC r215305:
Take out special code for disable CRC computations on
the loopback interface for IPv6. It will be handled
by the loopback interface.

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

13 years agoMFC r215301:
tuexen [Sat, 20 Nov 2010 21:39:08 +0000 (21:39 +0000)]
MFC r215301:
Simplify sctp_delayed_cksum() a bit.

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

13 years agoMFC r215241:
tuexen [Sat, 20 Nov 2010 21:24:17 +0000 (21:24 +0000)]
MFC r215241:

Fix a locking issue reported by brucec@ affecting
1-to-1 style sockets which have not yet been
accepted.

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

13 years agoMFC r215199:
tuexen [Sat, 20 Nov 2010 21:22:20 +0000 (21:22 +0000)]
MFC r215199:
Don't print an empty line when printing mapping arrays.

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

13 years agoMFC r215134,r215198:
tuexen [Sat, 20 Nov 2010 21:20:39 +0000 (21:20 +0000)]
MFC r215134,r215198:
Fix issues with the SACK/NR-SACK generation code.

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

13 years agoMFC r215039:
tuexen [Sat, 20 Nov 2010 21:15:44 +0000 (21:15 +0000)]
MFC r215039:
Improve the scalability by using the local and remote port when
putting inps in the tcpephash.

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

13 years agoMFC r215034:
brucec [Sat, 20 Nov 2010 20:34:13 +0000 (20:34 +0000)]
MFC r215034:

Fix typos.

PR: bin/148894
Submitted by: olgeni

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

13 years agoMFC r215211: echo(1): Clarify portability and mention literal "--" handling.
jilles [Sat, 20 Nov 2010 19:39:12 +0000 (19:39 +0000)]
MFC r215211: echo(1): Clarify portability and mention literal "--" handling.

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

13 years agoMFC r215035:
tuexen [Sat, 20 Nov 2010 19:39:02 +0000 (19:39 +0000)]
MFC r215035:
Fix a bug which resulted in kevent() reporting an event twice on
1-to-1 style sockets when an ABORT was received.

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

13 years agoMFC r215184: sh: Remove unused man page for echo builtin.
jilles [Sat, 20 Nov 2010 19:37:33 +0000 (19:37 +0000)]
MFC r215184: sh: Remove unused man page for echo builtin.

The information in sh(1) about the echo builtin is equivalent, though less
extensive.

The echo(1) man page (bin/echo/echo.1) is different.

Unfortunately, sh's echo builtin and /bin/echo have gone out of sync and
this probably cannot be fixed any more.

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

13 years agoMFC r214939:
tuexen [Sat, 20 Nov 2010 19:37:00 +0000 (19:37 +0000)]
MFC r214939:
Do not have the MTU table twice in the code. Therefore move the
function from the timer code to util, rename it appropriately and
also fix a bug in sctp_get_prev_mtu(), where calling it with a
value existing in the MTU table did not return a smaller one.

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

13 years agoMFC r214933:
tuexen [Sat, 20 Nov 2010 19:35:13 +0000 (19:35 +0000)]
MFC r214933:
Remove two functions which are not used.

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

13 years agoMFC r214928:
tuexen [Sat, 20 Nov 2010 19:33:42 +0000 (19:33 +0000)]
MFC r214928:
 * Use exponential backoff for retransmission of SHUTDOWN and
   SHUTDOWN-ACK chunks.
 * While there, do some cleanups.

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

13 years agoMFC r214918:
tuexen [Sat, 20 Nov 2010 19:31:31 +0000 (19:31 +0000)]
MFC r214918:
Not only stop all timers when entering the SHUTDOWN_SENT state,
but also when entering the SHUTDOWN_ACK_SENT state.

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

13 years agoMFC r214877:
tuexen [Sat, 20 Nov 2010 19:29:18 +0000 (19:29 +0000)]
MFC r214877:

Do not resend DATA chunks without delay when dropped by the peer and
the CRC was correct.

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

13 years agoMFC r214876
tuexen [Sat, 20 Nov 2010 19:26:35 +0000 (19:26 +0000)]
MFC r214876
 * Fix an accounting bug regarding SACK/NR-SACK chunks.
 * Fix the generation of the SACK/NR-SACK gap lists.

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

13 years agoAdd a second fix-up for the PC98 case.
attilio [Sat, 20 Nov 2010 18:24:09 +0000 (18:24 +0000)]
Add a second fix-up for the PC98 case.
PC98 cases might be explicit in presence of a difference with i386
because both are defined, leading to mishandling of code in
circumstances like this.

Reported by: nyan

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

13 years agoMFC r215183: Make POLL_ERR and POLL_HUP different.
jilles [Sat, 20 Nov 2010 16:46:16 +0000 (16:46 +0000)]
MFC r215183: Make POLL_ERR and POLL_HUP different.

The kernel currently does not generate any of the POLL_* constants, but
some applications use them and break if they are not all distinct.

PR: kern/126076

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

13 years agofix a mismerge in r215521: MFC imports of ACPICA revisions 20100428
avg [Sat, 20 Nov 2010 16:42:19 +0000 (16:42 +0000)]
fix a mismerge in r215521: MFC imports of ACPICA revisions 20100428
through 20101013

The mismerge resulted in ia64 build breakage.
This is a direct commit.

Pointyhat to: avg

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

13 years agoMFC r201793:
bschmidt [Sat, 20 Nov 2010 13:28:32 +0000 (13:28 +0000)]
MFC r201793:
Fix #ifdefs so that GCC 4.4 doesn't complain about it.

Committed by: trasz

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

13 years agoMFC r213321:
bschmidt [Sat, 20 Nov 2010 13:26:09 +0000 (13:26 +0000)]
MFC r213321:
Fix background roaming to actually work in AUTO roaming mode.

IEEE80211_F_BGSCAN is a vap flag, not a channel flag. So although bgscan
occured, sta_roam_check() would never be called.

Committed by: adrian

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

13 years agoMFC r209092:
bschmidt [Sat, 20 Nov 2010 13:24:05 +0000 (13:24 +0000)]
MFC r209092:
Remove GNU-style struct initialization.

Committed by: ed

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

13 years agoMFC r212853-212855:
bschmidt [Sat, 20 Nov 2010 13:12:59 +0000 (13:12 +0000)]
MFC r212853-212855:
Rewrite parts of the calibration code which is run while bringing up
the device:
- Group functions used for initial calibration.
- Unobscure some of the code by moving it into its own functions.
- Get rid of some magic numbers.
- Create similar structure as the reference driver has, this should
  make further syncs easier.

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

13 years agoMFC r199018 & r199037:
bschmidt [Sat, 20 Nov 2010 12:59:01 +0000 (12:59 +0000)]
MFC r199018 & r199037:
Turn off debug output by default.

Committed by: dougb

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

13 years agoMFC r215289:
bschmidt [Sat, 20 Nov 2010 12:28:24 +0000 (12:28 +0000)]
MFC r215289:
The ni_rctls checks are used to verify that a ratectl algo has set up
its internal data. This has been used to bypass missing calls in drivers
which do not use the ratectl framework correctly. Issue is, not all algos
use that variable, or even have internal data, therefore valid calls are
not done. Fix this by removing the checks, all driver issues should be
resolved.

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

13 years agoMFC r215244:
bschmidt [Sat, 20 Nov 2010 12:26:31 +0000 (12:26 +0000)]
MFC r215244:
Some device drivers calculate various timing related things based on
the currently selected rate. The calculations of course need a valid
rate. To make that possible before any call to node_rate() is done,
initialize ni_txrate on none_node_init() calls.

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

13 years agoMFC r214894:
bschmidt [Sat, 20 Nov 2010 12:24:26 +0000 (12:24 +0000)]
MFC r214894:
Instead of using the AMRR ratectl algo as default for drivers which have
the IEEE80211_C_RATECTL flag set, default to NONE for all drivers. Only if
a driver calls ieee80211_ratectl_init() check if the NONE algo is still
selected and try to use AMRR in that case. Drivers are still free to use
any other algo by calling ieee80211_ratectl_set() prior to the
ieee80211_ratectl_init() call.

After this change it is now safe to assume that a ratectl algo is always
available and selected, which renders the IEEE80211_C_RATECTL flag pretty
much useless. Therefore revert r211314 and 211546.

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

13 years agoMFC r207323:
bschmidt [Sat, 20 Nov 2010 12:22:02 +0000 (12:22 +0000)]
MFC r207323:
When in the RUN -> AUTH -> RUN FSM transition happens, we'll call the
ratectl_node_init() functions and since ni_rtctls was already malloc'ed()
we will panic. Fix this by using the already malloc'ed pointer.

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