]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
14 years agofix copyright format, as requested by Joel Dahl
luigi [Tue, 13 Apr 2010 09:56:17 +0000 (09:56 +0000)]
fix copyright format, as requested by Joel Dahl

14 years agomake code compile with KTR
luigi [Tue, 13 Apr 2010 09:53:08 +0000 (09:53 +0000)]
make code compile with KTR

14 years agouse correct .PATH, remove unused CFLAGS
luigi [Tue, 13 Apr 2010 09:52:42 +0000 (09:52 +0000)]
use correct .PATH, remove unused CFLAGS

14 years agoAlign the declaration for sa_sigaction with POSIX.
kib [Tue, 13 Apr 2010 08:56:03 +0000 (08:56 +0000)]
Align the declaration for sa_sigaction with POSIX.

MFC after: 3 days

14 years agoUpdate the list of the process flags for P_WKILLED.
kib [Tue, 13 Apr 2010 08:54:53 +0000 (08:54 +0000)]
Update the list of the process flags for P_WKILLED.

MFC after: 4 weeks

14 years agoHandle a case in kern_openat() when vn_open() change file type from
kib [Tue, 13 Apr 2010 08:52:20 +0000 (08:52 +0000)]
Handle a case in kern_openat() when vn_open() change file type from
DTYPE_VNODE.

Only acquire locks for O_EXLOCK/O_SHLOCK if file type is still vnode,
since we allow for fcntl(2) to process with advisory locks for
DTYPE_VNODE only. Another reason is that all fo_close() routines need to
check and release locks otherwise.

For O_TRUNC, call fo_truncate() instead of truncating the vnode.

Discussed with: rwatson
MFC after: 2 week

14 years agoRemove XXX comment. Add another comment, describing why f_vnode assignment
kib [Tue, 13 Apr 2010 08:45:55 +0000 (08:45 +0000)]
Remove XXX comment. Add another comment, describing why f_vnode assignment
is useful.

MFC after: 3 days

14 years agoSimplify vm_thread_swapin().
alc [Tue, 13 Apr 2010 06:48:37 +0000 (06:48 +0000)]
Simplify vm_thread_swapin().

14 years agoThe Quanta Q101 modem has a different type of cdrom driver disk,
kevlo [Tue, 13 Apr 2010 06:27:02 +0000 (06:27 +0000)]
The Quanta Q101 modem has a different type of cdrom driver disk,
add the product id and use a standard scsi eject.

Reviewed by: thompsa
MFC after: 3 days

14 years agoSync up to SDM 2.2.
marcel [Tue, 13 Apr 2010 03:10:38 +0000 (03:10 +0000)]
Sync up to SDM 2.2.

14 years agoSync some minor items with the upstream driver. Should have no functional
emaste [Tue, 13 Apr 2010 01:16:15 +0000 (01:16 +0000)]
Sync some minor items with the upstream driver.  Should have no functional
change.

14 years agoWhitespace cleanup, in advance of next sync with Adaptec's driver. No
emaste [Tue, 13 Apr 2010 00:33:07 +0000 (00:33 +0000)]
Whitespace cleanup, in advance of next sync with Adaptec's driver.  No
functional change.

14 years ago- Add an entry for myself to committers-ports.dot
sahil [Mon, 12 Apr 2010 23:47:29 +0000 (23:47 +0000)]
- Add an entry for myself to committers-ports.dot

14 years agoSimplify how we select which architectures to add gdbserver for. If
imp [Mon, 12 Apr 2010 23:35:58 +0000 (23:35 +0000)]
Simplify how we select which architectures to add gdbserver for.  If
the MD files exist, compile it, otherwise omit it.

14 years agoDoh! Last minute changes bites me in the butt....
imp [Mon, 12 Apr 2010 21:33:06 +0000 (21:33 +0000)]
Doh!  Last minute changes bites me in the butt....

Remove _ to make things build again.

14 years agobce, bwi, bwn, mfi, mpt and siba_bwn all now compile that arm and mips
imp [Mon, 12 Apr 2010 18:28:08 +0000 (18:28 +0000)]
bce, bwi, bwn, mfi, mpt and siba_bwn all now compile that arm and mips
have added a BUS_SPACE_UNSPECIFIED definition.  Add them back to the
mix on these platforms.

14 years agoBring in geom_sched, support for scheduling disk I/O requests
luigi [Mon, 12 Apr 2010 16:37:45 +0000 (16:37 +0000)]
Bring in geom_sched, support for scheduling disk I/O requests
in a device independent manner. Also include an example anticipatory
scheduler, gsched_rr, which gives very nice performance improvements
in presence of competing random access patterns.

This is joint work with Fabio Checconi, developed last year
and presented at BSDCan 2009. You can find details in the
README file or at

http://info.iet.unipi.it/~luigi/geom_sched/

14 years agoRemove svn:executable prop.
rpaulo [Mon, 12 Apr 2010 13:46:20 +0000 (13:46 +0000)]
Remove svn:executable prop.

