summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2014-08-27Nuke net.inet6.icmp6.rediraccept and allow redirects on interfacesFlorian Obser
with autoconf enabled. If one is doing SLAAC one does already trust link local icmp6 so the policy for icmp6 redirects should be the same. pointed out by & OK bluhm@; OK henning@
2014-08-27rxr ioctl handling.David Gwynne
2014-08-27Remove redundant setting of if_mtu which ether_ifattach() alreadyBrad Smith
takes care of. ok dlg@
2014-08-27deprecate the "item offset" handling. nothing uses it, so we canDavid Gwynne
cut it out of the code to simplify things. ok mikeb@
2014-08-26dont base the mru on the mtu. unconditionally make it what theDavid Gwynne
hardware can do (9k). implement the rxr ioctl while here. ok jsg@
2014-08-26Do not hand-roll all routers link local address.Florian Obser
pointed out & OK bluhm@
2014-08-26Revert the addition of broadcast addresses, it apparently also corruptsMartin Pieuchot
the tree. Found by millert@.
2014-08-26Revert part of the if_rxr diff that incorrectly moves RX ring tailMike Belopuhov
index update code from the buf_get success path to the do it all the time code path. Tested by millert; ok dlg, deraadt
2014-08-25We have never limited the definition of "supported SPF modules"Mike Belopuhov
to the vendor/make whitelist maintained by Intel so there's no reason to start doing it now. When syncing the driver to the FreeBSD codebase I have decided to take this chunk as is but it appears that it breaks cheap chinese SFP+ fiber optics modules that we all love. And while there's still a lot of places where we check for the vendor OUI, most of these checks are not necessary. Issue reported and fix tested by Tony Sarendal. Thanks!
2014-08-25Move sending of router solicitations to the kernel; receiving andFlorian Obser
processing of router advertisements was already in the kernel. With this rtsol{,d}(8) is no longer necessary. The kernel starts sending solicitations with # ifconfig $IF inet6 autoconf or inet6 autoconf in /etc/hostname.$IF. input stsp@ much help & OK mpi@ tweaks & OK bluhm@
2014-08-24socketvar.h instead of socket.h, oopsTheo de Raadt
2014-08-24Fix wrong IEEE 802.11 ioctl's:Vadim Zhukov
* SIOCG80211ALLNODES operates on struct ieee80211_nodereq_all, not struct ieee80211_nodereq. * Six SIOC* from wi(4) were using same codes with generic parts of IEEE 802.11 framework. Things worked due to the fact that size of data struct being passed is encoded in actual SIOC*, too. This commit means that ifconfig and some ports will need to be rebuilt, if any of affected SIOC* codes is used. Port bumps to follow. First part okay reyk@, whole diff okay mpi@ Heavy prodding to commit now from deraadt@
2014-08-24remove trailing whitespaceStefan Fritsch
2014-08-24Add some TX BD flags for BCM5717 family chips.Brad Smith
2014-08-23Move splnet() in in_ifinit() to protect less code that does notAlexander Bluhm
need it. OK mpi@
2014-08-23oddly now needs sys/socket.h, because someone removed struct socket fwdTheo de Raadt
decl definition from somewhere in .h. This appears to be the only fallout in the kernel.
2014-08-22POSIX/FreeBSD/NetBSD/Linux/etc agree -- blk[size|cnt]_t is the bomb.Kenneth R Westerback
So add the types blksize_t (a.k.a. int32_t) and blkcnt_t (a.k.a. int64_t). Use blkcnt_t in stat.h since the base type (int64_t) does not change. blksize_t in stat.h will follow after the tree is audited for signed issues, since the base type will change from u_int32_t to a POSIX compliant int32_t. Guidance and feedback from guenther@ ok millert@
2014-08-22pseudo-device crypto was accidentally left for some architectures.Theo de Raadt
2014-08-21Set the sensor's status when docking and undocking, not just its value.kspillner
With this change sensorsd(8) now correctly detects state changes when docking and undocking. ok mlarkin@
2014-08-21Now that DVACT_DEACTIVATE is propagated to the children of a device whenMartin Pieuchot
a driver does not implement a specific *_activate() handler and that our USB stack sets the dying flag before detaching a device, these specific handlers can die.
2014-08-21Fix a copy and pasto with the standard ring setup with calling if_rxr_init()Brad Smith
to use BGE_STD_RX_RING_CNT instead of BGE_JUMBO_RX_RING_CNT. ok dlg@
2014-08-21Kill the remaining <netinet/in_systm.h> inclusion!Martin Pieuchot
2014-08-21Misleading comments about splnet().Martin Pieuchot
2014-08-21If an ifa has as NULL ifp pointer then is should be considered asMartin Pieuchot
invalid. When such thing happens, it means that the address is no longer configured on the system but still referenced by some routes. So do not return such ifa in ifa_ifwithroute(). Fix a panic reported by Pierre Bardou. ok mikeb@, henning@
2014-08-20after allocating an mbuf and cluster you still need to init the lengthDavid Gwynne
fields. found by steven roberts, who also tested this fix for me
2014-08-20Implement rxrinfo ioctl for cluster usage statisticsMike Belopuhov
2014-08-20Call audio_{pint,rint}() call-backs with the mutex held. Found byAlexandre Ratchov
Izumi Tsutsui, thanks! ok miod@
2014-08-20Bye bye /dev/cryptoMike Belopuhov
The interface has been disabled by default for about 4 years and currently there's not much value in having it around at all. ok deraadt
2014-08-20Bye bye /dev/cryptoMike Belopuhov
The interface has been disabled by default for about 4 years and currently there's not much value in having it around at all. ok deraadt
2014-08-20unlink crypto(4) pseudo device from the architecture dependant characterMike Belopuhov
device tables and kernel config files. ok deraadt
2014-08-20Release CPU mutexes on EINVAL.doug
ok guenther@
2014-08-20brad said i had some whitespace screwups in my previous diff. this cleansDavid Gwynne
them up and the others i found in this file. no functional change.
2014-08-20remove the custom jumbo allocator. its never been enabled or used.David Gwynne
putting this into the tree to make it easier to test.
2014-08-20replace the custom jumbo allocator with MCLGETI.David Gwynne
putting this in the tree to make it easier for people to test.
2014-08-20replace the custom jumbo allocator with MCLGETI.David Gwynne
putting this in the tree to make it easier for people to test.
2014-08-20replace sks jumbo allocator with MCLGETI. the system provides jumbos inDavid Gwynne
the right shape now, we dont have to do it by hand all over the place any more. rework the rxr ring management to use if_rxring while here. largely based on if_sk.c r1.152 and if_skvar.h r1.4 by kettenis. tested by me on: skc0 at pci3 dev 11 function 0 "Schneider & Koch SK-98xx" rev 0x12, GEnesis (0x0): apic 3 int 5 sk0 at skc0 port A: address 00:00:5a:99:8a:ec xmphy0 at sk0 phy 0: XMAC II Gigabit PHY, rev. 2 and this from ian mcwilliam skc0 at pci0 dev 9 function 0 "D-Link DGE-530T B1" rev 0x11, Yukon Lite (0x9): apic 2 int 17 sk0 at skc0 port A: address 00:17:9a:ba:b5:39 eephy0 at sk0 phy 0: 88E1011 Gigabit PHY, rev. 5 tested by brad@ too
2014-08-20bring back r1.130:David Gwynne
add an explicit rwlock around the global state (the pool list and serial number) rather than rely on implicit process exclusion, splhigh and splvm. the only things touching the global state come from process context so we can get away with an rwlock instead of a mutex. thankfully. ok matthew@
2014-08-19More PIC programming magic, as well as a specific workaround for lostMiod Vallat
interrupts in PIC rev 1; from IRIX via Linux 2.5.69. This doesn't fix the lost SCSI interrupts jasper@ eventually experiences on Origin 350 systems, but this can't hurt anyway.
2014-08-19Set Eng. GFE has a 32-bit ID register, so put it in the 32-bit section.Miod Vallat
No change but ordering in the generated files, so I won't even bother to regen them - this is only a `documentation' change.
2014-08-19yet another typoMiod Vallat
2014-08-19Enable rts5227, as found in my new Thinkpad x240.Peter Hessler
Shuffle the code around slightly, so we special case the 5209 chipset instead of semi-randomly. Tested on rts5227 by me, and rts5209 by stsp@ OK stsp@
2014-08-19Three independent typos for `independent' or `independently'.Miod Vallat
2014-08-19When a local route entry is added for an ifa having a broadcast address,Martin Pieuchot
also adds a broadcast entry flagged with RTF_BROADCAST. Prior to this change broadcast entries were simple clonned ARP entries, that would be deleted once their timer expired since they would always be incomplete. With this change they are now persistant and identifiable with a new flag. Committing early to be able to deal with any potential fallout before we start relying on this. ok florian@, mikeb@, henning@
2014-08-19Keep pim code under #ifdef PIM to be coherent with what's in netinet/.Martin Pieuchot
2014-08-19Make sure state changes are properly serialized.Martin Pieuchot
When pms(4) is attached to a touchpad it generally presents two different wsmouse(4) devices: one for the touchpad itself and one for the clitpad and/or some interleaved packets. But since both devices are writing to the same pckbc slot, a race can occur if they try to change the state at the same time. So prevent two process opening the two /dev/wsmouse* node at the same time to corrupt the magic sequences needed to enable/disable the touchpad. ok schadchin@
2014-08-19in myx_start, replaceDavid Gwynne
while (space) { IFQ_POLL; myx_dequeue(free descr); IFQ_DEQUEUE; etc; } with while (space && myx_dequeue(free descr)) { IFQ_DEQUEUE; etc; }
2014-08-19pppx(4): Correct pppx_dev_lookup() and pppx_dev2pxd() local declarationsMasao Uebayashi
Those two functions take one dev_t argument, not int. Match declarations with reality. No functional changes.
2014-08-18Explicitely need <sys/pool.h> now.Miod Vallat
2014-08-18Sigh, ignoring instruction fetch bus errors for the kernel code should notMiod Vallat
depend upon the address being at the beginning of a cache line, for we may arrive in the middle of a line thanks to a branch. Noticed the hard way...
2014-08-18pool debug back onTed Unangst