summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2016-03-23Merge in_pcbbind() and in6_pcbbind(), and change every call toVincent Gross
in6_pcbbind() into in_pcbbind(). Ok jca@ mpi@
2016-03-23Cleanup SCTLR mask to only include bits that are actually defined onPatrick Wildt
most ARMv7 and ARMv8 processors. Add TODO to set the ACTLR.SMP bit so we can make use of the atomic instructions available since ARMv6. Remove unused comment and code while there. ok jsg@
2016-03-23Extract in_pcbaddrisavail() from in_pcbbind().Vincent Gross
ok jca@
2016-03-22dont leak an mbuf when copying the packet in pipex_mppe_output failsDavid Gwynne
ok yasuoka@
2016-03-22replace m_copym2 with m_dup_pktDavid Gwynne
this gives us preallocated space at the start of the packet for headers so later calls to M_PREPEND are far less likely to fail. ok yasuoka@
2016-03-22Remove support for ARM11. This was the last unused and unmaintainedPatrick Wildt
processor in our code. Now we're left with only armv7 and XScale for armish and zaurus. ok jsg@
2016-03-22Remove support for ARM10.Patrick Wildt
ok jsg@
2016-03-22slight knfDavid Gwynne
2016-03-22replace ieee80211_align_mbuf with m_dup_pktDavid Gwynne
ok stsp@
2016-03-22Remove support for ARM9E. This is another step in the plan to removePatrick Wildt
all unused and unmaintained ARM processors from the past. ok bmercer@ jsg@
2016-03-22dont mix up the len and flats argument to MCLGETI in m_dup_pktDavid Gwynne
2016-03-22allow fpathconf() in stdio mode, since it is an innocuous queryTheo de Raadt
system call. discussed with semarie and everyone else during the 5.9 lock.
2016-03-22Remove defines for unsupported chips, add V5TEJ and remove incorrectJonathan Gray
ARCH_V7 define. The number ARM Ltd armv7 chips set here is 0xf, documented as 'Defined by CPUID scheme'. ok patrick@ bmercer@
2016-03-21Rename the system call sendsyslog2 to sendsyslog. Keep the old oneAlexander Bluhm
as osendsyslog for a while. The three argument variant is the only one that will stay. input kettenis@; OK deraadt@
2016-03-21Replace magic number in urtwn(4) with corresponding macro from ic/r92creg.h.Stefan Sperling
2016-03-21Extract in6_pcbaddrisavail() from in6_pcbbind(), and use it whenVincent Gross
checking for source availability in udp6_output(); This time with all the files. Ok jca@ bluhm@
2016-03-21In ral(4) RT2860 code, replace custom defrag with m_defrag().Stefan Sperling
This fixes an error in the existing code: the "hopeless case" guard equivales 'ring now full', so oactive is never set: the code drops any mbuf that would fill the ring. This occurs often in practice. The new code avoids some hoop-jumping. Currently, one tx dma-map can fill the tx ring. Therefore an mbuf that fits a dma-map may yet not fit into the tx ring's remaining space. To be sure it can, we must in general count the mbuf's fragments and, if necessary, defrag it and reload the dmamap. Patch by Richard Procter via bugs@ Tested by Richard on RT2860 and by me on RT3090 and RT2700. ok mpi@ dlg@
2016-03-21Fix watchdog timeouts and dropped frames under load with RT2860 ral(4).Stefan Sperling
On full tx ring, ring->cur wraps to an active tx descriptor. Passing that wrapped value to the card was observed to cause general flakiness. Fix prevents the wrap at the cost of reducing usable tx descriptors by one. Patch by Richard Procter via bugs@ Tested by Richard on RT2860 and by me on RT3090 and RT2700. ok mpi@ dlg@
2016-03-21Add a tcps_sc_seedrandom counter in TCP SYN cache and netstat -s.Alexander Bluhm
This shows how often the hash function is reseeded and the random bucket distribution changes. OK mpi@ claudio@
2016-03-21On Octeon systems, U-Boot provides a list of usable memory regions. UseVisa Hankala
the list instead of hardcoded regions in memory setup. Works on EdgeRouter Lite, EdgeRouter Pro, Lanner MR326b and Movidis 16x. Tested by jj@ Tested by and ok jmatthew@
2016-03-21The common part of rtwn(4) needs help from attachment drivers to determineStefan Sperling
the chip type. Require chip type as a parameter to rtwn_attach(). ok mpi@
2016-03-21Plug a memory leak in vnet(4) ioctl code path.Stefan Sperling
ok kettenis@
2016-03-20" the the " -> " the ", or in a couple of cases replace the superfluousKenneth R Westerback
"the" with the obviously intended word. Started with a "the the" spotted by Mihal Mazurek.
2016-03-20Update the axen driver to initialize the hardware on reset. Change was ↵Brandon Mercer
suggested by Takahiro Hayashi. Also lock the mii before performing the write, based on changes in NetBSD. While in there, remove the decaying eeprom code that has been commented out. This allows my adapter to attach reliably, pass traffic, and has not panic'd my machine when I unplug it. Test feedback and OK stsp@, and OK mpi@
2016-03-20Update ticks in hardclock().Masao Uebayashi
OK mikeb@
2016-03-20Revert, missing decl for in6_pcbaddrisavail() breaks kernel build.Jeremie Courreges-Anglas
Spotted by deraadt@
2016-03-19Extract in6_pcbaddrisavail() from in6_pcbbind(), and use it whenVincent Gross
checking for source availability in udp6_output(). Ok jca@ bluhm@
2016-03-19Attach dwctwo(4) only on Octeon models that have a DWC2 controller.Visa Hankala
OK uebayasi@
2016-03-19Do not run into sdgetdisklabel() when scsi disk is dying. AddAlexander Bluhm
special error handling in sdopen() as temporary hack. OK krw@
2016-03-19Remove the unused flags argument from VOP_UNLOCK().natano
torture tested on amd64, i386 and macppc ok beck mpi stefan "the change looks right" deraadt
2016-03-19Reduces the noise around the global ``ticks'' variable by renaming allMartin Pieuchot
local ones to ``nticks''. (missed in previous) ok stefan@, deraadt@
2016-03-19Reduces the noise around the global ``ticks'' variable by renamingMartin Pieuchot
all the local ones to ``nticks''. ok stefan@, deraadt@
2016-03-19Remove support for the XScale 80200. We don't use it, it didn't compilePatrick Wildt
and the included headers didn't even exist. ok jsg@
2016-03-19Remove support for IXP425. This is another architecture that is notPatrick Wildt
used and has probably never been used at all. Some included headers do not even exist. ok jsg@
2016-03-19Remove support for StrongARM (SA1) and IXP12x0. Both are ARMv4 andPatrick Wildt
are not used by any of the arm platforms. ok jsg@
2016-03-18After sleeping and before accessing sc_link, check that scsi diskAlexander Bluhm
is not dying. OK krw@
2016-03-18IXP425 is v5 not v4. Same change by msaitoh in NetBSD rev 1.16.Jonathan Gray
2016-03-18Remove support for ARM9T (armv4t). Not used by any of the arm platforms.Jonathan Gray
From Patrick Wildt.
2016-03-18Remove support for ARM8, an old armv4 processor without thumb that wasJonathan Gray
never supported by any arm port and wouldn't have built due to a missing cpufunc_asm_arm8.S file. From Patrick Wildt.
2016-03-18add octuctl, a driver for the Octeon II usb controller interface, andJonathan Matthew
attachments for ehci and ohci. ok uebayasi@ jasper@ visa@ mpi@
2016-03-18refactor the vlan multicast list handling.David Gwynne
the previous code had vlan_ether_purgemulti and vlan_ether_resetmulti, both of which did too many things. purgemulti would try and remove the multicast entries from the parent, and then free the local copies of the addresses. resetmulti would try to remove the address from the parent, and then optionally try to add them to a new parent. resetmulti in particular makes the overall vlan config steps fairly twisty. the refactor offers vlan_multi_apply, and vlan_multi_free. multi_apply simply adds or removes the multicast addresses from a parent interface. it is now up to the config steps to call them appropriately when configuring a parent or a new parent. vlan_multi_free only deletes the memory associated with the vlans multicast addresses. vlan_multi_apply is called when a parent is configured (ie, ifconfig vlan0 up), or unconfigured (ifconfig vlan0 down or a detach of the parent). vlan_multi_free is called when a vlan interface is destroyed (ifconfig vlan0 destroy). ok mpi@
2016-03-17'miliseconds' -> 'milliseconds' in comments.Kenneth R Westerback
if_atu.c noted by Michal Mazurek.
2016-03-17add TXIC TX382B entry.SASANO Takayoshi
currtently TX/RX FIFO is not working. ok by detraadt@
2016-03-17regenSASANO Takayoshi
2016-03-17add TXIC TX382B (vendor 0x4651: product 0x3273)SASANO Takayoshi
ok deraadt@
2016-03-17Set mnt_data to NULL after freeing the file system specific mount point.Alexander Bluhm
OK krw@ natano@ as part of a larger diff
2016-03-17Do not access the scsi link structure in sdclose() if the diskAlexander Bluhm
device is already dying. Delete the sc_timeout when setting the SDF_DYING flag as the timeout delete in sdclose() may not be reached. OK krw@
2016-03-17Do not iterate all over the tree if OF_parent() is called on the rootMartin Pieuchot
node. The root is the root, it has no parent. From Patrick Wildt.
2016-03-17Replace curcpu_is_idle() by cpu_is_idle() and use it instead of rollingMartin Pieuchot
our own. From Michal Mazurek, ok mmcc@
2016-03-17Fix a comment about ``p_usrpri'', from Michal Mazurek.Martin Pieuchot