14 years ago- Add myself to the ports committers graph
fluffy [Mon, 12 Apr 2010 12:28:22 +0000 (12:28 +0000)]
- Add myself to the ports committers graph

Forgot to do it when gain my commit bit :)

14 years agofix a buffer overflow with large (100k+) number of input lines.
luigi [Mon, 12 Apr 2010 08:27:53 +0000 (08:27 +0000)]
fix a buffer overflow with large (100k+) number of input lines.

MFC after: 3 days

14 years agoAdd #endif missed in r206490.
marius [Sun, 11 Apr 2010 21:22:02 +0000 (21:22 +0000)]
Add #endif missed in r206490.

14 years agosh: Test that bogus values of PWD are not imported from the environment.
jilles [Sun, 11 Apr 2010 20:21:34 +0000 (20:21 +0000)]
sh: Test that bogus values of PWD are not imported from the environment.

Current versions pass this test trivially by never importing PWD, but I plan
to change sh to import PWD if it is an absolute pathname for the current
directory, possibly containing symlinks.

14 years agoWhile SPARC V9 allows tininess to be detected either before or after
marius [Sun, 11 Apr 2010 20:08:54 +0000 (20:08 +0000)]
While SPARC V9 allows tininess to be detected either before or after
rounding (impl. dep. #55), the SPARC JPS1 responsible for SPARC64 and
UltraSPARC processors defines that in all cases  tininess is detected
before rounding therefore rounding up to the smallest normalized number
should set the underflow flag. This change is needed for using SoftFloat
on sparc64 for reference purposes.

PR: 144900
Submitted by: Peter Jeremy

14 years agoAdd myself to the ports committers graph
rene [Sun, 11 Apr 2010 19:58:01 +0000 (19:58 +0000)]
Add myself to the ports committers graph

Approved by: tabthorpe (mentor, implicit)

14 years agoTake a reference to make sure that the interface cannot go away during
bz [Sun, 11 Apr 2010 18:47:38 +0000 (18:47 +0000)]
Take a reference to make sure that the interface cannot go away during
if_clone_destroy() in case parallel threads try to.

PR: kern/116837
Submitted by: Mikolaj Golub (to.my.trociny gmail.com)
MFC after: 10 days

14 years agoIf a file is specifically both included and excluded, then:
kientzle [Sun, 11 Apr 2010 18:44:42 +0000 (18:44 +0000)]
If a file is specifically both included and excluded, then:
 * It is not extracted (because it is excluded)
 * If it's not present in the archive, then an error is
   reported (because the file was requested and not found)
 * If it is present in the archive, no error is reported.
Previously, this would always report an error because the
exclusion prevented the entry from matching the inclusion.

Also, tar is now more reluctant to report unmatched inclusions.
Previously, "tar x file1 'file*'" against an archive that contained a
single entry "file1" would match file1 and then report an error for
the second pattern because it wasn't matched.  It now considers both
inclusions to be matched and reports no error.

14 years agoCheck that the interface is on the list of cloned interfaces before trying
bz [Sun, 11 Apr 2010 18:41:31 +0000 (18:41 +0000)]
Check that the interface is on the list of cloned interfaces before trying
to remove it to avoid panics in case of two threads trying to remove it in
parallel.

PR: kern/116837
Submitted by: Takahiro Kurosawa (takahiro.kurosawa gmail.com) (orig version)
MFC after: 10 days

14 years agoDiff reduction against bsdtar 2.8.3
kientzle [Sun, 11 Apr 2010 16:28:10 +0000 (16:28 +0000)]
Diff reduction against bsdtar 2.8.3

14 years agoDiff reduction against bsdtar 2.8.3
kientzle [Sun, 11 Apr 2010 16:27:38 +0000 (16:27 +0000)]
Diff reduction against bsdtar 2.8.3

14 years agoInitialize the virtual memory-related resource limits in a single place.
alc [Sun, 11 Apr 2010 16:26:07 +0000 (16:26 +0000)]
Initialize the virtual memory-related resource limits in a single place.
Previously, one of these limits was initialized in two places to a
different value in each place.  Moreover, because an unsigned int was used
to represent the amount of pageable physical memory, some of these limits
were incorrectly initialized on 64-bit architectures.  (Currently, this
error is masked by login.conf's default settings.)

Make vm_thread_swapin() and vm_thread_swapout() static.

Submitted by: bde (an earlier version)
Reviewed by: kib

14 years ago- Introduce a blessed list for sxlocks that prevents the deadlkres to
attilio [Sun, 11 Apr 2010 16:06:09 +0000 (16:06 +0000)]
- Introduce a blessed list for sxlocks that prevents the deadlkres to
  panic on those ones. [0]
- Fix ticks counter wrap-up

Sponsored by: Sandvine Incorporated
[0] Reported by: jilles
[0] Tested by: jilles
MFC: 1 week

14 years agoPlug reference leaks in the link-layer code ("new-arp") that previously
bz [Sun, 11 Apr 2010 16:04:08 +0000 (16:04 +0000)]
Plug reference leaks in the link-layer code ("new-arp") that previously
prevented the link-layer entry from being freed.

In both in.c and in6.c (though that code path seems to be basically dead)
plug a reference leak in case of a pending callout being drained.

In if_ether.c consistently add a reference before resetting the callout
and in case we canceled a pending one remove the reference for that.
In the final case in arptimer, before freeing the expired entry, remove
the reference again and explicitly call callout_stop() to clear the active
flag.

In nd6.c:nd6_free() we are only ever called from the callout function and
thus need to remove the reference there as well before calling into
llentry_free().

In if_llatbl.c when freeing entire tables make sure that in case we cancel
a pending callout to remove the reference as well.

Reviewed by: qingli (earlier version)
MFC after: 10 days
Problem observed, patch tested by: simon on ipv6gw.f.o,
Christian Kratzer (ck cksoft.de),
Evgenii Davidov (dado korolev-net.ru)
PR: kern/144564
Configurations still affected: with options FLOWTABLE

14 years agoUpdate for UltraSPARC-IV{,+} and SPARC64 V, VI, VII and VIIIfx CPUs.
marius [Sun, 11 Apr 2010 15:35:17 +0000 (15:35 +0000)]
Update for UltraSPARC-IV{,+} and SPARC64 V, VI, VII and VIIIfx CPUs.

14 years agoFix grammar in comment.
ume [Sun, 11 Apr 2010 15:31:09 +0000 (15:31 +0000)]
Fix grammar in comment.

Submitted by: "b. f." <bf1783__at__googlemail.com>
MFC after: 3 days

14 years agoDeclare all functions as static.
bschmidt [Sun, 11 Apr 2010 13:51:20 +0000 (13:51 +0000)]
Declare all functions as static.

Approved by: rpaulo (mentor)
MFC after: 2 weeks

14 years agoHook ieee80211_media_change() to ieee80211_vap_attach().
bschmidt [Sun, 11 Apr 2010 13:48:52 +0000 (13:48 +0000)]
Hook ieee80211_media_change() to ieee80211_vap_attach().

Approved by: rpaulo (mentor)
MFC after: 2 weeks

14 years agoiwn5000_reset_sched() is not used; #ifdef it.
bschmidt [Sun, 11 Apr 2010 13:47:46 +0000 (13:47 +0000)]
iwn5000_reset_sched() is not used; #ifdef it.

Approved by: rpaulo (mentor)
MFC after: 2 weeks

14 years agoAdd some missing protoypes.
bschmidt [Sun, 11 Apr 2010 13:46:42 +0000 (13:46 +0000)]
Add some missing protoypes.

Approved by: rpaulo (mentor)
MFC after: 2 weeks

14 years agosh: Partially revert r206146, allowing double-quotes in arithmetic.
jilles [Sun, 11 Apr 2010 12:24:47 +0000 (12:24 +0000)]
sh: Partially revert r206146, allowing double-quotes in arithmetic.

These do pretty much nothing (except that parentheses are ignored), but
people seem to use them and allowing them does not hurt much.

Single-quotes seem not to be used and cause silently different behaviour
with ksh93 character constants.

14 years agoDon't forget to catch realloc() errors.
ed [Sun, 11 Apr 2010 12:07:03 +0000 (12:07 +0000)]
Don't forget to catch realloc() errors.

14 years agoAlphabetically sort the output of lastlogin(8).
ed [Sun, 11 Apr 2010 12:02:13 +0000 (12:02 +0000)]
Alphabetically sort the output of lastlogin(8).

According to the manpage, the entries have to be sorted by uid. This is
no longer possible, since our utmpx implementation is completely unaware
of user IDs. You can safely add entries for multiple users sharing the
same uid.

Make the output less random by sorting everything by name.

14 years agoIn if_detach_internal() we cannot hold the af_data lock over the
bz [Sun, 11 Apr 2010 11:51:44 +0000 (11:51 +0000)]
In if_detach_internal() we cannot hold the af_data lock over the
dom_ifdetach() calls as they might sleep for callout_drain().
Do as we do in if_attachdomain1() [r121470] and handle
if_afdata_initialized earlier and call dom_ifdetach() unlocked.

Discussed with: rwatson
MFC after: 10 days

14 years agoIn if_detach_internal() only try to do the detach run if if_attachdomain1()
bz [Sun, 11 Apr 2010 11:49:24 +0000 (11:49 +0000)]
In if_detach_internal() only try to do the detach run if if_attachdomain1()
has actually succeeded to initialize and attach.  There is a theoretical
possibility to drop out early in if_attachdomain1() leaving the array
uninitialized if we cannot get the lock.

Discussed with: rwatson
MFC after: 10 days

14 years agoFix -X.
kientzle [Sun, 11 Apr 2010 01:36:10 +0000 (01:36 +0000)]
Fix -X.

14 years agoConsistently specify O_BINARY when opening files.
kientzle [Sun, 11 Apr 2010 01:32:30 +0000 (01:32 +0000)]
Consistently specify O_BINARY when opening files.

14 years agoRemove an unnecessary include and conditionalize some code.
kientzle [Sun, 11 Apr 2010 01:31:50 +0000 (01:31 +0000)]
Remove an unnecessary include and conditionalize some code.

14 years agoCorrect the markup for the -s option,
kientzle [Sun, 11 Apr 2010 01:30:15 +0000 (01:30 +0000)]
Correct the markup for the -s option,
document the iso9660:rockridge and mtree:indent options

14 years agoTry to help with a virtualized dummynet after r206428.
bz [Sat, 10 Apr 2010 22:11:01 +0000 (22:11 +0000)]
Try to help with a virtualized dummynet after r206428.

This adds the explicit include (so far probably included through one of the
few "hidden" includes in other header files) for vnet.h and adds a cast
to unbreak LINT-VIMAGE.

14 years agoThe lock move in rxeof necessitated a couple
jfv [Sat, 10 Apr 2010 19:25:55 +0000 (19:25 +0000)]
The lock move in rxeof necessitated a couple
more places to do the locking, fixes a panic.

14 years agoHandle a case when non-canonical address is loaded into the fsbase or
kib [Sat, 10 Apr 2010 18:38:11 +0000 (18:38 +0000)]
Handle a case when non-canonical address is loaded into the fsbase or
gsbase MSR.

MFC after: 3 days

14 years agoAdd WPA-None support:
bschmidt [Sat, 10 Apr 2010 13:54:00 +0000 (13:54 +0000)]
Add WPA-None support:
* WPA-None requires ap_scan=2:
  The major difference between ap_scan=1 (default) and 2 is, that no
  IEEE80211_IOC_SCAN* ioctls/functions are called, though, there is a
  dependency on those. For example the call to wpa_driver_bsd_scan()
  sets the interface UP, this never happens, therefore the interface
  must be marked up in wpa_driver_bsd_associate(). IEEE80211_IOC_SSID
  also is not called, which means that the SSID has not been set prior
  to the IEEE80211_MLME_ASSOC call.
* WPA-None has no support for sequence number updates, it doesn't make
  sense to check for replay violations..
* I had some crashes right after the switch to RUN state, issue is
  that sc->sc_lastrs was not yet defined.

Approved by: rpaulo (mentor)
MFC after: 3 weeks

14 years agoHonor the CE bit even when the CWR bit is set.
rpaulo [Sat, 10 Apr 2010 12:47:06 +0000 (12:47 +0000)]
Honor the CE bit even when the CWR bit is set.

PR: 145600
Submitted by: Richard Scheffenegger <rs at netapp.com>
MFC after: 1 week

14 years agoAdd a comment to MAINTAINERS indicating that sbin/routed is in fact
bms [Sat, 10 Apr 2010 12:29:09 +0000 (12:29 +0000)]
Add a comment to MAINTAINERS indicating that sbin/routed is in fact
vendor branch code from before contrib existed in FreeBSD's history.

Changes should be run by Vernon Schryver at Rhyolite first.

14 years agoWhen embedding the scope ID in MLDv1 output, check if the scope of the address
bms [Sat, 10 Apr 2010 12:24:21 +0000 (12:24 +0000)]
When embedding the scope ID in MLDv1 output, check if the scope of the address
being embedded is in fact link-local, before attempting to embed it.

Note that this operation is a side-effect of trying to avoid recursion on
the IN6 scope lock.

PR: 144560
Submitted by: Petr Lampa
MFC after: 3 days

14 years agoAdd missing copyright shebang.
marius [Sat, 10 Apr 2010 12:10:11 +0000 (12:10 +0000)]
Add missing copyright shebang.

14 years agoFix a few issues related to the legacy 4.4 BSD multicast APIs.
bms [Sat, 10 Apr 2010 12:05:31 +0000 (12:05 +0000)]
Fix a few issues related to the legacy 4.4 BSD multicast APIs.

IPv4 addresses can and do change during normal operation. Testing by
pfSense developers exposed an issue where OpenOSPFD was using the IPv4
address to leave the OSPF link-scope multicast groups on a dynamic
OpenVPN tun interface, rather than using RFC 3678 with the interface
index, which won't be raced when the interface's addresses change.

In inp_join_group():
 If we are already a member of an ASM group, and IP_ADD_MEMBERSHIP or
 MCAST_JOIN_GROUP ioctls are re-issued, return EADDRINUSE as per the
 legacy 4.4BSD multicast API. This bends RFC 3678 slightly, but does
 not violate POLA for apps using the old API.
 It also stops us falling through to kicking IGMP state transactions
 in what is otherwise a no-op case.
 [This has already been dealt with in HEAD, but make it explicit before
  we MFC the change to 8.]

In inp_leave_group():
 Fix a bogus conditional.
 Move the ifp null check to ioctls MCAST_LEAVE* in the switch..case
 where it actually belongs.
 If an interface was specified, by primary IPv4 address, for ioctl
 IP_DROP_MEMBERSHIP or MCAST_LEAVE_GROUP (an ASM full leave operation),
 then and only then should we look up the ifp from the IPv4 address in
 mreqs.imr_interface.
 If not, we fall through to imo_match_group() as before, but only in
 the IP_DROP_MEMBERSHIP case.

With these changes, the legacy 4.4BSD multicast API idempotence should
be mostly preserved in the SSM enabled IPv4 stack.

Found by: ermal (with pfSense)
MFC after: 3 days

14 years agoAdd sbbc(4), a driver for the BootBus controller found in Serengeti and
marius [Sat, 10 Apr 2010 11:52:12 +0000 (11:52 +0000)]
Add sbbc(4), a driver for the BootBus controller found in Serengeti and
StarCat systems which provides time-of-day services for both as well as
console service for Serengeti, i.e. Sun Fire V1280. While the latter is
described with a device type of serial in the OFW device tree, it isn't
actually an UART. Nevertheless the console service is handled by uart(4)
as this allowed to re-use quite a bit of MD and MI code. Actually, this
idea is stolen from Linux which interfaces the sun4v hypervisor console
with the Linux counterpart of uart(4).

14 years agoCorrect the DCR_IPE macro to refer to the right bit. Also improve the
marius [Sat, 10 Apr 2010 11:13:51 +0000 (11:13 +0000)]
Correct the DCR_IPE macro to refer to the right bit. Also improve the
associated comment as besides US-IV+ these bits are only available with
US-III++, i.e. the 1.2GHz version of the US-III+.

14 years agoUnlike the sun4v variant, the sun4u version of SUNW,set-trap-table
marius [Sat, 10 Apr 2010 10:56:59 +0000 (10:56 +0000)]
Unlike the sun4v variant, the sun4u version of SUNW,set-trap-table
actually only takes one argument.

14 years agoDo as the comment suggests and determine the bus space based on the last
marius [Sat, 10 Apr 2010 10:44:41 +0000 (10:44 +0000)]
Do as the comment suggests and determine the bus space based on the last
bus we actually mapped at rather than always based on the last bus we
encountered while moving upward in the tree. Otherwise we might use the
wrong bus space in case the bridge directly underneath the nexus doesn't
require mapping, i.e. was skipped as it's the case for ssm(4) nodes.

14 years agoCorrect broken build.
jfv [Sat, 10 Apr 2010 07:26:51 +0000 (07:26 +0000)]
Correct broken build.

14 years agoUpdate firmware for the 6000 series Intel cards to version 9.193.4.1.
bschmidt [Sat, 10 Apr 2010 07:07:08 +0000 (07:07 +0000)]
Update firmware for the 6000 series Intel cards to version 9.193.4.1.

Approved by: rpaulo (mentor)
MFC after: 2 weeks

14 years agoiwn4965_set_txpower() uses maxpwr from EEPROM to calculate the power to
bschmidt [Sat, 10 Apr 2010 07:00:26 +0000 (07:00 +0000)]
iwn4965_set_txpower() uses maxpwr from EEPROM to calculate the power to
set, it make sense to actually initialize that array.  This fixes some
issues with 4965 adapters where the TX power is crucial.

This got lost somewhere while merging with the OpenBSD code.

Approved by: rpaulo (mentor)
Obtained from: OpenBSD
MFC after: 2 weeks

14 years ago* Rename bluetooth coexistence flags, no binary change.
bschmidt [Sat, 10 Apr 2010 06:58:24 +0000 (06:58 +0000)]
* Rename bluetooth coexistence flags, no binary change.
* Enable DC calibration and crystal calibration on Centrino Advanced-N
  6250 parts.
* Workaround for a HW bug (does not affect 4965AGN) that may sporadically
  affect latency under some rare circumstances. From a similar commit to
  iwlwifi.
* Update sensitivity settings for 5000 series to workaround a performance
  bug in the DSP (1000 is not affected so we keep the old values for 5000).
* Update sensitivity settings for 6000 series.
* Set differential gains on 6250 too (but use a 1.0 factor, not 1.5).
* Init OFDM sensitivity with min value (which depends on the chip)
  instead of hardcoding it to 90.
* Read calibration version from ROM and set IWN_GP_DRIVER_CALIB_VER6
  bit on 6x50 if version >= 6.

Approved by: rpaulo (mentor)
Obtained from: OpenBSD
MFC after: 2 weeks

14 years agoSmall whitespace cleanup.
bschmidt [Sat, 10 Apr 2010 06:55:29 +0000 (06:55 +0000)]
Small whitespace cleanup.

Approved by: rpaulo (mentor)
MFC after: 2 weeks

14 years agoA few more changes from yongari:
jfv [Fri, 9 Apr 2010 23:15:37 +0000 (23:15 +0000)]
A few more changes from yongari:
- code flow in handler could let interrupt be
  reenabled when not wanted.
- change where the RX lock is taken to improve
  performance.
- adapter->msix is true for MSI systems also,
  it needs to explicitly test for 82574, good one :)

14 years agoConsistently use capital letters.
yongari [Fri, 9 Apr 2010 23:00:24 +0000 (23:00 +0000)]
Consistently use capital letters.

14 years agoAdd preliminary support for 8168E/8111E PCIe controller.
yongari [Fri, 9 Apr 2010 22:50:28 +0000 (22:50 +0000)]
Add preliminary support for 8168E/8111E PCIe controller.
While I'm here simplify device description string.

Tested by: Michael Beckmann < michael <> apfel dot de >
MFC after: 5 days

14 years agoDUH, must be tired, I missed the second instance...
jfv [Fri, 9 Apr 2010 21:18:46 +0000 (21:18 +0000)]
DUH, must be tired, I missed the second instance...
time for the weekend :)

