]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
15 years agoja_JP: AM/PM date format should be localized.
edwin [Tue, 9 Jun 2009 22:33:34 +0000 (22:33 +0000)]
ja_JP: AM/PM date format should be localized.

ja_JP.eucJP and ja_JP.SJIS fixes.

PR: conf/63527
Submitted by: Yukihiro Nakai <nakai@gnome.gr.jp>
MFC after: 1 week

15 years agoFix LC_NUMERIC and LC_MONETARY for de_CH locale
edwin [Tue, 9 Jun 2009 22:22:04 +0000 (22:22 +0000)]
Fix LC_NUMERIC and LC_MONETARY for de_CH locale

With the de_CH (swiss german) locale, numbers should look like this:

    numbers: 1'234.45
    monetary values: Fr. 1'234.45

Previously, the thousands separator was missing for numbers, and
"." for monetary values, and "," was incorrectly used as decimal
point.

PR: conf/75502
Submitted by: Benjamin Lutz <benlutz@datacomm.ch>
MFC after: 1 week

15 years agoFix some overflow errors: a signed allocation and an insufficiant
jamie [Tue, 9 Jun 2009 22:09:29 +0000 (22:09 +0000)]
Fix some overflow errors: a signed allocation and an insufficiant
array size.

Reported by: pho
Tested by: pho
Approved by: bz (mentor)

15 years agoopt in to flowtable on i386/amd64
kmacy [Tue, 9 Jun 2009 21:58:14 +0000 (21:58 +0000)]
opt in to flowtable on i386/amd64

15 years agorevert to opt-in flowtable
kmacy [Tue, 9 Jun 2009 21:55:28 +0000 (21:55 +0000)]
revert to opt-in flowtable

15 years agoAdd opt_inet.h back lost with r190872.
bz [Tue, 9 Jun 2009 21:43:04 +0000 (21:43 +0000)]
Add opt_inet.h back lost with r190872.
This will bring back improved IPv4 SIOCSIFADDR ioctl handling
not re-initializing the interface if avoidable.

15 years agoSync struct ng_ipfw_tag description with sources.
oleg [Tue, 9 Jun 2009 21:35:32 +0000 (21:35 +0000)]
Sync struct ng_ipfw_tag description with sources.

Submitted by: Mikolaj Golub

15 years agoadd explanatory header license
kmacy [Tue, 9 Jun 2009 21:29:16 +0000 (21:29 +0000)]
add explanatory header license

15 years agoClose long existed race with net.inet.ip.fw.one_pass = 0:
oleg [Tue, 9 Jun 2009 21:27:11 +0000 (21:27 +0000)]
Close long existed race with net.inet.ip.fw.one_pass = 0:
If packet leaves ipfw to other kernel subsystem (dummynet, netgraph, etc)
it carries pointer to matching ipfw rule. If this packet then reinjected back
to ipfw, ruleset processing starts from that rule. If rule was deleted
meanwhile, due to existed race condition panic was possible (as well as
other odd effects like parsing rules in 'reap list').

P.S. this commit changes ABI so userland ipfw related binaries should be
recompiled.

MFC after: 1 month
Tested by: Mikolaj Golub

15 years agomake flowtable opt-out
kmacy [Tue, 9 Jun 2009 20:27:30 +0000 (20:27 +0000)]
make flowtable opt-out

15 years agoremove flowtable from DEFAULTS
kmacy [Tue, 9 Jun 2009 20:26:52 +0000 (20:26 +0000)]
remove flowtable from DEFAULTS

15 years agomove jenkins hash to its own header in libkern
kmacy [Tue, 9 Jun 2009 20:21:40 +0000 (20:21 +0000)]
move jenkins hash to its own header in libkern

15 years ago1. Update the message that prints out for -U when the mtree database does
dougb [Tue, 9 Jun 2009 20:20:08 +0000 (20:20 +0000)]
1. Update the message that prints out for -U when the mtree database does
not exist to let the user know that it will be created for the next run.

2. Delete more stuff we're not going to use from the temproot prior to
creating the mtree database to dramatically reduce its size (162K -> 37K).

3. We've been deleting the zero-size files from temproot for a long time
now, so remove the spurious "-size +0" from the find command in the
comparison loop, and remove what is now a really stale comment.

15 years agoAdd part of NFSv4 ACL kernel support code that is required for the upcoming
trasz [Tue, 9 Jun 2009 19:51:22 +0000 (19:51 +0000)]
Add part of NFSv4 ACL kernel support code that is required for the upcoming
libc changes to work.  Not connected to the kernel build yet; for now,
it will be compiled into libc.

