Age | Commit message (Collapse) | Author |
|
|
|
require the caller to do so. lteo needs that for divert soon, and is in line
with tcp/udp and the general approach that the rest of the stack should not
need to do anything regarding the cksums but setting the "needs it" flag.
ok lteo
|
|
ok guenther
|
|
can delete 2 dozen or so lines that check to see if we've queued
up a prefix addition multiple times.
ok stsp@
|
|
|
|
Now, for kernel to "reboot" (reboot, halt, or shutdown), MD boot(9) is called
in some places. This change introduces a new MI function reboot(9) which is
simply a wrapper to call MD boot(9).
OK kettenis@ deraadt@
|
|
and specifyig the wrong DWORD count. Moreover we should not evaluate _PDC
if _OSC is present. Might not be perfect yet, but what we had previously
was uterrly and totally wrong.
ok guenther@
|
|
ok guenther
|
|
state to the socket pcb. Add an additional assert to narrow down
the panics.
OK henning@
|
|
this let it wanter off writing segment descriptors off in memory
it didnt own, which led to some pretty awesome memory corruption.
if you had a network card with a small number of tx descriptors per
packet, a lot of memory, and a heavily fragmented packet (ie, ssh)
you were basically guaranteed a confusing panic.
ok miod@
|
|
|
|
just remove the comment and unneeded functionality which has been "#ifdef notused"
for the past 13 years.
OK uebayasi@
|
|
ok henning@ stu@, Yay! weerd@
|
|
|
|
this happening.
ok kettenis@, deraadt@
|
|
The new CPU_BUSY_CYCLE() may be put in a busy loop body so that CPU can reduce
power consumption, as Linux's cpu_relax() and FreeBSD's cpu_spinwait(). To
start minimally, use PAUSE on i386/amd64 and empty on others. The name is
chosen following the existing cpu_idle_*() functions. Naming and API may be
polished later.
OK kettenis@
|
|
bpf listeners on a vlan interface don't expect to see a vlan header (you
expect those on the underlaying if). since we no longer prepend an ethernet
header to later throw it away and prepend an ether_vlan_header, we prepend
a ether_vlan_header right away. to unconfuse bpf listeners we need to cut
the 4 extra bytes out, which is what bpf_mtap_stripvlan does.
problem noticed by dlg with dhcrelay, ok benno dlg
|
|
zaurus's boot(9) is the only boot(9) which doesn't call if_downall(). Include
sys/socket.h + net/if.h and call it.
OK miod@
|
|
not sleep if the allocator cannot obtain a lock when BUS_DMA_NOWAIT is
specified.
idea and inputs from kettenis@, ok miod@
|
|
should be, in bytes.
currently uses SENSOR_INTEGER as sensor type, this may change in the future in
favor of a new sensor type.
ok sf@
|
|
|
|
whitespaces while here.
|
|
atomic_setbits_int()
ok kettenis@
|
|
testing stsp@
ok stsp@, dlg@
|
|
Remember initprocess instead of initproc.
ok matthew@ blambert@
|
|
ok guenther
|
|
enough kernel .S pull this in and cannot handle that (yet)
ok uebayasi
|
|
Inconsistency noted by blambert@, ok deraadt@
|
|
Includes a stand-alone addr2line clone for userspace testing.
Tested extensively on amd64 and expected to eventually support other
architectures too. Importing now so further development/testing can
happen in-tree. Followup commits will add to the kernel build and
integrate into ddb.
positive feedback; no objections
|
|
size (kern.bufcachepercent) on resume, for better hibernate performance.
ok beck@
|
|
ok deraadt
|
|
ok pirofti@
|
|
rebooting a machine, like it is done in the hibernate case.
At least some USB host controller drivers rely on this to busy way instead
of sleeping. Avoid a panic on macppc with an uhci(4) cardbus plugged in.
ok deraadt@, uebayashi@
|
|
explore thread will not disconnect the root hub. The flag will be
set before detaching the children, like it is done during a suspend-
resume cycle.
Fix a panic when unplugging a cardbus *hci(4).
|
|
|
|
Again remove slightly different comments to reduce diffs. These will be
re-added once boot() become MI and its specification is clearly re-defined.
OK miod@
|
|
|
|
While here, change malloc(9)'s size argument from "unsigned long" to
"size_t".
ok tedu
|
|
DVACT_POWERDOWN is propagated in this subtree, there is no need for
this shutdown hook anymore. RIP.
ok kettenis@
|
|
ok miod
|
|
|
|
make ifconfig show whether a wireless network uses WEP or WPA.
Since struct ieee80211_nodereq grows in size old ifconfig won't be
able to scan when running on a new kernel.
While here, add missing ioctl constant IEEE80211_WPA_CIPHER_BIP.
ok jsg@
|
|
|
|
behind #define _KERNEL (it is what it is)
|
|
ok mlarkin@
|
|
|
|
|
|
RB_TIMEBAD is documented well enough that the comment is not needed. sparc64
does slightly different and its comment is left with XXX.
OK deraadt@ miod@
|
|
the disciplines right after vfs_shutdown().
This change is required in order to be able to set `cold' to 1 before
traversing the device (mainbus) tree for DVACT_POWERDOWN when halting
a machine. Yes, this is ugly because sr_shutdown() needs to sleep. But
at least it is obvious and hopefully somebody will be ofended and fix
it.
In order to properly flush the cache of the disks under softraid0,
sr_shutdown() now propagates DVACT_POWERDOWN for this particular subtree
of devices which are not under mainbus. As a side effect sd(4) shutdown
hook should no longer be necessary.
Tested by stsp@ and Jean-Philippe Ouellet.
ok deraadt@, stsp@, jsing@
|
|
Noticed by deraadt@, thanks!
|