14 years agoThanks to Michael Tuexen for catching this, bit set that
jfv [Fri, 9 Apr 2010 21:16:45 +0000 (21:16 +0000)]
Thanks to Michael Tuexen for catching this, bit set that
keeps the clock from being reset when writing to EITR was
incorrect, also there is a shared code #define for it anyway.

14 years agoIncorporate suggested improvements from yongari.
jfv [Fri, 9 Apr 2010 18:42:15 +0000 (18:42 +0000)]
Incorporate suggested improvements from yongari.

Also, from feedback, make the multiqueue code an
option (EM_MULTIQUEUE) that is off by default.
Problems have been seen with UDP when its on.

14 years agoThis commit enables partial operation of dummynet with kernels
luigi [Fri, 9 Apr 2010 18:02:19 +0000 (18:02 +0000)]
This commit enables partial operation of dummynet with kernels
compiled with "options VIMAGE".
As it is now, there is still a single instance of the pipes,
and it is only usable from vnet0 (the main instance).
Trying to use a pipe from a different vimage does not crash
the system as it did before, but the traffic coming out from
the pipe goes to the wrong place, and i still need to
figure out where.

Support for per-vimage pipes is almost there (just a matter of
uncommenting the VNET_* definitions for dn_cfg, plus putting into
the structure the remaining static variables), however i need
first to figure out how init/uninit work, and also to understand
where packets are ending up on exit from a pipe.

