summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2014-07-09Kill unused route storages.Martin Pieuchot
blambert@, henning@, lteo@
2014-07-09Minor cleanups in wording in some comments and printfs, and added someMike Larkin
dprintfs to help debugging in the field (disabled by default)
2014-07-09Don't use the suspending kernel's VA mapping for the piglet. It's farMike Larkin
easier and much less error-prone to just identity map it in the resuming kernel as we have more control over the VA space layout there (otherwise we are at the mercy of the suspending kernel's placement of the piglet VA). This diff also increases the size of the piglet to 4 chunks, to avoid an overwrite issue seen in m2k14 where the start of the kernel text was overwritten with a bounced chunk before unpack.
2014-07-09Delete an obsolete commentPhilip Guenther
2014-07-09Fixes a resume time page table issue on amd64 if the piglet was locatedMike Larkin
above 1GB physical (caused by using an incorrect page size mask) Also removes some unneeded low memory mappings on both amd64 and i386 (this is a cosmetic fix but makes things easier to debug).
2014-07-09Cleanup the chunk placement routine by removing the conflict resolver.Mike Larkin
Chunks are now sorted by ascending PA and all chunks are bounced before unpack. This fixes an issue where the trampoline chunks were being placed at the end of the unpack ordering, causing overwrite during unpack.
2014-07-09Add support bpfwrite on DLT_LOOP interfaces.YASUOKA Masahiko
ok guenther
2014-07-09Teach rw_status() and rrw_status() to return LK_EXCLOTHER if it's writePhilip Guenther
locked by a different thread. Teach lockstatus() to return LK_EXCLUSIVE if an exclusive lock is held by some other thread. ok beck@ tedu@
2014-07-09ext_type is set but never read. its a waste of space.David Gwynne
MEXTADD will be fixed later. ok henning@ deraadt@ mpi@
2014-07-09Do the way long overdue renaming of register names from o32 to n64 ABI.Miod Vallat
In other words, ta0-ta3 are now a4-a7 instead of t0-t3; and the former t4-t7 are now t0-t3.
2014-07-09Kill unused shutdown hook pointers.Martin Pieuchot
ok miod@, deraadt@, tedu@
2014-07-09Use suspending kernel's stack smash guard to avoid panicing during unpack.Mike Larkin
ok deraadt@
2014-07-09Herr Reyk correctly pointed out that we don't need the if_pflog.h includeHenning Brauer
here any more
2014-07-09Fixes a hibernate issue wherein we locked the kernel lock while hatchingMike Larkin
but then parked ourselves in real mode without completing acquisition of said lock. Also removes the park routine from i386 since we don't need it (the APs are already parked at the time we start unpack). discussed with and ok kettenis@, also ok deraadt@
2014-07-09now that mclgeti doesnt do the rx ring accounting, cluster allocationDavid Gwynne
doesnt need to know which ifp an mbuf was allocated on so it can uncount it on free. while here, remove the ext_backend field which identifies the pool the cluster came from and use ext_arg instead. ok henning@ mpi@
2014-07-09tedu bpf_mtap_pflog().Henning Brauer
now that it is a trivial wrapper around the extended bpf_mtap_hdr, we can use bpf_mtap_hdr directly. added benefit: pflog_bpfcopy doesn't need to be exported any more and can stay private to if_pflog.c ok benno bluhm reyk
2014-07-09bpf code surgery / shuffling / simplification.Henning Brauer
the various bpf_mtap_* are very similiar, they differ in what (and to some extent how) they prepend something, and what copy function they pass to bpf_catchpacket. use an internal _bpf_mtap as "backend" for bpf_mtap and friends. extend bpf_mtap_hdr so that it covers all common cases: if dlen is 0, nothing gets prepended. copy function can be given, if NULL the default bpf_mcopy is used. adjust the existing bpf_mtap_hdr users to pass a NULL ptr for the copy fn. re-implement bpf_mtap_af as simple wrapper for bpf_mtap_hdr. re-implement bpf_mtap_ether using bpf_map_hdr re-implement bpf_mtap_pflog as trivial bpf_mtap_hdr wrapper ok bluhm benno
2014-07-09need uvm/uvm_extern.h since no longer supplied below user.hTheo de Raadt
2014-07-09obvious need for systm.h, which no longer comes in from something user.h ↵Theo de Raadt
includes
2014-07-09if you use sysctl, you need sysctl.hTheo de Raadt
2014-07-09pull in uvm/uvm_extern.h (before and) and instead pmap.h, and do not assumeTheo de Raadt
that user.h's tentacles fetched it even earlier.
2014-07-09Set default of net.inet6.icmp6.nodeinfo to 0,Sebastian Benoit
disables responses to RFC4620 IPv6 Node Information Queries. ok florian henning bluhm
2014-07-09Fix boot -d. refreshcreds() should be called when trapping from userspace,Philip Guenther
but I flipped the test on i386/amd64, thus breaking kernel traps before enough proc0 bits were set up. In theory, this could have resulted in a NFS read for a page fault being done with a process's old credentials. pointed out by Patrick Wildt of bitrig
2014-07-09avoid being too smart when filling the rx ring.David Gwynne
2014-07-09dont try to be smart about avoiding the use of too many descriptorsDavid Gwynne
when filling the rx ring. trust the hwm. problem found by sthen@
2014-07-08sys/user.h can now be substantially gutted.Theo de Raadt
ok guenther
2014-07-08also use inverted poison patterns, to mix things up. ok deraadt miodTed Unangst
2014-07-08Recognize (and ignore) ``black button'' presses. ok beck@Miod Vallat
2014-07-08Repair compilability after the recent uvmexp changes, especially forMiod Vallat
not compile-time-known page size platforms.
2014-07-08decouple struct uvmexp into a new file, so that uvm_extern.h and sysctl.hTheo de Raadt
don't need to be married. ok guenther miod beck jsing kettenis
2014-07-08Typo in previous assym.h dependency changesMiod Vallat
2014-07-08white space repairsTheo de Raadt
2014-07-08This is bootblock code. Don't pull in uvm header files to deal withTheo de Raadt
page rounding! Disgusting. Instead, define local copies of those macros.
2014-07-08rearrange some includes. also, pull in uvm/uvm.h because soon sysctl.hTheo de Raadt
won't be pulling in the uvm side of the kitchen.
2014-07-08the #ifdef _KERNEL can wrap the entire file. uvm_extern.h only pullsTheo de Raadt
this inside #ifdef _KERNEL in any case, so nothing really changes.
2014-07-08subtle rearrangement of includesTheo de Raadt
2014-07-08A few missing sys/systm.h includes. Soon the universes dragged in viaTheo de Raadt
uvm_extern.h, uvm_param.h, and sysctl.h will no longer gaurantee that _KERNEL code gets it.
2014-07-08These do not need the extremely poorly named uvm/uvm_extern.h (whichTheo de Raadt
pulls in the universe). occasionally they need sys/systm.h
2014-07-08bye bye UBC; ok beck dlgTheo de Raadt
2014-07-08undo accidentally committed changesStefan Sperling
2014-07-08Remove left-over call to removed function m_clsetwms().Stefan Sperling
ok mpi
2014-07-08pull the rx ring accounting out of the mbuf layer now that its all doneDavid Gwynne
via if_rxring things. this effectively deprecates the third argument for MCLGETI and m_clget and makes the mbuf layer no longer care about interfaces and simplifies the allocation paths. the timeout used to measure livelock has been moved to net/if.c. ok mpi@
2014-07-08cut things that relied on mclgeti for rx ring accounting/restriction overDavid Gwynne
to using if_rxr. cut the reporting systat did over to the rxr ioctl. tested as much as i can on alpha, amd64, and sparc64. mpi@ has run it on macppc. ok mpi@
2014-07-08introduce the if_rxr api. it is intended to pull the rx ring accountingDavid Gwynne
out of the mbuf layer, and break the assumption that an interface will only have a single ring per mbuf cluster size. mpi@ is ok with moving this forward
2014-07-08the way vnet works means mclgeti cant do its job. remove hte ifpDavid Gwynne
argument to MCLGETI to make that clear.
2014-07-08bus_dmamap_sync the rx ring once per em_rxeof call, rather than for everyDavid Gwynne
rx descriptor. slightly tweak by matthew tested on alpha and amd64
2014-07-08in em_rxeof, when the ifp stack var is declared its initted to theDavid Gwynne
right value out of the softc. then its assigned the same value again after the rest of the var decls. well, it used to be. not after this commit.
2014-07-08em_rxeof is only called from em_intr, and only if IFF_RUNNING isDavid Gwynne
set. em_rxeof doesnt have to check that flag again.
2014-07-07if em encounters a heavilty fragmented packet, it can (will) stall theDavid Gwynne
entire tx path. if we try to bus_dmamap_load a very fragmented packet m_defrag it and try again. this is just like if_bge.c r1.355.
2014-07-07regenMatthew Dempsky