summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2015-12-08+TAILQ_HEAD(task_list, task);David Gwynne
2015-12-08vlan doenst have to handle SIOCGIFADDR cos the stack does it.David Gwynne
ok mpi@
2015-12-08Kill unused iftxlist.Martin Pieuchot
ok dlg@
2015-12-08if_stop is unused, so kill it.David Gwynne
ok mpi@
2015-12-08split the interface send queue (struct ifqueue) implementation out.David Gwynne
the intention is to make it more clear what belongs to a transmit queue and what belongs to an interface. suggested by and ok mpi@
2015-12-08Match 3rd party Xbox 360 controllers, from Christian Heckendorf.Martin Pieuchot
Tested by jeremy@
2015-12-08dont need to repeatedly set if_start to the same function.David Gwynne
2015-12-07Add cpuid bits documented in the August 2015 revision ofJonathan Gray
"Intel Architecture Instruction Set Extensions Programming Reference"
2015-12-07enable snooping on Intel 100 Series HDAJonathan Gray
from and tested by daniel@
2015-12-07match on intel 100 seriesJonathan Gray
from and tested by daniel@
2015-12-07NFS can pass a buffer cache buffer straight to VOP_STRATEGY here, so dma_flip isBob Beck
needed. Found by henning@ - thanks! ok deraadt@
2015-12-06Only declare buf_daemon() oncePhilip Guenther
2015-12-06child_return() is already declared in <sys/proc.h>Philip Guenther
2015-12-06add function prototypeMike Larkin
2015-12-06move around some deck chairs in preparation for supporting VM reboot. thisMike Larkin
diff moves the cpu register init code into its own function which will soon be called from vmd to reset processor state. no functional change with this diff.
2015-12-06Don't bother printing out the count of what type of cpu we have. InsteadMike Larkin
just print the feature being used (eg, VMX/EPT). suggested by and ok deraadt@
2015-12-06don't allow opening of /dev/vmm if we are in an unsupported configurationMike Larkin
or if vmm0 didn't attach, prevents later panics if we try to use vmm in such a state. reported by many on tech/misc
2015-12-06Change kernel internal pledge variables to 64bit (to prepare for moreTheo de Raadt
extensions). This change is exposed in ktrace.out files ok semarie
2015-12-06switch on the return value of bus_dmamap_load_mbuf not value != 0Jonathan Gray
problem in rev 1.47 spotted by clang's -Wswitch-bool ok jmatthew@ kettenis@
2015-12-06Since the page zeroing thread runs without the kernel lock,Bret Lambert
it relies upon the fpageq lock for data consistency and sleep/wakeup interlocking. Therefore, code which modifies page zeroing thread data or performs a wakeup of the thread must also hold the fpageq lock. Fix an instance where this was not the case. ok kettenis@ diff --git a/sys/uvm/uvm_pmemrange.c b/sys/uvm/uvm_pmemrange.c
2015-12-06g/c pf_change_a6(). it's exactly the same thing as pf_change_ap() with p =Henning Brauer
NULL. inspired by Richard Procter <richard.n.procter@gmail.com>'s mail on tech from Aug 17, but redone. ok sashan vgross
2015-12-06unbreak kernel link if vmm isnt being built as part of the kernel.David Gwynne
2015-12-06typo in log entrymmcc
2015-12-06restore VMM mode after resume from suspend/hibernateMike Larkin
2015-12-05Multiple cleanups.Martin Pieuchot
ok goda@, yasuoka@
2015-12-05g/c unneeded af (address family) params to pf_change_ap and _icmpHenning Brauer
both af and naf (af-to case) are in the pf_pdesc some code shuffling to actually set these before calling pf_change_ap/_icmp inspired by Richard Procter <richard.n.procter@gmail.com>'s mail on tech from Aug 17, but redone ok bluhm vgross
2015-12-05Make sure we use the same cpu numbering for the kern.cptime2 sysctl as weMark Kettenis
do for kern.proc. Fixes the issue in top(1) where a cpu would seem to be idle even though a thread was reported to be running on it. ok mpi@, tedu@, deraadt@
2015-12-05vioblk: Don't send flush ops if flush feature not presentStefan Fritsch
If we haven't negotiated the flush feature, don't send VIRTIO_BLK_T_FLUSH to the device. noticed by mlarkin@
2015-12-05make vioblk_scsi_cmd more normalStefan Fritsch
Declare all variables at the start of the function and get rid of the strangely-indented block around the second half of the function.
2015-12-05Make virtio_enqueue_commit return voidStefan Fritsch
The return value was unused
2015-12-05Study of kernel code complete. Permit ioctl SIOCGIFMEDIA for pledgeTheo de Raadt
"route", which krw and mestre will be able to use in dhclient(8).
2015-12-05avoid an ugly wrap in a commentTheo de Raadt
2015-12-05Keep kernel definitions under _KERNEL to unbreak security/wpa_supplicantMartin Pieuchot
because of a missing forward declaration for kernel functions. ok stsp@
2015-12-05Keep kernel definitions under _KERNEL to unbreak ports that includeMartin Pieuchot
<net/if_var.h> because some other operating systems have defines in there. ok jasper@
2015-12-05Make the bnx interrupt handler mpsafe, and perform rx and tx completionJonathan Matthew
outside the kernel lock. Remove tx descriptor lists (essentially backing out if_bnx.c r1.77), add an interrupt barrier in bnx_stop, check the rx ring state before receiving packets, adjust the tx counter with atomic operations, and rework bnx_start to check for ring space before dequeueing and drop the packet if bnx_encap fails. tested on BCM5708 by me and on BCM5709 by Hrvoje Popovski ok dlg@
2015-12-05Make pppx pass packets with npppd through the device. This makes pppx workYASUOKA Masahiko
without pipex.enable=1. Also fix tun(4) not to pass the packets to pipex when pipex.enable=0. "go for it" dlg
2015-12-05pass a pointer to pf_test()'s reason to pf_test_rule instead of using aHenning Brauer
local one. While we always intended to keep the logging in pf_test_rule and pf_test so seperate that we don't end up with a wrong reason, this is just too fragile and I can't even convince myself that it still is right. pointed out by markus, ok bluhm benno
2015-12-05Remove useless "if() else", multicast and unicast v6 route lookups areVincent Gross
actually the same. This has been introduced in r1.7 to prevent RTM_MISS storms, but we don't send this message anymore. ok @mpi
2015-12-05Avoid using ifq_deq_rollback().Mark Kettenis
2015-12-05ifq_deq_rollback without a preceding ifq_deq_begin is fail.David Gwynne
caused by a badly managed merge. found by and testing by sebastia@ ok mpi@
2015-12-05upgrade tcp/ip to use the latest in C89 technology: memcpy.Ted Unangst
ok henning
2015-12-05AMD Family 12h and later processors keep their APIC clock running in deeperMark Kettenis
C-states. Set the TMP_ARAT flag for these (which is Intel-specific) such that acpicpu(4) enables the deeper C-states on these CPUs. ok deraadt@
2015-12-05remove stale lint annotationsTed Unangst
2015-12-05remove old lint annotationsTed Unangst
2015-12-04allow utrace(2) by default.Theo de Raadt
conversation with jsg
2015-12-04Activate functions should in general return 0 for events they don't handle.Mark Kettenis
ok deraadt@
2015-12-04Add intr_barrier() just in case...Mark Kettenis
2015-12-04Reduce the stride length of the tables by two and use a single pageMartin Pieuchot
allocator for the 4K heap. In this configuration a fullfeed BGP server for v4 and v6 consumes 10M more than with the radix tree. This double the depth of the tree and makes the lookup slower. But the ratio speed/memory can be adjusted in the future, for now we are interested in a lock-free route lookup. Tested by and ok benno@
2015-12-04Move the KERNEL_LOCK from rt_match() to rtable_match().Martin Pieuchot
ok claudio@
2015-12-04remove PLEDGE_INET granting when using "getpw" in YP environnmentSebastien Marie
it makes PLEDGE_YPACTIVE enough for doing required networking with YP. It should permit to bring YP internals into the light. discuted with deraadt@