In summary: vimage support for dummynet is not complete yet,
but we are getting there.

14 years agoAdd rc.d/ubthidhci. This small script calls usbconfig(1) to change a USB
rpaulo [Fri, 9 Apr 2010 17:32:38 +0000 (17:32 +0000)]
Add rc.d/ubthidhci. This small script calls usbconfig(1) to change a USB
Bluetooth controller from HID mode to HCI mode.

MFC after: 1 week

14 years agoBuilding wlan_amrr is now mandatory. This is an interim fix.
rpaulo [Fri, 9 Apr 2010 16:19:30 +0000 (16:19 +0000)]
Building wlan_amrr is now mandatory. This is an interim fix.

14 years agono need to pass an argument to dn_compat_calc_size()
luigi [Fri, 9 Apr 2010 16:06:53 +0000 (16:06 +0000)]
no need to pass an argument to dn_compat_calc_size()

MFC after: 3 days

14 years agoRename the ALIGN macro to LINT_ALIGN so it does not clash with machine/param.h
rdivacky [Fri, 9 Apr 2010 15:21:11 +0000 (15:21 +0000)]
Rename the ALIGN macro to LINT_ALIGN so it does not clash with machine/param.h

Bump the alignment to 16bytes because lint1 memory allocator is used for
objects that require 16bytes alignment on amd64 (ie. val_t). This makes
lint1 work when compiled with compiler(s) that use SSE for memcpy on amd64.
(e.g. clang).

