summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2017-05-28Merge two functions to lookup ELF sections by name.Martin Pieuchot
ok claudio@, jasper@
2017-05-28Fix some spurious fatal firmware errors in iwm(4).Stefan Sperling
If we are not in SCAN state anymore by the time hardware signals completion of a scan command, exit the scan completion handler immediately instead of calling ieee80211_end_scan(). Tested by tb@ and myself. ok mpi@ tb@ zhuk@
2017-05-28Remove unused flag IWM_FLAG_STOPPED.Stefan Sperling
ok tedu@ of course
2017-05-28Remove useless splnet()/splx() dances.Martin Pieuchot
Data structures modified in the ioctl path are protected by the NET_LOCK(). ok sashan@
2017-05-28Protect the global array of interfaces with the NET_LOCK().Martin Pieuchot
ok sashan@
2017-05-28Rename ip_local() to ip_deliver() and give it the same parametersAlexander Bluhm
as the pr_input functions. Add an assert that IPv4 delivery ends in IP proto done to assure that IPv4 protocol functions work like IPv6. OK mpi@
2017-05-28Use intr_disable()/intr_restore() to reduce differences with sparc64Martin Pieuchot
mp_lock. ok kettenis@, visa@
2017-05-28remove bogus atomic_swap_64 code from i386Jonathan Gray
xchg can't handle 64 bit values on i386. gcc errors if the code is called, clang errors if it is included. ok mlarkin@ kettenis@
2017-05-27Fix the carp mode 'balancing ip-stealth'. Set the link state UPAlexander Bluhm
if at least one vhid is in state MASTER. from Florian Riehm; OK florian@
2017-05-27fix previous as noted by mpi, thx florianSebastian Benoit
2017-05-27move sending of pflow packet into a task, seperated from the dataSebastian Benoit
collection by a mbuf queue. with help from mpi@ ok florian@
2017-05-27On i386 and amd64, atomic instructions include an implicit memory barrier.Mark Kettenis
ok mikeb@, visa@, mpi@
2017-05-27Add membar_enter_after_atomic(9) and membar_exit_before_atomic(9) APIs toMark Kettenis
allow important optimizations on architectures where atomic instructions include and implied memory barrier. ok mikeb@, visa@, mpi@
2017-05-27nvme: Don't set prp1 for DEL_IOCQStefan Fritsch
NVM_ADMIN_DEL_IOCQ does not need prp1 (just as NVM_ADMIN_DEL_IOSQ). Remove what is likely a cut'n'paste error from the *_ADD_* code. tested by claudio@ ok jmatthew@
2017-05-27Push the NET_LOCK down into PF_KEY so that it can be treated like PF_ROUTE.Claudio Jeker
Only pfkeyv2_send() needs the NET_LOCK() so grab it at the start and release at the end. This should allow to push the locks down in other places. OK mpi@, bluhm@
2017-05-27Protect the global list of softc with the NET_LOCK().Martin Pieuchot
ok sashan@
2017-05-27Protect the global list of softc with the NET_LOCK().Martin Pieuchot
While here remove superfluous splnet()/splx() in the ioctl routine. ok sashan@
2017-05-27Remove useless splnet()/splx() dances.Martin Pieuchot
pfsyncioctl() is executed with the NET_LOCK() held which is enough. ok sashan@
2017-05-27Use copyin32(9) to atomically copy the futex from user space.Mark Kettenis
On !MULTIPROCESSOR kernels we still fall back on copyin(9), but that is fine. This will break m88k MULTIPROCESSOR kernels. ok deraadt@, mpi@, visa@
2017-05-27Put an assert that M_PKTHDR is set before accessing m_pkthdr in theAlexander Bluhm
mbuf functions. OK claudio@
2017-05-27Make ddb print again filename and linenumber if a bsd.gdb was loaded.Claudio Jeker
mpi@ agrees that this is correct.
2017-05-27move sha224_initial_hash_value[] under !SHA2_SMALL; ok deraadt@ millert@Christian Weisgerber
2017-05-27Move SPINLOCK_SPIN_HOOK to the header used by other archs in order toMartin Pieuchot
prepare the terrain for MI locks. ok kettenis@
2017-05-27Spring cleanup:Martin Pieuchot
- Cache the string table pointer - Unify return statements - Use the end of the symbol table rather than counting symbols
2017-05-27Implement copyin32(9) for alpha.Mark Kettenis
2017-05-27remove #ifdef HIBERNATE section that declares stuff that lives in ahci.cJonathan Matthew
2017-05-27nvme: Add suspend/resume codeStefan Fritsch
Based on an initial patch by ehrhardt@ . Thanks to claudio@ for testing and deraadt@ for advice. "go ahead" deraadt@
2017-05-27Use rn_inithead() instead of rn_inithead0(). Since rn_inithead0()YASUOKA Masahiko
doesn't trigger rn_initmask() and first session had caused panics. Reported by VOblezov at mtsbank.ru.
2017-05-27manually inline tlbflushg. it's short and there's only one caller.Ted Unangst
ok deraadt
2017-05-27Add missing comments for CAN and SUB, for consistency.Frederic Cambus
OK tb@
2017-05-27Refactor m_makespace() using MCLGETI to simplify the logic of this function.Claudio Jeker
Still quite complicated but more legible in the end and it will do less M_GET calls for huge packets. OK bluhm@
2017-05-27virtio: remove unused vq_maxsegsizeStefan Fritsch
2017-05-27Remove obsolete comment talking about splnet().Martin Pieuchot
2017-05-27there shouldn't be any need to check for PGE on amd64. ok deraadt mlarkinTed Unangst
2017-05-27virtio: Remove MINSEG_INDIRECTStefan Fritsch
Remove MINSEG_INDIRECT as a tweakable define. Always use indirect descriptors if we have more than 1 segment. Add a comment to document the way if_vio.c uses maxnsegs in virtio_alloc_vq() to disable indirect descriptors for a queue. Based on a diff from krw@
2017-05-27Use EFI memory map to discover available physical memory.Mark Kettenis
Fall back on improved code that parses the FDT /memory node. However, on machines with "real" UEFI firmware, /memory may include reserved memory that we shouldn't use (it does on the Overdrive 1000). On those machines, make sure that you use BOOTAA64 0.3 or later such that the EFI memory map gets used. For now, print out the EFI memory map to help debug any issues. ok patrick@
2017-05-27In ifa_ifwithroute() the rtalloc() needs to be done against the rdomainClaudio Jeker
so use rtable_l2() to get the right id. Fixes adding routes to rtables. OK mpi@ phessler@
2017-05-27Claim physical memory allocated during early bootstrap from the PROM.Mark Kettenis
2017-05-27Make room for another 4GB of .text.Mark Kettenis
2017-05-27Move error path to end of function where god intended itKenneth R Westerback
to be. goto'ing upwards into an 'if' statement block is weird. ok sf@
2017-05-27Kill option KEY, it is a useless knob, nobody uses pfkeyv2 without IPSEC orClaudio Jeker
tcp md5. OK mpi@
2017-05-27Remove superflyous splnet()/splx() dances.Martin Pieuchot
ok bluhm@
2017-05-27Check cache_valias_mask earlier in the expression. The value is zeroVisa Hankala
on most systems, so this tweak should save an iota of CPU time.
2017-05-27add missing prototypeMike Larkin
2017-05-26Enable chvgpio(4) in RAMDISK_CD on amd64.Stefan Sperling
Makes the King Jim portabook's keyboard work in bsd.rd. ok deraadt mlarkin
2017-05-26There is only one version of pfkey in OpenBSD and this will not change anyClaudio Jeker
time soon so remove all the code to support multiple pfkey versions. OK mpi@
2017-05-26Get rid of the DELAY() hack in the firmware loader for 8000 familyStefan Sperling
iwm(4) devices. I don't see any problems without this hack. I suppose the underlying problem was fixed in if_iwm.c r1.146. Add some additional error checking while here. Tested by me on 8260 and by claudio@ on 8265. ok claudio@
2017-05-26In IPIP input rename the variable ipo to ip as it is used for innerAlexander Bluhm
and outer header. Reset values depending on the the mbuf when the mbuf is adjusted. Check the length of the inner IP header with the correct size in case of IPv6. Check the IPv4 header size including IP options. For the IPIP statistics the inner header length has to be subtracted from the packet size as the outer header has already been stripped off. OK mpi@
2017-05-26Instead of looking at the IP version of the header, use the outerAlexander Bluhm
address family passed to ipip_input(). OK mpi@
2017-05-26virtio: minor tweakStefan Fritsch
use qe_desc_base instead of calculating the address again