summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2008-10-20Enable the Gig master mode status display.Brad Smith
2008-10-19Re-add support for RX VLAN tag stripping.Brad Smith
2008-10-19Re-add support for RX VLAN tag stripping.Brad Smith
2008-10-19Shuffle MULTIPROCESSOR ifdef's around to allow code that deals withBrad Smith
the CPU roles to compile on !MULTIPROCESSOR kernels and make the top part of cpu_attach() which deals with processor setup depending on the CPU role look much closer to the equivalent code for amd64. ok kettenis@
2008-10-19Re-add support TX VLAN tag insertion and RX VLAN tag stripping.Brad Smith
Tested by naddy@
2008-10-19Re-add support for RX VLAN tag stripping.Brad Smith
Tested by naddy@
2008-10-18Prevent the user to assign reserved labels to mpe(4) interfaces.Michele Marchetto
OK claudio@
2008-10-18Revert the change to use pools for <= PAGE_SIZE allocations. ItMark Kettenis
changes the pressure on the uvm system, uncovering several bugs. Some of those bugs result in provable deadlocks. We'll have to reconsider integrating this diff again after fixing those bugs. ok art@
2008-10-17reorder mbuf flags so they are in numerical order again. brad@ concursClaudio Jeker
2008-10-17Remove clauses 3 and 4 from NetBSD license.Okan Demirmen
from ray; ok ray, deraadt
2008-10-17Handle pool allocation failures slightly better. ok kettenis@Dale Rahn
2008-10-17Fix permissions on the DRM_I915_HWS_ADDR ioctl, should be master only.Owain Ainsworth
Pointed out by Olaf Kirch, this has been in snaps for two weeks, no problems. ok millert@, deraadt@
2008-10-16Switch the existing TX VLAN hardware support over to having theChristian Weisgerber
tag in the header. Convert TX tagging in the drivers. Help and ok brad@
2008-10-16Add S/PDIF support. From NetBSD.Jacob Meuser
Clean up a little while here. from Alexey Suslikov, thanks tested by several as part of a larger diff, thanks also
2008-10-16Convert RX tag stripping to storing the tag in the mbuf header andChristian Weisgerber
enable RX tag stripping for re(4). ok brad@
2008-10-16* Allow ether_input() and vlan_input() to handle incoming packetsChristian Weisgerber
where the tag is stored in the mbuf header. * Make bridge(4) handle interfaces with and without hardware tag support and forward packets inbetween. Help and ok claudio@
2008-10-16Kill M_HASFCS, it is not used in OpenBSD. If a ethernet chip returns theClaudio Jeker
checksum in the packet it should be trimmed away by the driver and not by driver independent code. OK brad@
2008-10-16Drop promiscuously received packets if the vlan interface is not inChristian Weisgerber
promiscuous mode itself. Closes PR 5012. With claudio@. ok claudio@, henning@
2008-10-16Make the session id unique per receiving interface so that pppoeCan Erkin Acar
interfaces attached to different networks can use the same session id. reported by gm_sjo <saqmaster at gmail dot com>
2008-10-16Don't hide the fact that NFS uses vop_generic_* functions behindBret Lambert
#define's in nfs_var.h ok thib@
2008-10-16Add ICH10.Brad Smith
2008-10-16Some pins are not connected and dead-end. This diff removes such pinsJacob Meuser
from conection and mixer lists. It also removes knobs connected to power widgets. from NetBSD via Alexey Suslikov, thanks tested by several, thanks also
2008-10-16regenBrad Smith
2008-10-16Correct the existing Intel E4500 entries so they're properly named E5400Brad Smith
and add some missing entries for the E5400 chipset.
2008-10-15make random(9) return per-cpu values (by saving the seed in the cpuinfo),Theo de Raadt
which are uniform for the profclock on each cpu in a SMP system (but using a different seed for each cpu). on all cpus, avoid seeding with a value out of the [0, 2^31-1] range (since that is not stable) ok kettenis drahn
2008-10-15Fix list_for_each_safe compat marco. It currently skips the last entry.Owain Ainsworth
From Robert Noland at FreeBSD.
2008-10-15Second pass of simple timeout_add -> timeout_add_sec conversionsBret Lambert
This should take care of the simpler ones (i.e., timeout values of integer multiples of hz). ok krw@, art@
2008-10-15inteldrm and radeondrm are pretty stable by this point, so enable them on amd64Owain Ainsworth
and i386. deraadt got sick of me wussing out over this.
2008-10-15kernel/5592: yield() between copying out large chunks of random data toDamien Miller
userspace - mitigates an effective DoS since generating these can hog the CPU at splhigh() feedback & ok tedu@ deraadt@
2008-10-14Now mpls_input() handles ipv4 and ipv6 explicit null labels.Michele Marchetto
Added mpe_input6 to manage also ipv6 packets insted of just ipv4 ones. OK claudio@ laurent@
2008-10-14Back-in; problems were apparently elsewhere.Philip Guenthe
Put a reference count in struct process to prevent use-after-free if the main thread reaches the reaper ahead of some other thread in the process. Use the reference count to update the user process count correctly when changin real uid. "please re-commit before something else nasty comes in" deraadt@
2008-10-14Change m_devget()'s outdated and unused "offset" argument: It isChristian Weisgerber
now the offset into the first mbuf of the target chain before copying the source data over. From FreeBSD. Convert drivers' use of m_devget(). Mostly from thib@. Update mbuf(9) man page. ok claudio@, thib@
2008-10-14remove C99/C++ style commentsJonathan Gray
2008-10-14Don't be so pessimistic about the prospects of getting aJonathan Gray
valid MAC address. Pyun YongHyeon seems to have taken code for generating an address when something looks invalid from other drivers in FreeBSD, there are no known problems with getting valid addresses for jme, so remove this. Additionally it isn't appropriate to call arc4random() at that point in the boot process so the code needs to go.
2008-10-13Almost complete rewrite of iwn(4).Damien Bergamini
Add support for Intel WiFi Link 5000 Series adapters (5100/5150/5300/5350). Quite frankly, Intel made things unnecessarily difficult by gratuitously changing firmware commands (adding new fields in the middle of a struct) and some register offsets for the 5000 Series and by defining yet another way of loading a firmware. I had to write a hardware abstraction layer to manage those differences. Committed over a 5300 adapter (3T3R). Require an upgrade of the iwn-firmware package, even for 4965AGN users. Not tested on 5100, 5150 and 5350 (test reports are more than welcomed.) There should be no regression on the 4965AGN.
2008-10-13disable the pcb linking for udp for the moment since there is some weirdHenning Brauer
bug with IPv6 in some circumstances. we'll find it one day... lots of debugging dhill
2008-10-12Some more cleanup. No binary change.Marco Pfatschbacher
OK reyk@
2008-10-12Reduce diff to macppc version.Mark Kettenis
2008-10-12Adjust for redesigned powerpc interrupt architecture.Mark Kettenis
2008-10-12if converters in a group are not needed to satisfy the requirementsJacob Meuser
of a stream, direct the unneeded converters use HDA link stream #0 from NetBSD via Alexey Suslikov, thanks tested by several, thanks also
2008-10-12add azalia_codec_disconnect_stream(), a function to direct allJacob Meuser
converters in a group to use HDA link stream #0. use it when halting playback/recording. from NetBSD via Alexey Suslikov, thanks tested by several, thanks also
2008-10-12Make vcons(4) interrupt driven.Mark Kettenis
2008-10-12Add interrupt support.Mark Kettenis
2008-10-12If re_attach() fails at any point make sure to disestablish variousBrad Smith
resources setup by the bus front ends, especially the shutdown hook. Found while testing some other changes with a CardBus adapter and re_attach() was failing early before the interface pointer was assigned. Then the system was rebooted, the shutdown hook was called and *boom* in re_stop().
2008-10-11Use hardware timer to simulate interrupt moderation. Old devices will noBrad Smith
longer be livelocked when they are receiving on GigE line. Newer devices also gain well controlled interrupt rate. If hardware supports interrupt moderation (e.g. 8168B, 8168C), you could also use hardware based interrupt moderation, however, due to lack of necessary information it does not work as reliably as simulated interrupt moderation. It is _not_ recommended currently. By default, PCIe devices' simulated interrupt moderation timer is set to 75us, while PCI devices' is set to 125us. From sephe@DragonFly
2008-10-11Make sure no two pppoe devices share the same sc_unique identifier. WhileMiod Vallat
there, fix some typos, and pass M_CANFAIL to all malloc() calls which use M_WAITOK but are tested for failure. test&ok brad@
2008-10-11Fix various printf constructs either missing arguments or format specifiers.Miod Vallat
2008-10-11Since malloc_page_alloc() is a pool allocator it should check for PR_WAITOKMark Kettenis
instead of M_NOWAIT. Checking for M_NOWAIT made many malloc calls that used that flag actually wait. This probably explains many if the strange hangs people have seen recently. ok miod@
2008-10-11For none interrupt endpoints call the xfer done function beforeMarcus Glocker
calling the xfer callback function to allow a device driver to immediately reschedule the same xfer. This e.g. improves performance for isoc high- fullspeed xfers (ehci). From NetBSD. OK phessler@
2008-10-10Enable PCIe snooping on the remaining ATI/NVIDIA chipsets.Brad Smith
Fixes clicking and other noise related issues. ok ratchov@