Approved by: ed (mentor)

14 years agoShift the version of perl used by the release build process over to
kensmith [Fri, 9 Apr 2010 14:27:17 +0000 (14:27 +0000)]
Shift the version of perl used by the release build process over to
perl-5.10.  This aligns the release build process with the current
default version of perl in the ports tree.

I'll MFC this to all active branches.

MFC after: 3 days

14 years agoPass the HTTP_PROXY and FTP_PROXY environment variables through in addition
kensmith [Fri, 9 Apr 2010 14:24:00 +0000 (14:24 +0000)]
Pass the HTTP_PROXY and FTP_PROXY environment variables through in addition
to FTP_PASSIVE_MODE so release building works for a machine that needs
to use a proxy.

PR: misc/137688
Submitted by: Michael Leun
MFC after: 2 weeks

14 years agoDefault the machdep.lapic_allclocks to be enabled in order to cope with
attilio [Fri, 9 Apr 2010 14:22:09 +0000 (14:22 +0000)]
Default the machdep.lapic_allclocks to be enabled in order to cope with
broken atrtc.
Now if you want more correct stats on profhz and stathz it may be
disabled by setting to 0.

Reported by: A. Akephalos <akephalos dot akephalos at gmail dot com>,
Jakub Lach <jakub_lach at mailplus dot pl>
MFC: 1 week

