summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2013-10-21remove GET_TIME() wrapperTheo de Raadt
2013-10-21remove dangerous #ifdef BYTE_ORDERTheo de Raadt
2013-10-21only #ifdef _KERNEL, not #ifdef KERNELTheo de Raadt
2013-10-21pf_translate: missing conditonal pf_check_proto_cksum calls beforeHenning Brauer
mucking with the icmpid. impact of the bug is quite limited, only affect icmp echo requests & reply through nat when the natting does not actually change any address. ok bluhm, found while hunting something else sthen is seeing
2013-10-21Enable IPv6 routing domain supportPeter Hessler
Started by claudio@ for IPv4, lots of heavy work by sperreault@ My part started at s2k11, continued at n2k12, g2k12, c2k12 and n2k13. Lots of help and hints from claudio and bluhm OK claudio@, bluhm@
2013-10-21Sprinkle a lot more IPv6 routing domains support in the kernel.Peter Hessler
Mostly mechanical, setting and passing the rdomain and rtable correctly. Not yet enabled. Lots of help and hints from claudio and bluhm OK claudio@, bluhm@
2013-10-21Remove unused defines inherited from mac68k.Miod Vallat
ok mpi@
2013-10-21enable support for VMware ParaVirtual SCSI via vmwpvs(4).David Gwynne
ok deraadt@
2013-10-20Make the IPv4 and IPv6 code look similar to allow easy comparison.Alexander Bluhm
While there fix some white space errors. No functional change. OK claudio@ phessler@
2013-10-20No longer store fonts added with the WSDISPLAYIO_LDFONT ioctl into theMiod Vallat
wsdisplay softc. Instead, since the knowledge about available fonts lies in the parent driver itself, introduce a list_font wsdisplay_accessop which queries a font index, suitable to use within the WSDISPLAYIO_LSFONT ioctl. With this in place: - there is no global wsdisplay limit on the number of fonts loaded. Such a limit will be enforced by the display drivers themselves. - built-in kernel fonts will now appear in the list of fonts. Grow a list_font accesop for rasops, which relies upon wsfont_enum(), which is turned into something useful (and abortable if you do not need to iterate further). Not used by any rasops driver yet.
2013-10-20Fix osiop.c inclusion rule.Miod Vallat
2013-10-20Use C99 named initializers for struct wsdisplay_accessops fields.Miod Vallat
No functional change.
2013-10-20Realmode park is causing more problems than it's solving. Remove until weMike Larkin
have a better handle on it. Add an assert in i386 MP hibernate quiesce cpu function to ensure we are running on the BSP
2013-10-20Informational message on unpack startMike Larkin
2013-10-20Add a load_font accessop to rasops, to allow for fonts to be loaded andMiod Vallat
selected. All rasops fonts are managed by wsfont, which allows a font to be loaded on a rasops device and used on another. Currently not plumbed in any driver yet. This is work in progress.
2013-10-20Deep inside DIOCXCOMMIT, should return a real errno instead of -1Theo de Raadt
ok henning pelikan
2013-10-20Rename rn_mpath_count() to rn_mpath_active_count() since it will onlyClaudio Jeker
return the number of active aka RTF_UP multipath routes. OK grep & gcc
2013-10-20Use rdev->audio_task for hdmi audio related hotplug events. Matches theMark Kettenis
equivalent Linux code a bit better and was probably what jsg@ intended in the first place. ok jsg@
2013-10-20no need to make the icmp cksum "offloading" case special insofar that theHenning Brauer
cksum needs to be 0'd before, pf does that now (just like in the tcp/udp case) and nothing else uses the icmp "offloading" yet. with & ok bluhm
2013-10-20in pf_cksum, set the icmp/icmp6 cksums to 0, for comsistency with tcp/udpHenning Brauer
with & ok bluhm
2013-10-20Bump version numbers. Was supposed to be part of the keydisk boot commit.Stefan Sperling
2013-10-20Add i386/amd64 boot(8) support for keydisk-based softraid crypto volumes.Stefan Sperling
So far, only passphrase-based crypto volumes were bootable. Full disk encryption with keydisks required a non-crypto partition to load the kernel. The bootloader now scans all BIOS-visible disks for RAID partitions and automatically associates keydisk partitions with their crypto volume. Attempting to boot from a volume without its keydisk currently results in a passphrase prompt (this might be changed in the future). There is no need to re-create existing volumes. Moving the root partition onto the crypto disk and running installboot(8) is all that's needed. help & ok jsing
2013-10-20In rt_mpath_conflict() there is no need to check the priority in the loopClaudio Jeker
since rt_mpath_prio() and rt_mpath_next() ensure that this is always the case. OK henning@
2013-10-20rt_mpath_next() was always called with 0 in the last argument. So drop it.Claudio Jeker
OK henning@
2013-10-20Allow WSDISPLAYIO_GTYPE ioctl on the tty*cfg device (passing it back to tty*0).Miod Vallat
2013-10-20KNF a long line.Kenneth R Westerback
2013-10-20Make sure that the RTM_DESYNC message is not filtered out. Also ensure thatClaudio Jeker
rtm_flags and rtm_fmask do not change flags that are kernel specific (e.g. RTF_CLONED). OK henning@
2013-10-20Simplify definition of the side-effect-free wd io routine.Theo de Raadt
2013-10-20Put a large chunk of the IPv6 rdomain support in-tree.Peter Hessler
Still some important missing pieces, and this is not yet enabled. OK bluhm@
2013-10-20WSDISPLAYIO_GTYPE ioctl support for KMS drivers. ok jsg@Miod Vallat
2013-10-20(daddr_t) -> (u_int64_t) when multiplying ncylinders * secpercyl toKenneth R Westerback
get disk size, since DL_SETDSIZE() takes disk sector values, not 512-byte block values.
2013-10-20Provide more debugging aids when failing to read the packed image from diskMike Larkin
during hibernate resume. requested by deraadt
2013-10-20DPRINTFs for various failure cases, disabled by default (uncommentMike Larkin
HIB_DEBUG to see these)
2013-10-20Flush the cache after bouncing the inflate page to the piglet.Mike Larkin
Fixes resume time stream corruption seen on x230 with large (16GB) unhibernation
2013-10-20SMEP (on Ivy Bridge and later CPUs) require page protections that includeMike Larkin
at least one supervisor mode (U/S bit = 0) setting in higher level paging structures. This diff removes PG_u flags from the hibernate resume time pmap (there was really no reason we needed it), to allow hibernate to work on Ivy Bridge and later CPUs. ok deraadt
2013-10-20Replace manual list handling with a TAILQ.Miod Vallat
2013-10-20Use a second inflate page for stream finalize, since it is possibleMike Larkin
(though unlikely) for the end of stream marker to overflow from one page. This should fix a few (but not all) spurious failure-to-hibernate errors. Also remove an unnecessary cache flush during deflate. ok deraadt
2013-10-20remove irrelevant commentTheo de Raadt
2013-10-20tedu noct(4). dmesglog shows no users of this device and the driver hasMike Larkin
a bug that nobody (even the original author) knows how to fix. "kill with fire" deraadt@
2013-10-20catch up with elf(5)/stab(5) removal;Jason McIntyre
ok miod
2013-10-19Our IPv6 stack was scanning all extension headers for routing headerAlexander Bluhm
type 0 and dropped the packet if it found one. RFC 5095 demands to handle a routing header type 0 like an unrecognised routing type. This is enough to protect the own machine. To protect a network as a firewall, we have pf which does the same full scan in pf_walk_header6(). As pf is enabled by default, nothing changes for most users. If you turn off pf on your router, you should not expect extra protection. Get rid of the double scanning in ip6_input() and and the older disabled code in route6_input(). No more special treatment of routing header type 0 in the IPv6 stack. OK henning@ mikeb@
2013-10-19LP64 non-PMAP_DIRECT archs like sparc64 have a structure largerPhilip Guenther
than 65536 bytes, so make parse_structinfo.pl detect that and switch to u_int for sizes and offsets when that happens. ok miod@
2013-10-19Wandboard also is a supported board of this driver. Every i.MX6 basedPatrick Wildt
device is.
2013-10-19Improve the address and linkstate hooks and add an additional detachReyk Floeter
hook to track any changes of the parent multicast interface.
2013-10-19Now carp_set_addr() and carp_set_addr6() break out of the loop afterAlexander Bluhm
they have found the interface address, so we can get rid of the additional variable ia_if. No functional change. OK mpi@ phessler@
2013-10-19Support the hibernate key (Fn-F12)Theo de Raadt
2013-10-19Enable TX checksum offload; from brad@ with input from mikeb@.Christian Weisgerber
Tested extensively by henning@ and myself.
2013-10-19in order to make our life a tad easier and prevent rogue accessesMike Belopuhov
to the routing table from the hardware interrupt context defer the if_link_state_change to the process context. a token (an interface index) is passed to the workq in order to make sure that if the interface would be gone by the time syswq goes around to run the task it would just fall through. ok henning, mpi, deraadt, claudio
2013-10-19remove confusing comments referencing the vaxTheo de Raadt
2013-10-19Uniformize drivers doing nothing with their multicast filters to makeMartin Pieuchot
them ignore the SIOC{ADD,DEL}MULTI ioctls. ok reyk@, claudio@