Reviewed by: rwatson

15 years ago- add drbr routines for accessing #qentries and conditionally dequeueing
kmacy [Tue, 9 Jun 2009 19:19:16 +0000 (19:19 +0000)]
- add drbr routines for accessing #qentries and conditionally dequeueing
- track bytes enqueued in buf_ring

15 years agoPass the previously returned IRQ back to arm_get_next_irq() so that
marcel [Tue, 9 Jun 2009 18:18:41 +0000 (18:18 +0000)]
Pass the previously returned IRQ back to arm_get_next_irq() so that
the implementation can guarantee forward progress in the event of
a stuck interrupt or interrupt storm. This is especially critical
for fast interrupt handlers, as they can cause a hard hang in that
case. When first called, arm_get_next_irq() is passed -1.

Obtained from: Juniper Networks, Inc.

15 years agoDisable interrupts to allow booting on firmware (e.g. U-Boot) that
marcel [Tue, 9 Jun 2009 17:21:47 +0000 (17:21 +0000)]
Disable interrupts to allow booting on firmware (e.g. U-Boot) that
has interrupts enabled and active.

Obtained from: Juniper Networks, Inc.

15 years agoEliminate an instance of VM_PROT_READ_IS_EXEC that I overlooked in r190705.
alc [Tue, 9 Jun 2009 17:18:41 +0000 (17:18 +0000)]
Eliminate an instance of VM_PROT_READ_IS_EXEC that I overlooked in r190705.

15 years agoprotect callouts with the com lock
sam [Tue, 9 Jun 2009 17:12:19 +0000 (17:12 +0000)]
protect callouts with the com lock

Prodded by: jhb

15 years agoadd missing calls to ieee80211_dfs_attach/detach
sam [Tue, 9 Jun 2009 17:11:41 +0000 (17:11 +0000)]
add missing calls to ieee80211_dfs_attach/detach

15 years agoEliminate an unnecessary restriction on the vm object type from
alc [Tue, 9 Jun 2009 17:04:39 +0000 (17:04 +0000)]
Eliminate an unnecessary restriction on the vm object type from
vm_map_pmap_enter().  The immediate effect of this change is that automatic
prefaulting by mmap() for small mappings is performed on POSIX shared memory
objects just the same as it is on ordinary files.

