summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2015-11-26Use rtalloc(9) to look for a local address (RTF_LOCAL) in ip_setmoptions().Martin Pieuchot
This simplifies the if_get()/if_put() dance. Tested by jasper@
2015-11-26init pat_default to 0 as it may potentially be used uninitialisedJonathan Gray
ok mlarkin@
2015-11-26Automatically start vmm(4) when the first VM is created and after theReyk Floeter
last VM is terminated. This allows to remove the explicit "vmm enable" / "vmm disable" (VMM_IOC_START / VMM_IOC_STOP) ioctls. You'll have to update kernel and userland for this change, as the kernel ABI changes. OK mpi@ mlarkin@
2015-11-25Don't bother keeping track of the resident count for the kernel pmap.Mark Kettenis
2015-11-25permit kern.maxpartitionsTheo de Raadt
2015-11-25Simplify the setup of gather segments.Visa Hankala
2015-11-25Network drivers should not include <net/route.h> or <net/netisr.h>Martin Pieuchot
2015-11-25Small fixes related to the IFF_OACTIVE removal.Martin Pieuchot
2015-11-25add size to freeTed Unangst
2015-11-25trim unused variableDavid Gwynne
2015-11-25replace IFF_OACTIVE manipulation with mpsafe operations.David Gwynne
there are two things shared between the network stack and drivers in the send path: the send queue and the IFF_OACTIVE flag. the send queue is now protected by a mutex. this diff makes the oactive functionality mpsafe too. IFF_OACTIVE is part of if_flags. there are two problems with that. firstly, if_flags is a short and we dont have any MI atomic operations to manipulate a short. secondly, while we could make the IFF_OACTIVE operates mpsafe, all changes to other flags would have to be made safe at the same time, otherwise a read-modify-write cycle on their updates could clobber the oactive change. instead, this moves the oactive mark into struct ifqueue and provides an API for changing it. there's ifq_set_oactive, ifq_clr_oactive, and ifq_is_oactive. these are modelled on ifsq_set_oactive, ifsq_clr_oactive, and ifsq_is_oactive in dragonflybsd. this diff includes changes to all the drivers manipulating IFF_OACTIVE to now use the ifsq_{set,clr_is}_oactive API too. ok kettenis@ mpi@ jmatthew@ deraadt@
2015-11-24Add sendsyslog2(), which accepts the syslog/openlog "logopt" flagTheo de Raadt
LOG_CONS. If syslogd is not accepting messages, direct them to the console. This allows us to remove the direct /dev/console opening code from the bowels of libc. Of course, that forgotten code was exposed by pledge. ok kettenis millert beck
2015-11-24syncTheo de Raadt
2015-11-24Add sendsyslog2... this has an additional flags variable to permitTheo de Raadt
passing LOG_CONS ok millert kettenis beck
2015-11-24regenMark Kettenis
2015-11-24Add a few missing devices found on recent Apple hardware.Mark Kettenis
From Bryan Vyhmeister.
2015-11-24Fix inverted condition in previous.Mark Kettenis
Problem reported by Mikolaj Kucharski.
2015-11-24You only need <net/if_dl.h> if you're using LLADDR() or a sockaddr_dl.Martin Pieuchot
2015-11-24You need <netinet/ip.h> if you use "struct ip" for hw checksum.Martin Pieuchot
You never need <netinet/ip_var.h> nor <netinet/in_systm.h>.
2015-11-24Merge three #ifdef _KERNEL blocks into one.Martin Pieuchot
2015-11-24No need for "vlan.h" if you don't check for "#if NVLAN > 0".Martin Pieuchot
2015-11-24No need for <net/ethertypes.h> it is part of <netinet/if_ether.h>Martin Pieuchot
While here use < > rather than " " to for driver includes.
2015-11-24No need to include <net/if_arp.h>Martin Pieuchot
This header is only needed because <netinet/if_ether.h> declares a structure that needs it. But it turns out that <net/if.h> already includes it as workaround. A proper solution would be to stop declarting "struct ether_arp" there. But no driver should need this header.
2015-11-24No need for <net/if_types.h>Martin Pieuchot
As a bonus this removes a "#if NCARP > 0", say yeah!
2015-11-24The only network driver needing <net/if_types.h> is upl(4) for IFT_OTHER.Martin Pieuchot
2015-11-24in art_insert, if at_default on the first table is set then return theDavid Gwynne
existing route rather than overwrite it. ok mpi@
2015-11-24No need to include <net/if_types.h> for <net/if_vlan_var.h>Martin Pieuchot
2015-11-24Provide art_free(), a method to release unused routing table heads.Martin Pieuchot
While here initialize pools in art_init().
2015-11-24Double the delay between the PHY reset and the status check forMartin Pieuchot
ServerWorks SATA. Allow to reliably found disks on xserve G5. from miod@
2015-11-24fix tx ring accounting in myx_start.David Gwynne
turns out i was calculating the number of packets (not descriptors) on the tx ring, and then using that as the free space for descriptors.
2015-11-24Don't loop forever trying to handle NP faults in certain failure cases.Mike Larkin
reported by Stefan Kempf with supplied patch, thanks.
2015-11-24regenDaniel Dickman
2015-11-24Add some intel 6th gen and 100 series ids.Daniel Dickman
ok jsg@
2015-11-23you cant touch m_pkthdr in between ifq_deq_begin and ifq_deq_commit.David Gwynne
TULIP_SETCTX() does though. this moves that call after ifq_deq_commit. problem reported (with great detail) and fix tested by ricardo mestre ok mpi@
2015-11-23No longer need 'option VMM', declaring the vmm0 device is sufficient.Theo de Raadt
ok mlarkin
2015-11-23sync to GENERICTheo de Raadt
2015-11-23the "getpw" test for /dev/tty is only needed for readpassphrase(3),Theo de Raadt
getpass(3), so don't specifically allow it for "rpath" (rpath will accept it in the end, unless it is on the whitelist)
2015-11-23downfalls -> pitfallsmmcc
2015-11-23downfalls -> pitfallsmmcc
2015-11-23Use if_get() rather than rt_ifp.Martin Pieuchot
ok sashan@
2015-11-23There's no longer a need to include <net/hfsc.h> in <net/if_var.h>Martin Pieuchot
2015-11-23if_start needs splnet. help/ok dlg@Stuart Henderson
2015-11-23Do not include <sys/atomic.h> inside <sys/refcnt.h>.Martin Pieuchot
Prevent lazy developers, like David and I, to use atomic operations without including <sys/atomic.h>. ok dlg@
2015-11-23Include <sys/atomic.h> when atomic operations are used.Martin Pieuchot
This has been masked because <sys/srp.h> is pulled unconditionally. ok dlg@
2015-11-23Attaches zs(4) as "zs" not "zsc".Martin Pieuchot
Incoherency brought by jmc@ and schwarze@ because the SYNOPSIS of the corresponding manual do not match its NAME. This is one step further in the zs(4) unification... Go dokey go! Tested by jmatthew@, ok sebastia@, deraadt@
2015-11-23need sys/device.hTheo de Raadt
2015-11-23Back out the CRITICAL change, turn it back from 10% to 25%. SomeReyk Floeter
people with old/broken batteries didn't like this change, and the underlying heuristics are wrong.
2015-11-22too many arguments to function 'ifq_deq_begin'David Gwynne
found by deraadt@
2015-11-22regenMark Kettenis
2015-11-22Unknown device in a MacBookPro9,2. Almost certainly the first generationMark Kettenis
Intel Thunderbolt controller, as this model was introduced in 2012, and the second generation controllers were introduced in 2013.