summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2017-05-28rename some fieldsMike Larkin
2017-05-28fix broken include on previous pipex commitMike Larkin
ok deraadt
2017-05-28Process packets immediately without queuing since pipex is believed MP safeYASUOKA Masahiko
already, for PPPoE case as first step. ok mpi
2017-05-28typo in commentMike Larkin
2017-05-28Check also whether the interfaces is matched when pipex check PPPoEYASUOKA Masahiko
packets. This fixes the problem when pipex connects with pppoe(4) through pair(4).
2017-05-28Use interface index and if_{put,get} instead of ifnet pointer.YASUOKA Masahiko
2017-05-28Use interface index instead of ifnet pointer.YASUOKA Masahiko
2017-05-28Do not allow NULL callback at rendezvous and clear callbackVisa Hankala
pointer at the end to catch errors faster.
2017-05-28Limit the nested header chain for IPv6 extensions headers and forAlexander Bluhm
authentication headers in the IPv4 case. This prevents spending excessive cpu time on crafted packets. OK henning@
2017-05-28Fix bad white spaces, wrap long lines, kill some empty lines.Alexander Bluhm
2017-05-28Use fast path if remote call is not needed.Visa Hankala
Note that rendezvous calls are no longer necessarily serialized systemwide.
2017-05-28Remove a redundant assignment introduced in revision 1.219 but favor theanton
assignment outside of the conditional. ok stsp@
2017-05-28mips64_multicast_ipi() excludes current CPU.Visa Hankala
The caller does not have to do that.
2017-05-28Add missing NET_UNLOCK() in error path.Martin Pieuchot
Spotted by sashan@
2017-05-28Pf was handling IPv4 and IPv6 differently regarding AH extensionAlexander Bluhm
headers. pf_walk_header6() steps over it and detects the real protocol. So to implement a minimal header walking function pf_walk_header() for IPv4. It does the header checks and jumps over AH. Then pf does not understand AH as a protocol, it is just an extension that authenticates the packet. Move some header and option checks to pf_walk_header() for consistency with IPv6. This also improves the header check for IPv4 packets in ICMP payload. OK henning@
2017-05-28trunk_port_destroy() needs the NET_LOCK().Martin Pieuchot
It brings the interface down and restore the original lladdr. Found by Hrvoje Popovski
2017-05-28If a function is not found in the CTF data, do not assume it takes noMartin Pieuchot
argument.
2017-05-28Call bpf_mtap_af() a bit earlier in ipip_input(). This preparesAlexander Bluhm
upcoming diffs, no functional change. OK mpi@
2017-05-28Build i386 kernels with -ffreestanding, matching amd64 and variousJonathan Gray
other platforms. ok visa@ kettenis@
2017-05-28Remove all splnet/splx from pipex(4) and pppx(4) and replace some ofYASUOKA Masahiko
them by NET_LOCK/NET_UNLOCK. Also make the timeout for pipex_timer run with a thread context and replace pipex softintr by NETISR_PIPEX. ok mpi
2017-05-28Leaving IP multicast group requires the NET_LOCK().Martin Pieuchot
Grab the lock before calling carpdetach(). ok bluhm@
2017-05-28clang warns on unused labels. Place a recently introduced label underJonathan Gray
ifdef IPSEC to fix the clang build when IPSEC is not defined. ok deraadt@ bluhm@
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.