14 years agoSetup the correct RX/TX chainmask when we play with the antenna
rpaulo [Fri, 9 Apr 2010 13:58:54 +0000 (13:58 +0000)]
Setup the correct RX/TX chainmask when we play with the antenna
settings.

MFC after: 1 week
Sponsored by: iXsystems, inc

14 years agoUse M_NOWAIT instead of M_WAITOK to avoid race conditions.
rpaulo [Fri, 9 Apr 2010 12:06:19 +0000 (12:06 +0000)]
Use M_NOWAIT instead of M_WAITOK to avoid race conditions.

MFC after: 1 month

14 years agoAdd ieee80211_{amrr,rssadapt}.c.
rpaulo [Fri, 9 Apr 2010 12:05:24 +0000 (12:05 +0000)]
Add ieee80211_{amrr,rssadapt}.c.

MFC after: 1 month

14 years agoRemove previously added if 0's.
rpaulo [Fri, 9 Apr 2010 11:56:38 +0000 (11:56 +0000)]
Remove previously added if 0's.

MFC after: 1 month

14 years agoFix recent breakage: wpi_newassoc() wasn't supposed to be removed and
rpaulo [Fri, 9 Apr 2010 11:47:03 +0000 (11:47 +0000)]
Fix recent breakage: wpi_newassoc() wasn't supposed to be removed and
it needs to call ieee80211_ratectl_node_init().

