Age | Commit message (Collapse) | Author | |
---|---|---|---|
2015-11-26 | Use 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-26 | init pat_default to 0 as it may potentially be used uninitialised | Jonathan Gray | |
ok mlarkin@ | |||
2015-11-26 | Automatically start vmm(4) when the first VM is created and after the | Reyk 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-25 | Don't bother keeping track of the resident count for the kernel pmap. | Mark Kettenis | |
2015-11-25 | permit kern.maxpartitions | Theo de Raadt | |
2015-11-25 | Simplify the setup of gather segments. | Visa Hankala | |
2015-11-25 | Network drivers should not include <net/route.h> or <net/netisr.h> | Martin Pieuchot | |
2015-11-25 | Small fixes related to the IFF_OACTIVE removal. | Martin Pieuchot | |
2015-11-25 | add size to free | Ted Unangst | |
2015-11-25 | trim unused variable | David Gwynne | |
2015-11-25 | replace 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-24 | Add sendsyslog2(), which accepts the syslog/openlog "logopt" flag | Theo 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-24 | sync | Theo de Raadt | |
2015-11-24 | Add sendsyslog2... this has an additional flags variable to permit | Theo de Raadt | |
passing LOG_CONS ok millert kettenis beck | |||
2015-11-24 | regen | Mark Kettenis | |
2015-11-24 | Add a few missing devices found on recent Apple hardware. | Mark Kettenis | |
From Bryan Vyhmeister. | |||
2015-11-24 | Fix inverted condition in previous. | Mark Kettenis | |
Problem reported by Mikolaj Kucharski. | |||
2015-11-24 | You only need <net/if_dl.h> if you're using LLADDR() or a sockaddr_dl. | Martin Pieuchot | |
2015-11-24 | You 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-24 | Merge three #ifdef _KERNEL blocks into one. | Martin Pieuchot | |
2015-11-24 | No need for "vlan.h" if you don't check for "#if NVLAN > 0". | Martin Pieuchot | |
2015-11-24 | No 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-24 | No 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-24 | No need for <net/if_types.h> | Martin Pieuchot | |
As a bonus this removes a "#if NCARP > 0", say yeah! | |||
2015-11-24 | The only network driver needing <net/if_types.h> is upl(4) for IFT_OTHER. | Martin Pieuchot | |
2015-11-24 | in art_insert, if at_default on the first table is set then return the | David Gwynne | |
existing route rather than overwrite it. ok mpi@ | |||
2015-11-24 | No need to include <net/if_types.h> for <net/if_vlan_var.h> | Martin Pieuchot | |
2015-11-24 | Provide art_free(), a method to release unused routing table heads. | Martin Pieuchot | |
While here initialize pools in art_init(). | |||
2015-11-24 | Double the delay between the PHY reset and the status check for | Martin Pieuchot | |
ServerWorks SATA. Allow to reliably found disks on xserve G5. from miod@ | |||
2015-11-24 | fix 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-24 | Don't loop forever trying to handle NP faults in certain failure cases. | Mike Larkin | |
reported by Stefan Kempf with supplied patch, thanks. | |||
2015-11-24 | regen | Daniel Dickman | |
2015-11-24 | Add some intel 6th gen and 100 series ids. | Daniel Dickman | |
ok jsg@ | |||
2015-11-23 | you 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-23 | No longer need 'option VMM', declaring the vmm0 device is sufficient. | Theo de Raadt | |
ok mlarkin | |||
2015-11-23 | sync to GENERIC | Theo de Raadt | |
2015-11-23 | the "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-23 | downfalls -> pitfalls | mmcc | |
2015-11-23 | downfalls -> pitfalls | mmcc | |
2015-11-23 | Use if_get() rather than rt_ifp. | Martin Pieuchot | |
ok sashan@ | |||
2015-11-23 | There's no longer a need to include <net/hfsc.h> in <net/if_var.h> | Martin Pieuchot | |
2015-11-23 | if_start needs splnet. help/ok dlg@ | Stuart Henderson | |
2015-11-23 | Do 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-23 | Include <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-23 | Attaches 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-23 | need sys/device.h | Theo de Raadt | |
2015-11-23 | Back out the CRITICAL change, turn it back from 10% to 25%. Some | Reyk Floeter | |
people with old/broken batteries didn't like this change, and the underlying heuristics are wrong. | |||
2015-11-22 | too many arguments to function 'ifq_deq_begin' | David Gwynne | |
found by deraadt@ | |||
2015-11-22 | regen | Mark Kettenis | |
2015-11-22 | Unknown device in a MacBookPro9,2. Almost certainly the first generation | Mark Kettenis | |
Intel Thunderbolt controller, as this model was introduced in 2012, and the second generation controllers were introduced in 2013. |