15 years agoCorrect ieee80211_gettid:
sam [Tue, 9 Jun 2009 16:32:07 +0000 (16:32 +0000)]
Correct ieee80211_gettid:
o don't increment extracted tid, this was a vestige of IEEE80211_NONQOS_TID
  being defined as 0 (w/ real tid's +1)
o handle 4-address frames (add IEEE80211_IS_DSTODS to check if an 802.11
  header is DSTODS)

Submitted by: cbzimmer
Reviewed by: avatar

15 years agoSince vn_lock() with the LK_RETRY flag never returns an error
rmacklem [Tue, 9 Jun 2009 15:18:01 +0000 (15:18 +0000)]
Since vn_lock() with the LK_RETRY flag never returns an error
for FreeBSD-CURRENT, the code that checked for and returned the
error was broken. Change it to check for VI_DOOMED set after
vn_lock() and return an error for that case. I believe this
should only happen for forced dismounts.

Approved by: kib (mentor)

15 years agoAdd support for multiple passes of the device tree during the boot-time
jhb [Tue, 9 Jun 2009 14:26:23 +0000 (14:26 +0000)]
Add support for multiple passes of the device tree during the boot-time
probe.  The current device order is unchanged.  This commit just adds the
infrastructure and ABI changes so that it is easier to merge later changes
into 8.x.
- Driver attachments now have an associated pass level.  Attachments are
  not allowed to probe or attach to drivers until the system-wide pass level
  is >= the attachment's pass level.  By default driver attachments use the
  "last" pass level (BUS_PASS_DEFAULT).  Driver's that wish to probe during
  an earlier pass use EARLY_DRIVER_MODULE() instead of DRIVER_MODULE() which
  accepts the pass level as an additional parameter.
- A new method BUS_NEW_PASS has been added to the bus interface.  This
  method is invoked when the system-wide pass level is changed to kick off
  a rescan of the device tree so that drivers that have just been made
  "eligible" can probe and attach.
- The bus_generic_new_pass() function provides a default implementation of
  BUS_NEW_PASS().  It first allows drivers that were just made eligible for
  this pass to identify new child devices.  Then it propogates the rescan to
  child devices that already have an attached driver by invoking their
  BUS_NEW_PASS() method.  It also reprobes devices without a driver.
- BUS_PROBE_NOMATCH() is only invoked for devices that do not have
  an attached driver after being scanned during the final pass.
- The bus_set_pass() function is used during boot to raise the pass level.
  Currently it is only called once during root_bus_configure() to raise
  the pass level to BUS_PASS_DEFAULT.  This has the effect of probing all
  devices in a single pass identical to previous behavior.

Reviewed by: imp
Approved by: re (kib)

15 years agoRework the _BBN handling for Host-PCI bridges. Previously we only trusted
jhb [Tue, 9 Jun 2009 13:44:17 +0000 (13:44 +0000)]
Rework the _BBN handling for Host-PCI bridges.  Previously we only trusted
a _BBN value of 0 if it was for the first bridge encountered since some
older systems returned _BBN of 0 for all bridges.  However, some newer
systems enumerate bridges with non-zero _BBN before bus 0 which is
perfectly valid.  Handle both cases by trusting the first bridge that has
a _BBN of 0 and falling back to reading from non-standard config registers
only for subsequent bridges with a _BBN of 0.  We also only perform this
check for segment (domain) 0.  We assume that _BBN is always correct
for segments other than 0.

Tested by: Josef Moellers  josef.moellers at fujitsu
MFC after: 1 week

15 years ago- Remove an unnecessary memory barrier from an atomic op.
jhb [Tue, 9 Jun 2009 13:33:03 +0000 (13:33 +0000)]
- Remove an unnecessary memory barrier from an atomic op.
- Use the per-softc mutex to protect the softc data in the callout routine
  rather than letting it run without any locks whatsoever.

15 years agoRevert r181651, which changed the ABI, and use a temp variable instead.
des [Tue, 9 Jun 2009 12:32:10 +0000 (12:32 +0000)]
Revert r181651, which changed the ABI, and use a temp variable instead.

Suggested by: attilio

15 years agoFor now only compile flowtable.c if both options FLOWTABLE and INET
bz [Tue, 9 Jun 2009 11:31:47 +0000 (11:31 +0000)]
For now only compile flowtable.c if both options FLOWTABLE and INET
are given.  This will also work when we add IPv6 support as for now
INET6 depends on INET.

15 years agoEach generated file should depend its own generator as well.
ariff [Tue, 9 Jun 2009 10:17:22 +0000 (10:17 +0000)]
Each generated file should depend its own generator as well.

15 years agoRemove one INET dependency by calling the general
bz [Tue, 9 Jun 2009 09:50:43 +0000 (09:50 +0000)]
Remove one INET dependency by calling the general
AF agnostic version for doing the routing lookup.

Reviewed by: kmacy

15 years agoUnbreak the build for amd64 after r193814 using correct variable names.
bz [Tue, 9 Jun 2009 09:47:02 +0000 (09:47 +0000)]
Unbreak the build for amd64 after r193814 using correct variable names.

15 years agoDepend on @ machine (_ILINKS) as we do with other modules so that @
bz [Tue, 9 Jun 2009 09:03:13 +0000 (09:03 +0000)]
Depend on @ machine (_ILINKS) as we do with other modules so that @
is there for parallel (-jN) builds.  Ideally beforedepends in kmod.mk
should do the right thing but it seems it does not.

15 years agoSpacing fixes. No actual change.
delphij [Tue, 9 Jun 2009 09:02:58 +0000 (09:02 +0000)]
Spacing fixes.  No actual change.

15 years agoStyle fix.
hrs [Tue, 9 Jun 2009 08:09:30 +0000 (08:09 +0000)]
Style fix.

Submitted by: bz

15 years agoWhen using i8254 as the only kernel timer source:
ariff [Tue, 9 Jun 2009 07:26:52 +0000 (07:26 +0000)]
When using i8254 as the only kernel timer source:

- Interpolate stat/prof clock using clkintr() in a similar fashion to
  local APIC timer, since statclock usually run slower.

- Liberate hardclockintr() from taking the burden of handling both stat
  and prof clock interrupt. Instead, send IPIs within clkintr() to handle
  those.

15 years agoUse new spelling of the NG_*LEN constants.
imp [Tue, 9 Jun 2009 07:14:32 +0000 (07:14 +0000)]
Use new spelling of the NG_*LEN constants.

15 years agoWorld now builds without these defines, so eliminate them.
imp [Tue, 9 Jun 2009 07:07:20 +0000 (07:07 +0000)]
World now builds without these defines, so eliminate them.

Approved by: julian@

15 years agoDocument the fact that some Core2 family CPUs lack fixed-function counters.
jkoshy [Tue, 9 Jun 2009 06:36:29 +0000 (06:36 +0000)]
Document the fact that some Core2 family CPUs lack fixed-function counters.

15 years agoFix parsing of Core2 event qualifiers.
jkoshy [Tue, 9 Jun 2009 06:34:48 +0000 (06:34 +0000)]
Fix parsing of Core2 event qualifiers.

Submitted by: Nikola K <laladelausanne at gmail dot com>

15 years agoGet the other NG_PATHLEN while I'm here too :(.
imp [Tue, 9 Jun 2009 05:24:06 +0000 (05:24 +0000)]
Get the other NG_PATHLEN while I'm here too :(.

15 years agoUse NG_PATHSIZ instead of NG_PATHLEN + 1.
imp [Tue, 9 Jun 2009 05:18:14 +0000 (05:18 +0000)]
Use NG_PATHSIZ instead of NG_PATHLEN + 1.

15 years agoMove C1E workaround into its own idle function. Previous workaround works
ariff [Tue, 9 Jun 2009 04:17:36 +0000 (04:17 +0000)]
Move C1E workaround into its own idle function. Previous workaround works
only during initial booting process, while there are laptops/BIOSes that
tend to act 'smarter' by force enabling C1E if the main power adapter
being pulled out, rendering previous workaround ineffective. Given the
fact that we still rely on local APIC to drive timer interrupt, this
workaround should keep all Turion (probably Phenom too) X\d+ alive whether
its on battery power or not.

URL: http://lists.freebsd.org/pipermail/freebsd-acpi/2008-April/004858.html
     http://lists.freebsd.org/pipermail/freebsd-acpi/2008-May/004888.html

Tested by: Peter Jeremy <peterjeremy at optushome d com d au>

15 years agounify zyd_tx_mgt() and zyd_tx_data() to simplify TX path and sorts
weongyo [Tue, 9 Jun 2009 04:17:08 +0000 (04:17 +0000)]
unify zyd_tx_mgt() and zyd_tx_data() to simplify TX path and sorts
setting TX descritor.

While I'm here fixes a bug that the management frames only sent at 2
Mbits/s.

15 years agoFix bug in zphys offset calculation I introduced while retyping
bland [Tue, 9 Jun 2009 04:09:31 +0000 (04:09 +0000)]
Fix bug in zphys offset calculation I introduced while retyping
original patch.

15 years agoChase ZFS v13 import changes.
bland [Tue, 9 Jun 2009 03:35:42 +0000 (03:35 +0000)]
Chase ZFS v13 import changes.
This is a temporary fix until we find a way to avoid fstat
to be broken each time we change the znode.

Approved by: lulf

15 years ago- Fix sanity check of GIFSOPTS ioctl.
hrs [Tue, 9 Jun 2009 02:27:59 +0000 (02:27 +0000)]
- Fix sanity check of GIFSOPTS ioctl.
- Rename option mask s/GIF_FULLOPTS/GIF_OPTMASK/

Spotted by: Eygene Ryabinkin, delphij

15 years agoAdd line width calculations for 15/16 and 24/32 bit modes in case
delphij [Tue, 9 Jun 2009 00:54:57 +0000 (00:54 +0000)]
Add line width calculations for 15/16 and 24/32 bit modes in case
the "Get Scan Line Length" function fails, as it does in Parallels
(in Version 2.2, Build 2112 at least).

PR: i386/127367
Obtained from: DragonFly
Submitted by: Pedro Giffuni
MFC after: 1 month

15 years agoMFV of tzdata2009i:
edwin [Tue, 9 Jun 2009 00:09:36 +0000 (00:09 +0000)]
MFV of tzdata2009i:

Bangladesh will go into DST on 20 June.

MFC after: 2 days

15 years agoFix compile time warning on sparc64, thanks to strict kobj signatures checking.
ariff [Mon, 8 Jun 2009 23:24:01 +0000 (23:24 +0000)]
Fix compile time warning on sparc64, thanks to strict kobj signatures checking.

Noticed by: bz

15 years agoAdd self, list mentor in committers-src.dot
np [Mon, 8 Jun 2009 22:03:37 +0000 (22:03 +0000)]
Add self, list mentor in committers-src.dot

Approved by: gnn (mentor)

15 years agoUpdate vnet_net size guard information after r193731.
bz [Mon, 8 Jun 2009 22:02:30 +0000 (22:02 +0000)]
Update vnet_net size guard information after r193731.

15 years agoReflect debug level changes from the recent ACPICA import.
jkim [Mon, 8 Jun 2009 21:48:13 +0000 (21:48 +0000)]
Reflect debug level changes from the recent ACPICA import.

15 years agoFix an off by one error when we limit append/prepend text sizes based on our
brian [Mon, 8 Jun 2009 21:42:30 +0000 (21:42 +0000)]
Fix an off by one error when we limit append/prepend text sizes based on our
internal buffer sizes.

When we 'append', assume we're appending to text.  Some MS dhcp servers will
give us a string with the length including the trailing NUL.  when we 'append
domain-name', we get something like "search x.y\000 z" in resolv.conf :(

MFC after: 1 week
Security: A buffer overflow (by one NUL byte) was possible.

15 years agoSimply shared vnode locking and extend it to also include fsync.
ps [Mon, 8 Jun 2009 21:23:54 +0000 (21:23 +0000)]
Simply shared vnode locking and extend it to also include fsync.
Also, in vop_write, no longer assert for exclusive locks on the
vnode.

Reviewed by: jhb, kmacy, jeffr

15 years agopurge dead code
sam [Mon, 8 Jun 2009 21:16:06 +0000 (21:16 +0000)]
purge dead code

15 years agofix big-endian machines
sam [Mon, 8 Jun 2009 21:15:40 +0000 (21:15 +0000)]
fix big-endian machines

15 years agoAdd myself.
tuexen [Mon, 8 Jun 2009 21:14:21 +0000 (21:14 +0000)]
Add myself.

Approved by: rrs (mentor)

15 years agoRemove redundant checks for ACPI_WAIT_FOREVER cases.
jkim [Mon, 8 Jun 2009 20:50:38 +0000 (20:50 +0000)]
Remove redundant checks for ACPI_WAIT_FOREVER cases.

15 years agoUse proper types in kbdmux_kbd_getc():
ed [Mon, 8 Jun 2009 20:24:29 +0000 (20:24 +0000)]
Use proper types in kbdmux_kbd_getc():

- The return value should be a signed integer, because -1 means failure.
- The c variable should be unsigned, to force it to be zero-extended
  when returned.

Reported by: Andreas Tobler <andreast-list fgznet ch>

15 years agoRewrite OsdSynch.c to reflect the latest ACPICA more closely:
jkim [Mon, 8 Jun 2009 20:07:16 +0000 (20:07 +0000)]
Rewrite OsdSynch.c to reflect the latest ACPICA more closely:

- Implement ACPI semaphore (ACPI_SEMAPHORE) with condvar(9) and mutex(9).
- Implement ACPI mutex (ACPI_MUTEX) with mutex(9).
- Implement ACPI lock (ACPI_SPINLOCK) with spin mutex(9).

15 years agoRemove two unneeded, hidden includes.
bz [Mon, 8 Jun 2009 20:04:46 +0000 (20:04 +0000)]
Remove two unneeded, hidden includes.

15 years agoAfter r193232 rt_tables in vnet.h are no longer indirectly dependent on
bz [Mon, 8 Jun 2009 19:57:35 +0000 (19:57 +0000)]
After r193232 rt_tables in vnet.h are no longer indirectly dependent on
the ROUTETABLES kernel option thus there is no need to include opt_route.h
anymore in all consumers of vnet.h and no longer depend on it for module
builds.

Remove the hidden include in flowtable.h as well and leave the two
explicit #includes in ip_input.c and ip_output.c.

15 years agoCommit missed driver_info to driver_ivar change in usb_attach_args.
thompsa [Mon, 8 Jun 2009 19:56:23 +0000 (19:56 +0000)]
Commit missed driver_info to driver_ivar change in usb_attach_args.

Pointed out by: kib

15 years agoFix nfscl_getcl() so that it doesn't crash when it is called to
rmacklem [Mon, 8 Jun 2009 18:41:23 +0000 (18:41 +0000)]
Fix nfscl_getcl() so that it doesn't crash when it is called to
do an NFSv4 Close operation with the cred argument NULL. Also,
clarify what NULL arguments mean in the function's comment.

Approved by: kib (mentor)

15 years agoRevert my change; reintroduce __gnu89_inline.
ed [Mon, 8 Jun 2009 18:23:43 +0000 (18:23 +0000)]
Revert my change; reintroduce __gnu89_inline.

It turns out our compiler in stable/7 can't build this code anymore.
Even though my opinion is that those people should just run `make
kernel-toolchain' before building a kernel, I am willing to wait and
commit this after we've branched stable/8.

Requested by: rwatson

15 years agoChange driver_info to a ulong as it always stores a number and remove the only
thompsa [Mon, 8 Jun 2009 18:09:51 +0000 (18:09 +0000)]
Change driver_info to a ulong as it always stores a number and remove the only
diff of the usb_device_id struct to Linux.

Reviewed by: HPS

15 years agoRemove __gnu89_inline.
ed [Mon, 8 Jun 2009 17:27:25 +0000 (17:27 +0000)]
Remove __gnu89_inline.

Now that we use C99 almost everywhere, just use C99-style in the pmap
code. Since the pmap code is the only consumer of __gnu89_inline, remove
it from cdefs.h as well. Because the flag was only introduced 17 months
ago, I don't expect any problems.

Reviewed by: alc

15 years agoIntroduce an infrastructure for dismantling vnet instances.
zec [Mon, 8 Jun 2009 17:15:40 +0000 (17:15 +0000)]
Introduce an infrastructure for dismantling vnet instances.

Vnet modules and protocol domains may now register destructor
functions to clean up and release per-module state.  The destructor
mechanisms can be triggered by invoking "vimage -d", or a future
equivalent command which will be provided via the new jail framework.

While this patch introduces numerous placeholder destructor functions,
many of those are currently incomplete, thus leaking memory or (even
worse) failing to stop all running timers.  Many of such issues are
already known and will be incrementaly fixed over the next weeks in
smaller incremental commits.

Apart from introducing new fields in structs ifnet, domain, protosw
and vnet_net, which requires the kernel and modules to be rebuilt, this
change should have no impact on nooptions VIMAGE builds, since vnet
destructors can only be called in VIMAGE kernels.  Moreover,
destructor functions should be in general compiled in only in
options VIMAGE builds, except for kernel modules which can be safely
kldunloaded at run time.

Bump __FreeBSD_version to 800097.
Reviewed by: bz, julian
Approved by: rwatson, kib (re), julian (mentor)

15 years agoClean up FreeBSD-specific header file:
jkim [Mon, 8 Jun 2009 17:11:47 +0000 (17:11 +0000)]
Clean up FreeBSD-specific header file:

- Define ACPI_USE_DO_WHILE_0 to add do while(0) around return_*() macros.
- Define __cdecl only for user land.  It will never be used in kernel.
- Remove __cli() and __sti().  They were deprecated long ago.

15 years agoNow that amd64's kernel map is 512GB (SVN rev 192216), there is no reason
alc [Mon, 8 Jun 2009 16:43:40 +0000 (16:43 +0000)]
Now that amd64's kernel map is 512GB (SVN rev 192216), there is no reason
to cap its buffer map at 1GB.

MFC after: 6 weeks

15 years agoChange the printf format string to match the variable type to quiet
jhb [Mon, 8 Jun 2009 15:54:07 +0000 (15:54 +0000)]
Change the printf format string to match the variable type to quiet
warnings.

15 years agoMove zombie-reaping code out of kern_wait() and into its own function,
rwatson [Mon, 8 Jun 2009 15:26:09 +0000 (15:26 +0000)]
Move zombie-reaping code out of kern_wait() and into its own function,
proc_reap().
Reviewed by: jhb
MFC after: 3 days
Sponsored by: Google, Inc.

15 years agoCode using COMPAT_ROUTE_FLAGS option, introduced with r187094,
bz [Mon, 8 Jun 2009 15:13:20 +0000 (15:13 +0000)]
Code using COMPAT_ROUTE_FLAGS option, introduced with r187094,
was changed again in r187328, removing any use of the option from
the kernel.  The option was never in NOTES.  Garbage collect.

15 years agoInstead of packing the individual fields in the PnP structures, pack the
jhb [Mon, 8 Jun 2009 15:09:22 +0000 (15:09 +0000)]
Instead of packing the individual fields in the PnP structures, pack the
entire structures.  This trims some warnings.

Verified by: md5(1)
MFC after: 1 week

15 years agoDon't attempt to free the GPT partition list for a disk with an empty GPT.
jhb [Mon, 8 Jun 2009 15:07:35 +0000 (15:07 +0000)]
Don't attempt to free the GPT partition list for a disk with an empty GPT.

Submitted by: Yuri Pankov  yuri.pankov of gmail
MFC after: 3 days

15 years agoUpdate vimage size guard values but do not yet re-enable them.
bz [Mon, 8 Jun 2009 15:02:30 +0000 (15:02 +0000)]
Update vimage size guard values but do not yet re-enable them.
Now that rt_tables does no longer change depending on kernel option
we do no longer need any special values for LINT.

The updated values will be used to make sure that an upcoming
opt_route.h cleanup will not again show any side effects.

15 years agoAdd another PCI id for Nvidia nForce MCP67, found in several Acer laptops.
ariff [Mon, 8 Jun 2009 14:37:47 +0000 (14:37 +0000)]
Add another PCI id for Nvidia nForce MCP67, found in several Acer laptops.

15 years agoPermit the specification of bandwidth values within
luigi [Mon, 8 Jun 2009 14:32:29 +0000 (14:32 +0000)]
Permit the specification of bandwidth values within
"profile" files (bandwidth is mandatory when using a
profile, so it makes sense to have everything in one place).

Update the manpage accordingly.

Submitted by: Marta Carbone

15 years agoDo not dereference vp->v_rdev without holding any of dev_mtx or vnode
kib [Mon, 8 Jun 2009 13:34:45 +0000 (13:34 +0000)]
Do not dereference vp->v_rdev without holding any of dev_mtx or vnode
lock. Use code similar to devfs_fp_check(), but inlined to feet other
checks performed by ttyhook_register().

Reviewed by: ed

15 years agoInvalidate cache in pmap_remove_all() on ARM.
raj [Mon, 8 Jun 2009 12:15:39 +0000 (12:15 +0000)]
Invalidate cache in pmap_remove_all() on ARM.

When pages are removed from virtual address space by calling pmap_remove_all()
CPU caches were not invalidated, which led to read corruption when another
page got mapped at this same virtual address at later time (the CPU was
retrieving stale contents).

Submitted by: Piotr Ziecik
Obtained from: Semihalf

15 years agoadd a missing format in a printf
luigi [Mon, 8 Jun 2009 10:53:18 +0000 (10:53 +0000)]
add a missing format in a printf
Detected building with gcc 4.3.3

MFC after: 3 days

15 years agoFix powerpc build failure due to strict kobj signatures checking.
ariff [Mon, 8 Jun 2009 08:10:52 +0000 (08:10 +0000)]
Fix powerpc build failure due to strict kobj signatures checking.

15 years ago[patch] [locale] German locales use old %d.%m.%y date format instead of newer ISO...
edwin [Mon, 8 Jun 2009 05:33:08 +0000 (05:33 +0000)]
[patch] [locale] German locales use old %d.%m.%y date format instead of newer ISO date

From the submitter:

    DIN 5008 (German norm for text processing) defines the old date
    format (%d.%m.%Y) to be obsolete and to be used only, if unambigous.
    In international communications the new format (%Y-%m-%d) is now
    required and FreeBSD should respect this.

    References:
    - DIN 5008
    - EN 28 601
    - ISO 8601

    Thanks to Oliver Lietz for bringing this to my attention.

PR: conf/72076
Submitted by: Peter Wullinger <some-mail-drop@gmx.net>
MFC after: 1 week

15 years agoAdd notes on various SND_* options.
ariff [Mon, 8 Jun 2009 04:39:47 +0000 (04:39 +0000)]
Add notes on various SND_* options.

15 years agoDo not attempt to set source address on outgoing messages
kan [Mon, 8 Jun 2009 03:39:15 +0000 (03:39 +0000)]
Do not attempt to set source address on outgoing messages
on UDP socket if we do not have a valid IP address.

15 years agoFix grammar.
jkoshy [Mon, 8 Jun 2009 03:37:25 +0000 (03:37 +0000)]
Fix grammar.

Submitted by: richardtoohey at paradise dot net dot nz on -doc

15 years agodo not strip M_MORE_DATA on packets coming through ieee80211_start;
sam [Mon, 8 Jun 2009 03:18:45 +0000 (03:18 +0000)]
do not strip M_MORE_DATA on packets coming through ieee80211_start;
frames coming out of the ps q may have this set and removing it
causes the 802.11 header to not indicate more frames follow which can
result in the sta going to sleep and missing them

15 years agoThe change r192913 has added dependency on IP_RECVDSTADDR being
kan [Mon, 8 Jun 2009 03:15:27 +0000 (03:15 +0000)]
The change r192913 has added dependency on IP_RECVDSTADDR being
set for RPC UDP sockets. Mountd uses internal libc fuctions
directly and bypasses generic socket initialization completely,
so we need to set IP_RECVDSTADDR here to match the libc behavior.

15 years agoMake the size (-s) and start (-b) parameters of the add verb optional.
marcel [Mon, 8 Jun 2009 02:13:24 +0000 (02:13 +0000)]
Make the size (-s) and start (-b) parameters of the add verb optional.
The missing parameter(s) are automatically filled-in.

15 years agoFix build on sparc64.
ariff [Sun, 7 Jun 2009 23:38:16 +0000 (23:38 +0000)]
Fix build on sparc64.

Pointy hat: ariff@

15 years agoprefer callout_schedule
sam [Sun, 7 Jun 2009 23:16:59 +0000 (23:16 +0000)]
prefer callout_schedule

15 years agouse c99-style initializers
sam [Sun, 7 Jun 2009 23:16:10 +0000 (23:16 +0000)]
use c99-style initializers

15 years agoFix and add a workaround on an issue of EtherIP packet with reversed
hrs [Sun, 7 Jun 2009 23:00:40 +0000 (23:00 +0000)]
Fix and add a workaround on an issue of EtherIP packet with reversed
version field sent via gif(4)+if_bridge(4).  The EtherIP
implementation found on FreeBSD 6.1, 6.2, 6.3, 7.0, 7.1, and 7.2 had
an interoperability issue because it sent the incorrect EtherIP
packets and discarded the correct ones.

This change introduces the following two flags to gif(4):

 accept_rev_ethip_ver: accepts both correct EtherIP packets and ones
    with reversed version field, if enabled.  If disabled, the gif
    accepts the correct packets only.  This flag is enabled by
    default.

 send_rev_ethip_ver: sends EtherIP packets with reversed version field
    intentionally, if enabled.  If disabled, the gif sends the correct
    packets only.  This flag is disabled by default.

These flags are stored in struct gif_softc and can be set by
ifconfig(8) on per-interface basis.

Note that this is an incompatible change of EtherIP with the older
FreeBSD releases.  If you need to interoperate older FreeBSD boxes and
new versions after this commit, setting "send_rev_ethip_ver" is
needed.

Reviewed by: thompsa and rwatson
Spotted by: Shunsuke SHINOMIYA
PR: kern/125003
MFC after: 2 weeks

15 years agoDecouple the i386 native and i386 Xen APIC definitions a little further.
adrian [Sun, 7 Jun 2009 22:52:48 +0000 (22:52 +0000)]
Decouple the i386 native and i386 Xen APIC definitions a little further.

I'm experimenting locally with xen APIC emulation a bit and this
makes it easier to migrate APIC entries between being bitmapped and
not being bitmapped.

15 years agoteach ieee80211_classify about ipv6 packets
sam [Sun, 7 Jun 2009 22:06:15 +0000 (22:06 +0000)]
teach ieee80211_classify about ipv6 packets

Reviewed by: bz, rrs

15 years agoadd iv_flags_ht and ic_flags_ht
sam [Sun, 7 Jun 2009 22:03:25 +0000 (22:03 +0000)]
add iv_flags_ht and ic_flags_ht

15 years agotrack HT flags move to iv_flags_ht
sam [Sun, 7 Jun 2009 22:03:07 +0000 (22:03 +0000)]
track HT flags move to iv_flags_ht

15 years agoiv_flags_ext is full, make room by moving HT-related flags to a new
sam [Sun, 7 Jun 2009 22:00:22 +0000 (22:00 +0000)]
iv_flags_ext is full, make room by moving HT-related flags to a new
iv_flags_ht word

15 years agoTry again to add beginnings of netisr(8) man page: this time add
rwatson [Sun, 7 Jun 2009 21:32:01 +0000 (21:32 +0000)]
Try again to add beginnings of netisr(8) man page: this time add
netisr.9.

15 years agoAdd beginnings of a netisr(9) man page.
rwatson [Sun, 7 Jun 2009 21:31:06 +0000 (21:31 +0000)]
Add beginnings of a netisr(9) man page.