summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2016-11-10Apple NVMe controllerMartin Pieuchot
2016-11-09Simplify the switchread loop and fix the case where only first mbuf inRafael Zalamena
the chain was being read. While here rename mbuf variable and remove unused ones. ok mikeb@
2016-11-09Do not call splsoftnet() recursively, this won't work with a lock.Martin Pieuchot
closef() on a socket will call soclose() which call splsoftnet(). So make sure we release the IPL level first in error paths. Found by Nils Frohberg while testing another diff. ok mikeb@, bluhm@
2016-11-09Do not call splsoftnet() recursively, this won't work with a lock.Martin Pieuchot
Timers configured via rt_timer_add(9) always run at IPL_SOFTNET, so assert that rather than calling splsoftnet(). ok bluhm@
2016-11-09Do not dereference a variable without initializing it beforehand.Martin Pieuchot
Fix a typo introduced in m_pullup(9) refactoring and found the hard way by semarie@ while testing another diff. ok mikeb@, dlg@
2016-11-08Reserve extra space for the bufring header structureMike Belopuhov
2016-11-08Add a few more easy sun9i-a80 clocks.Mark Kettenis
2016-11-08Add support for "allwinner,sun9i-a80-mmc-clk" compatible clocks.Mark Kettenis
2016-11-08Add support for sun9i-a80, the Allwinner A80.Mark Kettenis
2016-11-08Add support for sun9i-a80, the Allwinner A80.Mark Kettenis
2016-11-08Teach switch(4) device read(2) operations to behave like a stream socket,Rafael Zalamena
so the userland programs can use it without having to do any special treatment (e.g. having to read() whole packets with just 1 call or lose it). This also allows userland to read more than one ofp header/payload with one syscall. ok mikeb@
2016-11-08No longer need radix.hMartin Pieuchot
2016-11-08RIP ifa_ifwithnet()Martin Pieuchot
ok vgross@
2016-11-08Only use the routing table for source address selection when processing IPMartin Pieuchot
options. Make sure the next hop is directly reachable if IPOPT_SSRR is set. Input from and ok vgross@
2016-11-08Use rtalloc(9) instead of ifa_ifwithnet().Martin Pieuchot
ifa_ifwithnet() checks if a given address is directly connected. This function predates the introduction of the BSD routing table. Nowdays we can check if the route for the given address is marked as RTF_GATEWAY. This works on OpenBSD because we always install RTF_CONNECTED routes for subnets a and RTF_HOST route per p2p link. ok vgross@
2016-11-08Remove superfluous DMA synchronization now that the stack is doing it forMartin Pieuchot
all HCs. ok patrick@
2016-11-08fix debug buildMike Larkin
2016-11-08Remove dead store. From Michael W. Bombardieri <mb at ii.net>. Thanks.Alexandre Ratchov
2016-11-08Log start/stop of DMA if AUDIO_DEBUG is defined and be less verboseAlexandre Ratchov
about buffer parameters. No behaviour change.
2016-11-07rename some types and functions to make the code easier to read.David Gwynne
pool_item_header is now pool_page_header. the more useful change is pool_list is now pool_cache_item. that's what items going into the per cpu pool caches are cast to, and they get linked together to make a list. the functions operating on what is now pool_cache_items have been renamed to make it more obvious what they manipulate.
2016-11-07Add validation for input data that we use as switch configuration, like:Rafael Zalamena
OXM matchs, switch actions and switch instructions. With this validations we don't have to rely on having a flawless controller and then we don't need to restrict switch(4) usage with just switchd(8). ok reyk@
2016-11-07Handle IP address information requestsMike Belopuhov
This adds the last required bit of the KVP interface: providing IP address info back to the Host on request. Normally the Host is not specifying the address family and in this case we prefer to report back the first IPv4 address we can find and resort to IPv6 only when no IPv4 addresses are configured. It also appears that the 5th version of the message format is not publicly documented yet and IP address information request messages differ from the 4th version so we have to take the negotiated protocol version down a notch.
2016-11-07Remove duplicated call for splnet() inside the swofp_mp_recv_port_stats()Rafael Zalamena
and swofp_mp_recv_port_desc(). We already have splnet() before calling swofp_input(). ok reyk@
2016-11-07Change swofp_flow_entry_put_instructions() parameters to be like the otherRafael Zalamena
validations functions so it can returns errors with code 0. While here fix some minor details: memory leak on duplicated instructions, remove unused goto label, fix some whitespace/tab issues. ok reyk@
2016-11-07Kill duplicated declarations.Martin Pieuchot
2016-11-07ARP and NDP timeouts mess with the routing table, so they need a processMartin Pieuchot
context. Convert them to timeout_set_proc(9).
2016-11-07Use goto for consistently instead of splx() and return.Martin Pieuchot
This will allow to have a single lock/unlock dance per timer.
2016-11-07Hide FIX_SSTEP() behind #ifdef _KERNELPhilip Guenther
ok deraadt@
2016-11-07Fix typo in commentPhilip Guenther
2016-11-07Split PID from TID, giving processes a PID unrelated to the TID of theirPhilip Guenther
initial thread ok jsing@ kettenis@
2016-11-06Do not create machine@ symlinks in obj as root during includes:, butTheo Buehler
defer their creation to later, so that they are owned by BUILDUSER. This eliminates the last root-owned files in obj/ from 'make build'. In addition, place a MACHINE == hppa test in hppa/stand/Makefile.inc to avoid creating bogus symlinks on all other archs. joint work with & ok natano, "let's try it" deraadt
2016-11-06Do not create machine@ symlinks in obj as root during includes:, butTheo Buehler
defer their creation to later, so that they are owned by BUILDUSER. This eliminates the last root-owned files in obj/ from 'make build'. In addition, place a MACHINE == hppa test in hppa/stand/Makefile.inc to avoid creating bogus symlinks on all other archs. joint work with & ok natano, "let's try it" deraadt
2016-11-06Avoid calling usbd_set_config_no() in *_attach() and let the stack doMartin Pieuchot
it instead. If anything bad happen due to a malformed descriptor it makes no sense to try to attach a driver, and bail before probing. This is similar to the change to avoid calling usbd_set_config_index().
2016-11-06Add interrupt handling routines for Loongson 3A.Visa Hankala
Feedback from miod@
2016-11-06dont issue sas config page requests against raid targets.David Gwynne
doing requests like that causes lockups on boot. reported by and this fix test by simon mages
2016-11-05Two tweaks for compile/Makefile.inc:Martin Natano
1) Replace '.elif !exists(${OBJDIR}/Makefile)' with just '.else'. espie pointed out, that if the file existed, make wouldn't be reading this file, so the check is superflous. Less clutter. 2) Unconditionally define the 'clean' and 'cleandir' targets, also when obj doesn't exist. This changes the behaviour of 'make clean' to be successful (doing nothing) without obj@ or obj/. ok tb millert deraadt
2016-11-05Move the definition of REGVAL into a common header to make it usableVisa Hankala
outside bonito(4). ok miod@
2016-11-05Drop unnecessary #ifdef MBUF_TIMESTAMP.Visa Hankala
2016-11-05Do not show a device unit number in the cnmac interrupt name. The sameVisa Hankala
interrupt drives all the cnmac ports. ok stsp@
2016-11-03Remove obsolete vxlan_lookup return value handlingMike Belopuhov
With input from reyk@, OK mpi
2016-11-03Support for key removal and value update operationsMike Belopuhov
This change makes it possible for the Host to update the value of an existing key via a Set operation as well as to remove the key completely with a Delete message.
2016-11-03Fix debug message to print the presence of more flag correctly.Rafael Zalamena
ok mikeb@
2016-11-03Add locks to key-value pair poolsMike Belopuhov
We need to ensure list and data consistency during concurrent accesses since the interrupt handler is not executed under the kernel lock and may add or modify entries while userland process is reading the value or traversing the list.
2016-11-03Identify as an OSPlatformID 131 with a kernel version of 6Mike Belopuhov
2016-11-03Implement a Key-Value Pair exchange interfaceMike Belopuhov
The implemented abstraction allows us to query and set little endian UTF-16 keys exchanged between the Host and the Guest via a text based pvbus(4) interface. All keys are attached to one of several key pools: Auto, Guest, External or Guest/Parameters. The hostctl(8) is able to modify values for keys in the Auto pool as well as set new keys in the Guest pool while the Host provides its keys in External and Guest/Parameters pools. Discussed with reyk@
2016-11-03Let Integrated Components allocate the receive buffer themselvesMike Belopuhov
since they have a better clue how to size it. While here, cleanup the kernel output a bit.
2016-11-03Always call if_put() during the interface iteration on port status multipartRafael Zalamena
reply to avoid reference leaks. ok mikeb@
2016-11-03The networking code no longer runs off software interrupts.Martin Pieuchot
2016-11-02Add Windows 10 VMBus protocol versionMike Belopuhov
2016-11-02Inline the macro that is used only onceMike Belopuhov