summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2009-01-30Set mbuf watermarks.Mark Kettenis
2009-01-30Deal with running out of receive buffers.Mark Kettenis
2009-01-30Mark routers internal as uninstalled after deleting the default route.Rainer Giedat
This makes it possible to get a new default route by router advertisement after the old one got deleted (or timed out). Ok henning@, claudio@, mcbride@
2009-01-30"XXX: should this be performed under splnet()?"... Yes, yes it should.Ryan Thomas McBride
Interface configuration causes neighbour discoverery, which runs packets through parts of the stack that require at least splsoftnet(), like pf and pfsync. ok dlg
2009-01-30Properly clean out our rings when we down the interface.Mark Kettenis
2009-01-30sprinkle splassert(IPL_SOFTNET) around the code that inserts, unlinks, andDavid Gwynne
frees pf states. ok mcbride@
2009-01-30- add missing trailing 't' of the mos(4) entry's 'Etherne'Jasper Lievisse Adriaanse
2009-01-29KNF (whitespace fixes). ok grunk@Alexander Bluhm
2009-01-29``beginning'' is spelled with 2 `g' and 3 `n'.Miod Vallat
2009-01-29Remove KASSERT() that could trigger when an rthread in sigwait()Philip Guenthe
got multiple signals before tsleep() could wakeup. Also, POSIX says that sigwait() should never return EINTR, so map that to ERESTART. ok kurt@, tedu@ fixes the panic encountered by ariane@ with kaffe
2009-01-29Add a few cache operations after I/O completes.Miod Vallat
2009-01-29The ``flush before inval'' 88410 workaround needs to be done inMiod Vallat
m88410_initialize_cpu() as well. Since we can't flush unknown data, just make sure all 88410 lines are filled with valid data before flushing it. This should fix the spurious ``197DP hangs or loops on osiop errors after autoconf'' issue I've been seeing.
2009-01-29Switch struct stat's timespec members to the names standardized inPhilip Guenthe
POSIX 1003.1-2008, with compatibility macros for the names used in previous version of OpenBSD. Update all the references in the kernel to use the new, standard member names. ok'ed by miod@, otto@; ports build test by naddy@
2009-01-29Some of the latest macppc laptops with no adb subsystem at all, spontaneouslyMiod Vallat
powerdown if we try to issue pmu commands. Skip these if no adb device appears in the device tree. Adapted from NetBSD.
2009-01-29Oops, correct logic when requested font index is out of bounds. ThankfullyMiod Vallat
it's a can't happen situation.
2009-01-29fix a panic that occurs when IEEE80211_STA_ONLY is defined (SMALL_KERNEL).Damien Bergamini
noticed by ray@, more investigation from sthen@ fix tested by sthen@
2009-01-29Split the address selection from pools away from pf.c and put it inPierre-Yves Ritschard
pf_lb.c. This will ease the process of adding more selection types without bloatening pf.c even more. ok and a weird death threat, henning@ raised eyebrow, dlg@
2009-01-29move some code around in preparation for future work:Henning Brauer
break out the code that doesn't deal with fragment reassembly and only modifies stuff in the ip header to their own functions. pass them what they need instead of making them get the info from a rule ptr. ok dlg ryan
2009-01-29Only start using the rtc for statclock after we've received the firstMark Kettenis
interrupt. On some machines the rtc doesn't generate interrupts and we would end up not running statclock() at all. ok miod@, art@
2009-01-29Fix a crash found by bluhm@ in rn_mpath_reprio(). The rn_mklist handling wasClaudio Jeker
wrong which resulted in a NULL rm_leaf which caussed a NULL deref a bit later. Check against the right route nodes to figure out if the rm_leaf needs to be updated. Tested by bluhm@, OK dlg@
2009-01-29Make multicast actually work this time.Mark Kettenis
2009-01-29Always zero the IP checksum field for packets and packet fragmentsChristian Weisgerber
being passed down if using HW checksum offload. From Brad, inspired by NetBSD/FreeBSD. ok markus@
2009-01-29Similar to my last commit, it's stupid to have a file with two veryOwain Ainsworth
small functions in it. Move them to main driver file.
2009-01-29Move drmmmap to the main driver file. It's stupid to have a file withOwain Ainsworth
one (not particlarly large) function in it.
2009-01-29drm_getmap and interface can die too.Owain Ainsworth
2009-01-29Rip out the drm_drawable support. There is no need for the xserver toOwain Ainsworth
push cliprects into the kernel anymore so no op the ioctls. The only consumer of this information died a couple of months ago. When i've got removal of these calls from userland upstream i'm going to remove them from the interface entirely.
2009-01-29mpls_operation have to be 2 bytes long to storeMichele Marchetto
operations correctly ok claudio@ laurent@
2009-01-29Switch tsec(4) over to using MCLGETI when allocating mbufs for the rx ring.Mark Kettenis
2009-01-29regenMarco Peereboom
2009-01-29Soundblaster stuff. from brad.Marco Peereboom
2009-01-28Add support for next generation megaraid sas raid controllers.Marco Peereboom
From Jim Giannoules <gortag@gmail.com>
2009-01-28regenMarco Peereboom
2009-01-28LSI 2108 chipsMarco Peereboom
2009-01-28Get rid of the ugly rtentry hack.Michele Marchetto
We can now act as edge node and allow ipv4 packets to enter a Label Switched Path and not just forwarding MPLS packets. OK claudio@
2009-01-28Implement proper multicast support.Mark Kettenis
2009-01-28Make bus_mem_add_mapping() return ENOMEM if we fail to allocate kva insteadMark Kettenis
of panicing.
2009-01-28Block Ack agreements are unidirectional.Damien Bergamini
Maintain state for both originator and recipient roles separately. Do not allocate receive reordering buffer in addba_request(). Test the "initiator" bit in incoming DELBA frames and set it appropriately in outgoing DELBA frames. Separate callbacks for Tx/Rx too. no binary change since all this is #ifdef'ed out.
2009-01-28If the rom contains a monitor table, look for an entry matching ourMiod Vallat
display resolution, and if one is found, pick the built-in font it points to, instead of the first font from the list. If the index is wrong and the font list is shorter, revert to the previous behaviour of using the first ROM font. This fixes the font discrepency on my B132L (INTERNAL_EG_1280) where PDC would use the 10x20 font, which is third in the list, and OpenBSD would use the 8x16 font instead. Tested on byte- and word- roms, gsc and pci cards.
2009-01-28In ieee80211_find_node(), roll our own RB_FIND() based on the key (macaddr)Damien Bergamini
instead of resorting to horrid hacks/casts. Restore the ieee80211_node structure back to its original state.
2009-01-28Be a little more tolerant about matching ROMs. Makes todd@'s quad hme(4) getMark Kettenis
proper MAC addresses even if you plug it into an i386 machine. ok miod@
2009-01-28Use extern for variable declarations in .h files so that we don't end up withClaudio Jeker
multiple common warnings when linking a kernel with NATM. Put the real variable into natm_pcb.c which seems to be a good place for the pcb list. OK kettenis@
2009-01-28Implement basic routing socket filtering. It is possible to give a list --Claudio Jeker
actually a bitfield -- of routing messages a listener is interested in. This list can be changed with a setsockopt(s, AF_ROUTE, ROUTE_MSGFILTER, ...) call. OK henning@, dlg@
2009-01-28Remove cur_usec variable that is no longer used.Alexander Bluhm
ok blambert@
2009-01-28Don't map the full 16 MB PROM to prevent running out of kva. We're onlyMark Kettenis
interested in the first few KB. ok grange@
2009-01-28Add missing braces in trunc_page() call from vmapbuf().Alexander Yurchenko
ok miod@
2009-01-27Correct my timeradd() thinko in nfsrv_writegather()Bret Lambert
pointed out by bluhm@, "obvious" thib@
2009-01-27In IPsec acquire mode, if the flow was configured for the "any"Alexander Bluhm
network 0.0.0.0/0 or ::/0, the SA was established for the IP address in the packet instead of the network in the flow. That means the SA was not negotiated for the network 0.0.0.0 with mask 0 but for the remote IP with mask 255.255.255.255. This SA did not match the flow and did not work. To differentiate between general flows that are used to trigger specific host-to-host SAs and flows for matching network SAs, the if condition only uses the ipo->ipo_dst field now. For a flow without peer, an SA must be negotiated for each host-to-host combination. Otherwise, if a peer exists at the flow, the kernel acquires one SA for the whole network. tested by todd@, ok hshoexer@, angelos@, todd@
2009-01-27Get rid of the last traces of uvm.pager_[se]vaMiod Vallat
2009-01-27Turns out the IRQ Information is optional in IRQ Descriptor resources, soMark Kettenis
allow resources that are only 5 bytes long. Prevents dmesg spamming on the OQO.
2009-01-27rum -> urtw. ok jsg@, kevlo@Martynas Venckus