summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2017-11-01Fix typo in previous resulting in a NULL dereference.Martin Pieuchot
2017-10-31- add one more softnet taskqAlexandr Nedvedicky
NOTE: code still runs with single softnet task. change definition of SOFTNET_TASKS in net/if.c, if you want to have more than one softnet task OK mpi@, OK phessler@
2017-10-30- fine tuning PF_LOCK in pfioctl()Alexandr Nedvedicky
(extra thanks to Hrvoje for testing) OK mpi@
2017-10-30Let witness(4) differentiate between taskq mutexes to avoidVisa Hankala
reporting an error in a scenario like the following: 1. mtx_enter(&tqa->tq_mtx); 2. IRQ 3. mtx_enter(&tqb->tq_mtx); Found by Hrvoje Popovski, OK mpi@
2017-10-30Kill <net/slip.h>.Martin Pieuchot
The ioctl(2) it defines is not supported since a long time and most of its defines are already present in tcpdump(8). ok jca@
2017-10-29IFF_NOARP has no effect if the interface don't use ether_input() norMartin Pieuchot
ether_output().
2017-10-29This doesn't need the NET_LOCK, everything is protected by a mutex.Florian Obser
OK mpi, visa
2017-10-29Move NET_{,UN}LOCK into individual slowtimo functions.Florian Obser
Direction suggested by mpi OK mpi, visa
2017-10-29Finish TURBOchannel scatter/gather map code (i.e. make it work) andMartin Pieuchot
enable it when available (i.e. all DEC 3000 models but models 300). Tested on DEC 3000/600 (sgmap) and DEC 3000/300LX (no sgmap). from miod@
2017-10-29Kill unused members using forward declaration only types.Martin Pieuchot
Found with ctfconv(1). ok jsg@, guenther@
2017-10-28Add the compat-mode setup for wsmouse.Ulf Brosziewski
2017-10-28Adapt the Elantech handlers (v1-3) to the new wsmouse infrastructure.Ulf Brosziewski
The new versions use wsmouse_configure, and leave compat-mode handling to wsmouse. ok stsp
2017-10-28Rename function name and order. No fuctional change.YASUOKA Masahiko
2017-10-28Attach efifb(4) when the system is booted with serial console. AlsoYASUOKA Masahiko
make it usable as a wsdisplay0.
2017-10-27Replace ancient DELAY inherited from Mach and the associated scaryMartin Pieuchot
comment with a barrier. Tested in both fast and slow modes. from miod@
2017-10-27Allocate IPv6 reassembly structs using pools instead of malloc(),Visa Hankala
and drop the now redundant allocation type M_FTABLE. OK mikeb@, bluhm@, mpi@
2017-10-27Remove 80211WMMPARMS ioctls. Last used in ifconfig in 2009.Jonathan Gray
ok stsp@ kevlo@ jca@
2017-10-27Remove duplicated function prototypes.Kevin Lo
ok patrick@
2017-10-27This file only includes <arm/elf_abi.h> which was removed in 2008, so kill it.Martin Pieuchot
ok jsg@
2017-10-27Use <elf.h> in !_KERNEL code path.Martin Pieuchot
2017-10-27Dump IPsec flows by iterating over the rafdix-tree.Martin Pieuchot
This enforces an order and will allow us to get rid of the global list. ok millert@, visa@, markus@
2017-10-27Call i8254_startclock() earlier to make delay() usable. Actually HPYASUOKA Masahiko
DL 20 Gen9 with "UEFI optimized mode" requires this initialization. tested by Pedro Ramos ok kettenis
2017-10-26Discard exception handling information as we do on other architectures.Mark Kettenis
ok patrick@, deraadt@
2017-10-26Replace macro `IP6_REASS_MBUF' with direct use of field `ip6af_m'.Visa Hankala
OK bluhm@, mpi@
2017-10-26Add aliases for __aeabi_idivmod and __aeabi_uidivmod calls clang emits.Jonathan Gray
Remainder of the division is already stored in r1 in __divsi3/__udivsi3. ok kettenis@
2017-10-26Stop grabbing the KERNEL_LOCK() in network tasks when `ipsec_in_use'Martin Pieuchot
is set. Accesses to IPsec global data structure are now serialized by the NET_LOCK(). Tested by many, ok visa@, bluhm@
2017-10-26Kill deprecated IPv6 ioctl(2)s.Martin Pieuchot
ok florian@, sthen@, jsg@
2017-10-26Move common code to add/remove multicast filters to ieee80211_ioctl(9).Martin Pieuchot
ok jsg@, stsp@
2017-10-26adjust Makefile.armv7 for clangJonathan Gray
ok kettenis@
2017-10-26Use .arch_extension sec and virt to use smc and hvc instructions whenJonathan Gray
using the clang 5.0.0 integrated assembler with -march=armv7a. ok visa@ initial diff from and ok kettenis@
2017-10-26Revert 2006-4-29Z23:09:45 commit that switched from rwlocks to mutexes.Philip Guenther
Use of mutexes there is a WITNESS violation. ok visa@ mpi@
2017-10-25Initialize processor extended state in fpu_kernel_enterMike Belopuhov
Tested by a few; OK visa, sthen
2017-10-25Storing the address of a stack variable in a global variable is a bad idea.Mark Kettenis
Rework the code to store the relevant information in the softc. As a bonus, this reduces the stack space that is used such that this file compiles with clang. ok ians@
2017-10-25Remove the TCP_FACK option and associated #if{,n}def code.job
TCP_FACK was disabled by provos@ in June 1999. TCP_FACK is an algorithm that decides that when something is lost, all not SACKed packets until the most forward SACK are lost. It may be a correct estimate, if network does not reorder packets. OK visa@ mpi@ mikeb@
2017-10-25Remove Multicast and Broadcast flags from the encapsulated packet inMartin Pieuchot
vxlan(4) like it is done by other tunnelling pseudo-interfaces. While here sync the comment between multiple interfaces. Bug report and original diff from Pierre LALET.
2017-10-24R_AARCH64_NONE should be zero, not 256. The latter was a deprecatedPhilip Guenther
assignment and isn't used by clang/lld. ok jsg@
2017-10-24In ld scripts, an output section with no input sections is always markedPhilip Guenther
writable, so the stub gap.o has .rodata flagged as RW. Instead of letting that propagate to the final :rodata PT_LOAD section, force the flags on the section to 4 (==PF_R) in the PHDRS block. problem noted by mortimer@ ok deraadt@ kettenis@
2017-10-24Use "static inline" instead of "extern inline" for compatibility withMark Kettenis
proper C99 compilers. ok deraadt@, visa@, mpi@
2017-10-24Attach syscon(4) early. Also attach psci(4) early such that cpuresetfnMark Kettenis
and powerdowfn are initialized in the same way as before. ok patrick@, jsg@
2017-10-24Refactor handling of partial TCP acknowledgementsMike Belopuhov
With input from Klemens Nanni, OK visa, mpi, bluhm
2017-10-24remove defines for ioctls the kernel doesn't recogniseJonathan Gray
ok mpi@
2017-10-24Remove some more tests checking for a non-NULL `ifp->if_ioctl'.Martin Pieuchot
if_attach() enforces it is properly defined.
2017-10-24Remove support for never used ioctls originating from KAME.Martin Pieuchot
ok florian@, claudio@, bluhm@
2017-10-24Use membar_enter_after_atomic(9) amd membar_exit_before_atomic(9).Martin Pieuchot
Micro-optimization useful to x86 archs where the cmpxchg{q,l} instruction used by rw_enter(9) and rw_exit(9) already include an implicit memory barrier. From Mateusz Guzik, ok visa@, mikeb@, kettenis@
2017-10-23Avoid clang format warning.Mark Kettenis
ok deraadt@
2017-10-23Replace imxocotp(4) with a regmap-based approach.Mark Kettenis
ok patrick@
2017-10-23Expose TSC properties via sysctl nodesMike Belopuhov
From Adam Steen with suggestions from tedu@ OK deraadt, mlarkin (as part of a larger diff)
2017-10-23Even if a USB transfer fails, call umb_start() so that processingGerhard Roth
of the if_snd queue doesn't stall. ok stsp@
2017-10-23Remove bcmmuart since it has already replaced with com(4).Kevin Lo
ok patrick@
2017-10-23remove mention of unused MACOBIOVERBOSE and NBUF optionsJonathan Gray