Submitted by: bschmidt
MFC after: 1 month

14 years agoSwap IEEE80211_RATECTL_TX_SUCCESS/IEEE80211_RATECTL_TX_FAILURE.
rpaulo [Fri, 9 Apr 2010 11:29:16 +0000 (11:29 +0000)]
Swap IEEE80211_RATECTL_TX_SUCCESS/IEEE80211_RATECTL_TX_FAILURE.

Submitted by: PseudoCylon Furukoshi <moonlightakkiy at yahoo.ca>
MFC after: 1 month

14 years agoIntroduce the function kmem_alloc_attr(), which allocates kernel virtual
alc [Fri, 9 Apr 2010 02:39:20 +0000 (02:39 +0000)]
Introduce the function kmem_alloc_attr(), which allocates kernel virtual
memory with the specified physical attributes.  In particular, like
kmem_alloc_contig(), the caller can specify the physical address range
from which the physical pages are allocated and the memory attributes
(i.e., cache behavior) for these physical pages.  However, in contrast to
kmem_alloc_contig() or contigmalloc(), the physical pages that are
allocated by kmem_alloc_attr() are not necessarily physically contiguous.
This function is needed by DRM and VirtualBox.

Correct an error in the prototype for kmem_malloc().  The third argument
had the wrong type.

Tested by: rnoland
MFC after: 3 days

14 years agoImprove the handling of IPv6 configuration in rc.d. The ipv6_enable
dougb [Fri, 9 Apr 2010 01:35:09 +0000 (01:35 +0000)]
Improve the handling of IPv6 configuration in rc.d. The ipv6_enable
and ipv6_ifconfig_<interface> options have already been deprecated,
these changes do not alter that.

With these changes any value set for ipv6_enable will emit a
warning. In order to avoid a POLA violation for the deprecation
of the option ipv6_enable=NO will still disable configuration
for all interfaces other than lo0. ipv6_enable=YES will not have
any effect, but will emit an additional warning. Support and
warnings for this option will be removed in FreeBSD 10.x.

Consistent with the current code, in order for IPv6 to be configured
on an interface (other than lo0) an ifconfig_<interface>_ipv6
option will have to be added to /etc/rc.conf[.local].

1. Clean up and minor optimizations for the following functions:
ifconfig_up (the ipv6 elements)
ipv6if
ipv6_autoconfif
get_if_var
_ifconfig_getargs
The cleanups generally were to move the "easy" tests earlier in the
functions, and consolidate duplicate code.

2. Stop overloading ipv6_prefer with the ability to disable IPv6
configuration.

3. Remove noafif() which was only ever called from ipv6_autoconfif.
Instead, simplify and integrate the tests into that function, and
convert the test to use is_wired_interface() instead of listing
wireless interfaces explicitly.

4. Integrate backwards compatibility for ipv6_ifconfig_<interface>
into _ifconfig_getargs. This dramatically simplifies the code in
all of the callers, and avoids a lot of other code duplication.

5. In rc.d/netoptions, add code for an ipv6_privacy option to use
RFC 4193 style pseudo-random addresses (this is what windows does
by default, FYI).

6. Add support for the [NO]RTADV options in ifconfig_getargs() and
ipv6_autoconfif(). In the latter, include support for the explicit
addition of [-]accept_rtadv in ifconfig_<interface>_ipv6 as is done
in the current code.

