summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2016-09-28Fix a kernel panic that happened when destroying interfaces attached toRafael Zalamena
the switch(4) without prior removal. ok reyk@, goda@
2016-09-28Do not truncate packets that are attached to PACKET_IN.Reyk Floeter
The switch should only truncate packets if it implements buffering - which switch(4) doesn't - or the controller might end up sending PACKET_OUT responses with truncated packets that will eventually end up on the network. OK goda@
2016-09-27Protect sbappendaddr() and sorwakeup() with splsoftnet inAlexander Bluhm
rt_senddesync(). This fixes a splassert warning seen by sthen@. Problem found by David Hill; OK sthen@
2016-09-27Wait until the BSSID is known before adding the MAC context to iwm firmware.Stefan Sperling
Fixes iwm connectivity issues after first boot. Tested by myself (8260 chip) and tb@ (7265 chip) ok tb@
2016-09-27Remove empty #ifdef and #ifndef blocksFrederic Cambus
OK natano@
2016-09-27Print the type of operation space that failed as there seem to be more ofMike Larkin
these occurring recently.
2016-09-27clarify a comment whose text became out of date with the previous commitMike Larkin
2016-09-27read and cache VMFUNC capability during boot. for use in an upcoming diffMike Larkin
2016-09-27typoTheo de Raadt
2016-09-27roll back turning RB into RBT until i get better at this process.David Gwynne
2016-09-27move from RB macros to RBT functionsDavid Gwynne
2016-09-27move pf from the RB macros to the RBT functions.David Gwynne
2016-09-27replace the use of RB macros with the RBT functions.David Gwynne
2016-09-26Avoid calculating offset several times. This was done for a few functions ↵Frederic Cambus
already, but not all of them. OK natano@
2016-09-26typo in commentStuart Henderson
2016-09-26RegenJeremie Courreges-Anglas
2016-09-26unbalenced->unbalancedJeremie Courreges-Anglas
2016-09-26Remove xscale support. Properly distinguish between ARMv7 and ARMv8.Mark Kettenis
ok patrick@, jsg@
2016-09-26Mark the static inline functions defined by RBT_PROTOTYPE as __unused. TheMark Kettenis
way these functions are generated through a macro makes clang think they're defined in the .c file. Since some of these function may be unused, clang issues a warning. Marking them as __unused suppresses the macro. ok visa@, deraadt@, dlg@
2016-09-26Move the net/bpf.h include within the #if NBPFILTER directiveFrederic Cambus
OK deraadt@
2016-09-26Check cpuid_level before using CPUID().Philip Guenther
Problem noted by Sami (sami.tikkanen (at) haxaa.net) ok deraadt@
2016-09-25Make a move towards ending 4 decades of kernel snooping.Theo de Raadt
Add sysctl kern.allowkmem (default 0) which controls the ability to open /dev/mem or /dev/kmem at securelevel > 0. Over 15 years we converted 99% of utilities in the tree to operate on sysctl-nodes (either by themselves or via code hiding in the guts of -lkvm). pstat -d and -v & procmap are affected and continued use of them will require kern.allowkmem=1 in /etc/sysctl.conf. acpidump (and it's buddy sendbug) are affected, but we'll work out a solution soon. There will be some impact in ports. ok kettenis guenther
2016-09-25Remove more duplicated includesFrederic Cambus
OK jca@, deraadt@
2016-09-25refactor vmcs flush and reload into one function, and remove anotherMike Larkin
flush that wasn't needed
2016-09-25remove an extraneous vmcs flushMike Larkin
2016-09-24Stick the thread control block pointer into a CPU register on ARMv7.Patrick Wildt
ok guenther@
2016-09-24a route message for BFD, so we can notify userland about the status.Peter Hessler
currently used on state-transitions. OK mpi@
2016-09-24a route message for BFD, so we can notify userland about the status.Peter Hessler
currently used on state-transitions. OK mpi@
2016-09-24Add -Wno-pointer-sign to all our gcc4 architectures.Mark Kettenis
ok patrick@ (for armv7), deraadt@
2016-09-24use hashfree for aobj hashes. from Mathieu -Ted Unangst
ok guenther
2016-09-24use hashfree. from Mathieu -Ted Unangst
ok guenther
2016-09-24move knhash size to event.h, use it for hashfree. from Mathieu -Ted Unangst
ok guenther
2016-09-24use hashfree in fs code. from Mathieu -Ted Unangst
ok guenther
2016-09-24introduce hashfree() function to free hash tables, with sizes.Ted Unangst
ok guenther
2016-09-24Don't compare array against null pointer; found by clang.Mark Kettenis
ok jca@, jcs@
2016-09-24Assert that bus->force_bit >= 0 instead of force_bit. Found by clang.Mark Kettenis
2016-09-24ANSIfy netinet/; from David HillChristian Weisgerber
2016-09-24If the value of r0 upon entering the kernel is zero, interpret this as theMark Kettenis
address of the end of the symbol table. This will make it possible to get rid of the code in the bootloader that patches up the kernel with the updated esym value. ok tom@, patrick@
2016-09-24Pass esym to the kernel in r0. Since u-boot passes 0 in this register, weMark Kettenis
can easily determine that the value passed is valid and use it to initialize the kernel symbol tableo. ok tom@, patrick@
2016-09-24Remove a couple of unsused static inline functions. Also remove a comparisMark Kettenis
of an array to a null pointer that is always false. Found with clang. ok jsg@
2016-09-24Remove unused functions.Mark Kettenis
ok jmatthew@, visa@
2016-09-24Add an implementation of __aeabi_ldivmode() and __aeabi_uldivmod(); clangMark Kettenis
generates calls to these functions when compiling an armv7 kernel. Code from NetBSD's unified userland+kernel implementation, with lots of irrelevant (for us) #ifdefs removed. ok patrick@, guenther@
2016-09-23Attach imxocotp(4) using the fdt. Since this means that imxtemp(4) attachesMark Kettenis
before imxocotp(4), delay reading the temperature sensor calibration information until after imxocotp(4) attaches.
2016-09-23Rework Per Packet Info handlingMike Belopuhov
Per Packet Info is an NDIS meta information embedded in the RNDIS message to communicate various offloading and scheduling operations with the backend. Due to various versions of NDIS supported by Hyper-V some of the offloading features may or may not be available. This commit brings support for IP and protocol checksum offloading as well as initial code for hardware VLAN tagging and jumbo frames where supported.
2016-09-23since the kernel ticks are every 10ms, bump our minimum up a little bit.Peter Hessler
make it harder to overload the kernel
2016-09-23Setup checksum offloading instead of relying on the default configuraitonMike Belopuhov
2016-09-23Configure NDIS VLAN and MTU parameters for NVSP 2 and newer backendsMike Belopuhov
2016-09-23based on a more careful reading of the spec, we're not allowed to makePeter Hessler
decisions on what the "my discriminator" value is from our neighbor. we should only copy it and send it back.
2016-09-23Use "%s" to print the version string. Avoids a "format string is not aMark Kettenis
string literal" warning from clang and matches what we do on amd64.
2016-09-23Fixup the NDIS_OFFLOAD_PARAMS_SIZE_6_1 definitionMike Belopuhov