summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2015-12-01Use rt_ifa_add(9) instead or rtrequest(9) when adding ND prefixes.Martin Pieuchot
While here pick the corresponding ``ifa'' to attach the route instead of the one corresponding to the link-local address on the same interface. ok bluhm@
2015-12-01Kill redundant or unused arguments in rtredirect().Martin Pieuchot
ok bluhm@
2015-12-01Teach ppb(4) how to allocate PCI bus numbers such that it can properlyMark Kettenis
condigure bridges left unconfigured by the system firmware. Not perfect yet, but good enough to make the Apple Thunderbolt Giabit Ethernet adapter work when inserted at boot time. ok deraadt@
2015-12-01Enable the GSE interrupt on Broadwell. Fixes acpi brightness control onMark Kettenis
the MacBookPro12,1, 3rd gen Lenovo X1 Carbon (when hacked to use the standard acpi mechanism for this purpose) and probably many others. Seems this hasn't been figured out over in Linux land yet.
2015-12-01Change a lot of "else if" lines to single switch block.YASUOKA Masahiko
input by tobias
2015-12-01Split functions in if_bridge.c into if_bridge.c bridgectl.c .Kazuya Goda
Splitting functions in if_bridge.c into if_bridge.c for the forwarding part and bridgectl.c for the control part. It shouldn't have any functional change. ok reyk@ mpi@ yasuoka@
2015-12-01Iterating on &ifnet should only be done with the KERNEL_LOCK held.Vincent Gross
With input and ok mpi@.
2015-12-01solbourne went awayTheo de Raadt
2015-12-01Fix bridge to forward broadcast/multicast frames from gif.Kazuya Goda
ok reyk@ mpi@ yasuoka@
2015-12-01myx doesnt use atomic.h anymore.David Gwynne
2015-12-01Remove backward compatibility for "older version of routed and gated".Martin Pieuchot
ok millert@, bluhm@
2015-12-01Pass M_NOWAIT when allocating a temporary page in vm_writepage() to beMartin Pieuchot
coherent with the rest of the allocations. While here report the correct errno if an allocation fails. ok mlarkin@
2015-12-01Instead of using a supplementary variable to check if we found a VCPUMartin Pieuchot
or a VM in an iteration, check against NULL. ok mlarkin@
2015-12-01Do not wait when allocating a page in vcpu_init().Martin Pieuchot
Should help with the possible hang when trying to create a VM when the host is out of memory. It also improves coherency as all the allocations in vmm(4) are done without sleeping. ok mlarkin@
2015-12-01KNFMartin Pieuchot
ok mlarkin@
2015-12-01Prettify dmesg output.Martin Pieuchot
ok reyk@, mlarkin@
2015-12-01Properly disable SVM until its support is added back.Martin Pieuchot
Should prevent a NULL dereference when initializing VM. ok mlarkin@
2015-12-01Remove "just for safety" over engineering checks.Martin Pieuchot
ifa->ifa_addr must not be NULL when an ifa is on a per-interface list of addresses. ok bluhm@, sthen@, benno@, millert@
2015-12-01crunks of AvvionTheo de Raadt
2015-12-01Send solbourne to where the ...........Theo de Raadt
2015-12-01Send Aviion to same place as Nova IITheo de Raadt
discussed with jsg
2006-05-09Oops, correct import this time.Miod Vallat
2006-05-09Oops, correct import this time.Miod Vallat
2006-05-08Oops, correct import this time.Miod Vallat
2006-04-27Oops, correct import this time.Miod Vallat
2006-04-18Oops, correct import this time.Miod Vallat
2015-12-01typo in commentmmcc
2015-11-30Add support for the touchpad found on the MacBooPro12,1.Mark Kettenis
ok jcs@
2015-11-29Make it possible to detach bge(4).Mark Kettenis
ok deraadt@
2015-11-29Unconnected xhci(4) super speed ports may come up with the XHCI_PS_WRC,Mark Kettenis
indicating a warm reset has happened. Communicate this as UPS_C_BH_PORT_RESET to the upper layers and make uhub(4) clear this bit such that we receive further connection status change notifications. Make sure we only do this for super speed (USB 3.0) hubs as high speed (USB 2.0) hubs use the same bit for UPS_C_PORT_L1. Make hotplugging USB 3.0 devices work on my MacBookPro12,1. ok mpi@
2015-11-29Clear the UPS_C_PORT_RESET feature when exploring. Apparently xhci(4) superMark Kettenis
speed ports may have the XHCI_PS_PRC bit set after xhci(4) attaches. Just clearing this bit isn't enough though, since the device is already connected and no further connection status change is signalled. So fake one. This makes the integrated SD card reader in the MacBookPro12,1 attach. ok mpi@
2015-11-29Convert the simple list of multipath route entries used by ART kernelsMartin Pieuchot
to a SRP list. This turns the rtable_* layer mpsafe. We now only need to protect the ART implementation itself. Note that route(8) regress tests will now fail due to a supplementary reference taken by the SRPL_INIT(9) API. ok dlg@
2015-11-29Disk size in blocks is LastBlock+1. Fix whitespace nit.Kenneth R Westerback
ok yasuoka@
2015-11-29Use if_get() rather than dereferencing rt_ifp in ip6_getpmtu().Martin Pieuchot
While here fix a NULL dereference introduced by the support for multiple rdomains. It seems that this code path is never run... With input from David Hill, ok florian@
2015-11-29Fix an hypotetical NULL dereference which might become true once the TCPMartin Pieuchot
layer will be turned mpsafe. We're not there yet. Reported by David Hill, ok florian@
2015-11-29On a SMALL_KERNEL, pledge "pf" has to be a no-op. We cannot matchTheo de Raadt
the device node (since it does not exist...)
2015-11-29Add pledge "pf" which allows ioctls on pf(4). This will be used bySebastian Benoit
relayd and other programs manipulating the packet filter. ok deraadt@
2015-11-28rework dc_start and dc_encap to take advantage of m_defrag.David Gwynne
if the chip needs coalesced packages in tx, set the tx dmamaps up to only use a single dma descriptor. use m_defrag when bus_dmamap_load_mbuf returns EFBIG rather than copying the packet to a separate mbuf with hand rolled code in dc_coal. that in turn makes the ifq_deq_begin, ifq_deq_commit, and ifq_deq_rollback handling more straightforward. tested by me on a hppa a180c with a "DEC 21142/3", and fred on bugs@ with a sparc64 netra x1 "Davicom DM9102".
2015-11-28Use the same function as kern/subr_disk.c and fdisk/mbr.c to checkKenneth R Westerback
for a GPT protective MBR. Better than mangling findopenbsd() to do the check. Tested & ok yasuoka@
2015-11-28move buffer size adjustment to buf_adjcnt - from Walter NetoBob Beck
ok mpi@
2015-11-28Convert pppoe(4) to use if_get()/if_put(): instead of storing aReyk Floeter
pointer to the parent "pppoedev", it now only stores an interface index. This also fixes a potential NULL pointer dereference that could happen in pppoe_find_softc_by_session() when the parent got deconfigured but the session was still active. Found the hard way with pppoe(4) on vlan7. OK mpi@, with debugging help from mikeb@
2015-11-28pledge: allow getsockopt IP_IPDEFTTL with promise inetSebastian Benoit
then relayd's host check engine can be pledged. ok reyk@, approach suggested by deraadt@ weeks ago.
2015-11-28Delete sc_root_port which became unused when RSTP is merged.YASUOKA Masahiko
ok reyk mpi
2015-11-28regenMark Kettenis
2015-11-28Add a few devices found on the MacBookPro12,1Mark Kettenis
2015-11-28Check the protective MBR stricter not to choose a broken GPT.YASUOKA Masahiko
test and ok gonzalo
2015-11-28Rework gem_start to check that there's enough space in the ring beforeJonathan Matthew
dequeueing a packet, then drop the packet if it can't be sent, rather than using two phase dequeue then commit. Adjust sc_tx_cnt using atomic operations, take the kernel lock before calling gem_start or gem_init from the interrupt handler, and use an interrupt barrier when taking the interface down. With all this done, we can mark the interrupt handler for pci (but not sbus) attached gem(4) as mpsafe. mpi@ wrote this initially, I fixed bugs to keep sparc64 happy and kept it up to date with ifq changes. ok mpi@ dlg@
2015-11-27Two additional ioctls for pledge("disklabel"), needed by installboot.Jeremie Courreges-Anglas
Committing on behalf of tb@, problem reported by Rolf Sommerhalder on misc@.
2015-11-27Keep "struct vxlan_softc" private to prevent pulling more headers whenMartin Pieuchot
<net/if_vxlan.h> is included.
2015-11-27Don't panic in pmap_enter() if we deplete the pool of pv entries and theMark Kettenis
PMAP_CANFAIL flag is set. Return ENOMEM instead.