7. In rc.d/netif add a warning if $ipv6_enable is set, and remove
the set_rcvar_obsolete for it. Also remove the latter from
rc.d/ip6addrctl.

8. In /etc/defaults/rc.conf:

Add an example for RTADV configuration.

Set ipv6_network_interfaces to AUTO.

Switch ipv6_prefer to YES. If ipv6_enable is not set this will have
no effect.

Add a default for ipv6_privacy (NO).

9. Document all of this in rc.conf.5.

14 years agoFix a bug where bus_dma_load_xxx() would not bounce misaligned buffers
nwhitehorn [Fri, 9 Apr 2010 01:14:11 +0000 (01:14 +0000)]
Fix a bug where bus_dma_load_xxx() would not bounce misaligned buffers
due to rounding the buffer's physical address to the beginning of its
page. This fixes a panic in arge(4) when using PPPoE.

Reported by: Jakob van Santen <vansanten at wisc dot edu>
Reviewed by: gonzo
Obtained from: amd64

14 years agoAdd BUS_SPACE_UNRESTRICTED and define it to be ~0, just like all the
imp [Thu, 8 Apr 2010 19:34:55 +0000 (19:34 +0000)]
Add BUS_SPACE_UNRESTRICTED and define it to be ~0, just like all the
other platforms.

14 years agoThree changes:
jfv [Thu, 8 Apr 2010 19:13:42 +0000 (19:13 +0000)]
Three changes:
- add CRC stripping to the RX side, this was handled
  by some obscure code in rxeof previously, its easier
  to simply have the hardware strip it now.
- Add back an ALTQ change that slipped between the cracks
- Add an update to the watchdog_time in the xmit code, not
  doing this in ixgbe caused problems, think its needed here
  as well.

14 years ago- Fix mutex type for miibus_mtx: it's not spinlock, it's def lock
gonzo [Thu, 8 Apr 2010 18:32:13 +0000 (18:32 +0000)]
- Fix mutex type for miibus_mtx: it's not spinlock, it's def lock

14 years agoDisambiguate `IPs' to a more specific term.
ume [Thu, 8 Apr 2010 15:19:57 +0000 (15:19 +0000)]
Disambiguate `IPs' to a more specific term.

Submitted by: Garrett Cooper <yanefbsd__at__gmail.com>
MFC after: 3 days

14 years agoPrevent foot-shooting in ieee80211_ratectl_node_deinit().
rpaulo [Thu, 8 Apr 2010 13:34:08 +0000 (13:34 +0000)]
Prevent foot-shooting in ieee80211_ratectl_node_deinit().

MFC after: 1 month

14 years agoEnhance r199804 by marking the daemonised child as immune to OOM instead
kib [Thu, 8 Apr 2010 12:07:40 +0000 (12:07 +0000)]
Enhance r199804 by marking the daemonised child as immune to OOM instead
of short-living parent. Only mark the master process that accepts
connections, do not protect connection handlers spawned from inetd.

Submitted by: Mykola Dzham <i levsha me>
Reviewed by: attilio
MFC after: 1 week

14 years agoPeople working on sysinstall are encouraged to contact randi to
cperciva [Thu, 8 Apr 2010 09:01:20 +0000 (09:01 +0000)]
People working on sysinstall are encouraged to contact randi to
coordinate major changes.

14 years agoDo not leak master pty or ptmx vnode.
kib [Thu, 8 Apr 2010 08:58:18 +0000 (08:58 +0000)]
Do not leak master pty or ptmx vnode.

Report and test case by: Petr Salinger <Petr.Salinger seznam cz>
Reviewed by: ed
MFC after: 1 week

14 years agoImportant fix got clobbered in the em driver, keeping
jfv [Thu, 8 Apr 2010 00:50:43 +0000 (00:50 +0000)]
Important fix got clobbered in the em driver, keeping
VLAN HWFILTER from being used by default, this breaks
stacked pseudo devices, and as it turns out, also breaks
virtual machines that happen to use VLANS (didn't know that
before :). Put the fix back into the em driver, and for good
measure add the same code to the igb driver where it should
have been anyway.

14 years agoDiff reduction against NetBSD and add myself to AUTHORS section of the
delphij [Wed, 7 Apr 2010 22:54:53 +0000 (22:54 +0000)]
Diff reduction against NetBSD and add myself to AUTHORS section of the
manual page as I wrote the unpack functionality.  No actual executable
code change verified with md5(1).

14 years agoAllocate memory for VBE info block with malloc(9), not as static local.
jkim [Wed, 7 Apr 2010 21:38:42 +0000 (21:38 +0000)]
Allocate memory for VBE info block with malloc(9), not as static local.

14 years agoRemove extraneous '>'.
emaste [Wed, 7 Apr 2010 19:13:31 +0000 (19:13 +0000)]
Remove extraneous '>'.