summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Import byacc 20140101 which imports %token-table from bison allowing to ↵bapt2014-01-0837-358/+457
| | | | build ntpd
* Rename definition of IEEE80211_FC1_WEP to IEEE80211_FC1_PROTECTED.kevlo2014-01-0840-84/+86
| | | | | | | | | | | The origin of WEP comes from IEEE Std 802.11-1997 where it defines whether the frame body of MAC frame has been encrypted using WEP algorithm or not. IEEE Std. 802.11-2007 changes WEP to Protected Frame, indicates whether the frame is protected by a cryptographic encapsulation algorithm. Reviewed by: adrian, rpaulo
* Add option USB_HOST_ALIGN to configs that contain 'device usb'. Settingian2014-01-082-0/+2
| | | | | | this to the cache line size is required to avoid data corruption on armv4 and armv5, and improves performance on armv6, in both cases by avoiding partial cacheline flushes for USB IO.
* Add option USB_HOST_ALIGN to configs that contain 'device usb'. Settingian2014-01-0834-0/+34
| | | | | | | | | this to the cache line size is required to avoid data corruption on armv4 and armv5, and improves performance on armv6, in both cases by avoiding partial cacheline flushes for USB IO. All these configs already exist in 10-stable. A few that don't (and thus can't be MFC'd yet) will be committed separately.
* m_defrag(9) does not touch original mbuf chain when it can'tyongari2014-01-081-0/+1
| | | | | allocate new mbuf. Free original mbuf chain when driver is not able to send the packet.
* make sure that rbuf is aligned by making a union w/ the structure wejmg2014-01-071-4/+7
| | | | | | | | need to access... access the struct through the union too... PR: 185165 Submitted by: Guy Yur MFC after: 1 week
* defragment mbuf chains longer than hw segment limit before droppingedavis2014-01-072-4/+32
| | | | Approved by: davidch
* fix use after free when releasing a netmap adapter.luigi2014-01-072-5/+10
| | | | Submitted by: Giuseppe Lettieri
* Use the 'Virtual Interrupt Delivery' feature of Intel VT-x if supported byneel2014-01-076-58/+501
| | | | | | | | | | | | | | | | | | | | | | hardware. It is possible to turn this feature off and fall back to software emulation of the APIC by setting the tunable hw.vmm.vmx.use_apic_vid to 0. We now start handling two new types of VM-exits: APIC-access: This is a fault-like VM-exit and is triggered when the APIC register access is not accelerated (e.g. apic timer CCR). In response to this we do emulate the instruction that triggered the APIC-access exit. APIC-write: This is a trap-like VM-exit which does not require any instruction emulation but it does require the hypervisor to emulate the access to the specified register (e.g. icrlo register). Introduce 'vlapic_ops' which are function pointers to vector the various vlapic operations into processor-dependent code. The 'Virtual Interrupt Delivery' feature installs 'ops' for setting the IRR bits in the virtual APIC page and to return whether any interrupts are pending for this vcpu. Tested on an "Intel Xeon E5-2620 v2" courtesy of Allan Jude at ScaleEngine.
* Reserve an event type for the upcoming EVENT_SENDFILE andadrian2014-01-071-2/+4
| | | | | | extend the event struct pointer union to allow for 'other' types. Sponsored by: Netflix, Inc.
* Allow delete_method sysctl to be set to "DISABLE".mav2014-01-071-2/+3
|
* MFV r260399:delphij2014-01-075-8/+25
| | | | | | | | | | | | | | | | | | | | Apply vendor commits: 197e0ea Fix for TLS record tampering bug. (CVE-2013-4353). 3462896 For DTLS we might need to retransmit messages from the previous session so keep a copy of write context in DTLS retransmission buffers instead of replacing it after sending CCS. (CVE-2013-6450). ca98926 When deciding whether to use TLS 1.2 PRF and record hash algorithms use the version number in the corresponding SSL_METHOD structure instead of the SSL structure. The SSL structure version is sometimes inaccurate. Note: OpenSSL 1.0.2 and later effectively do this already. (CVE-2013-6449). Security: CVE-2013-4353 Security: CVE-2013-6449 Security: CVE-2013-6450
* Remove aicasm as a build dependency. It made sense when the ahc and ahdscottl2014-01-0714-62/+13523
| | | | | | | | | | | | drivers and their firmware were under active development, but those days have passed. The firmware now exists in pre-compiled form, no longer dependent on it's sources or on aicasm. If you wish to rebuild the firmware from source, the glue still exists under the 'make firmware' target in sys/modules/aic7xxx. This also fixes the problem introduced with r257777 et al with building kernels the old fashioned way in sys/$arch/compile/$CONFIG when the ahc/ahd drivers were included.
* Remove dead code.melifaro2014-01-071-2/+0
| | | | | | Reported by: Coverity Coverity CID: 1018057 MFC after: 2 weeks
* Fix a bug introduced in r260167 related to VM-exit tracing.neel2014-01-071-10/+11
| | | | | | Keep a copy of the 'rip' and the 'exit_reason' and use that when calling vmx_exit_trace(). This is because both the 'rip' and 'exit_reason' can be changed by 'vmx_exit_process()' and can lead to very misleading traces.
* Teach every SIOCGIFSTATUS provider to fill in ifs->ascii anyway.melifaro2014-01-074-16/+10
| | | | | | | | | Remove old bits of data concat for 'ascii' field. Remove special SIOCGIFSTATUS handling from if.c (which Coverity yells at). Reported by: Coverity Coverity CID: 1147174 MFC after: 2 weeks
* Use __predict_false() on sensitive lock paths as most of the times,attilio2014-01-071-2/+2
| | | | | | | when PMC-soft feature is not used the check will be false. Sponsored by: EMC / Isilon storage division Submitted by: Anton Rang <anton.rang@isilon.com>
* Fix the geom mappings for WR1043ND.loos2014-01-071-3/+3
| | | | | | | | | | | | | | | The uboot mapping is only 128KiB (0x20000) and not 2MiB (0x200000). Dynamically adjust kernel and rootfs mappings based on the geom_uncompress(4) magic. This makes the built images more reliable by accepting changes on kernel size transparently and matches the images built with zrouter and freebsd-wifi-build. Tested by: gjb Approved by: adrian (mentor) Obtained from: Zrouter
* Fix off-by-one error in r260229.mav2014-01-071-1/+1
| | | | Coverity CID: 1148955
* Fix a rare "truncated checksums" problem, which manifested like this:trasz2014-01-071-2/+2
| | | | | | | | | WARNING: icl_pdu_check_data_digest: data digest check failed; got 0xf23b, should be 0xdb7f23b Tested by: Darcy Birkbeck MFC after: 2 weeks Sponsored by: The FreeBSD Foundation
* Check the XHCI event ring regardless of the XHCI status registerhselasky2014-01-071-7/+2
| | | | | | | | | value. The "Intel Lynx Point" XHCI controller found in the MBP2013 has been observed to not always set the event interrupt bit while there are events to consume in the event ring. MFC after: 1 week Tested by: Huang Wen Hui <huanghwh@gmail.com>
* gperf: reverse size_type patch from r258115.pfg2014-01-075-51/+16
| | | | | | | | | Silencing the broken warning as done in r258139 renders the code unreacheable. An option could've been to turn off the warnings in gperf but given that the code is not being used it is better to just revert the original change altogether. This code was never MFC'd.
* Add a compile-time control over the size of KN_HASHSIZE.adrian2014-01-072-0/+5
| | | | | | | | This is needed for applications that use a lot of non-filedescriptor knotes. MFC after: 1 week Sponsored by: Netflix, Inc.
* Allow vlapic_set_intr_ready() to return a value that indicates whether or notneel2014-01-075-29/+51
| | | | | | | | | | | the vcpu should be kicked to process a pending interrupt. This will be useful in the implementation of the Posted Interrupt APICv feature. Change the return value of 'vlapic_pending_intr()' to indicate whether or not an interrupt is available to be delivered to the vcpu depending on the value of the PPR. Add KTR tracepoints to debug guest IPI delivery.
* For IDENTIFY passthrough commands to Chatham prototype controllers, copyjimharris2014-01-061-2/+23
| | | | | | | | | | | the spoofed identify data into the user buffer rather than issuing the command to the controller, since Chatham IDENTIFY data is always spoofed. While here, fix a bug in the spoofed data for Chatham submission and completion queue entry sizes. Sponsored by: Intel MFC after: 3 days
* For "nvmecontrol devlist", show namespace sizes in terms of MB instead ofjimharris2014-01-061-2/+2
| | | | | | | | GB to improve granularity of the reporting - especially for namespaces that are on the order of 1 or 2 GB. Submitted by: Tony Beltran <anthony.beltran@emc.com> MFC after: 3 days
* Split the VMCS setup between 'vmcs_init()' that does initialization andneel2014-01-063-64/+27
| | | | | | | | | 'vmx_vminit()' that does customization. This makes it easier to turn on optional features (e.g. APICv) without having to keep adding new parameters to 'vmcs_set_defaults()'. Reviewed by: grehan@
* Partially fix IPv4 interface routes deletion in RADIX_MPATH.melifaro2014-01-062-8/+11
| | | | | Noticed by: Nikolay Denev <ndenev at gmail.com> MFC after: 1 month
* When pf_get_translation() fails, it should leave *sn pointer pristine,glebius2014-01-061-0/+1
| | | | | | otherwise we will panic in pf_test_rule(). PR: 182557
* Correct a grammo in a comment; remove white space at EOL.schweikh2014-01-061-2/+2
|
* Fix arm build.andreast2014-01-063-3/+1
| | | | Reviewed by: ian, zbb
* Switch to using arm_devmap_add_entry() to set up static device mapping.ian2014-01-061-22/+10
| | | | | This eliminates the hard-coded max kva and roughly doubles the available kva space.
* Don't try to find a static mapping before calling pmap_mapdev(), that logician2014-01-061-12/+3
| | | | | is now part of pmap_mapdev() and doesn't need to be duplicated here. Likewise for unmapping.
* Allow 'no static device mappings' to potentially work. It's not clear thatian2014-01-061-10/+6
| | | | | | every arm system must have some static mappings to work correctly (although currently they all do), so remove some panic() calls (which would never been seen anyway, because they would happen before a console is available).
* Switch to using arm_devmap_add_entry() to set up static device mapping.ian2014-01-061-20/+5
| | | | | This eliminates the hard-coded max kva and roughly doubles the available kva space.
* Apply band-aid for 32-bit compat libs failures after r260334: put backdim2014-01-061-0/+1
| | | | | -Qunused-arguments for clang for now, until I can figure out a way to make it unneeded in all scenarios. Sorry about the breakage.
* It is 2014 and we have a new version of netmap.luigi2014-01-0627-2213/+3118
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Most relevant features: - netmap emulation on any NIC, even those without native netmap support. On the ixgbe we have measured about 4Mpps/core/queue in this mode, which is still a lot more than with sockets/bpf. - seamless interconnection of VALE switch, NICs and host stack. If you disable accelerations on your NIC (say em0) ifconfig em0 -txcsum -txcsum you can use the VALE switch to connect the NIC and the host stack: vale-ctl -h valeXX:em0 allowing sharing the NIC with other netmap clients. - THE USER API HAS SLIGHTLY CHANGED (head/cur/tail pointers instead of pointers/count as before). This was unavoidable to support, in the future, multiple threads operating on the same rings. Netmap clients require very small source code changes to compile again. On the plus side, the new API should be easier to understand and the internals are a lot simpler. The manual page has been updated extensively to reflect the current features and give some examples. This is the result of work of several people including Giuseppe Lettieri, Vincenzo Maffione, Michio Honda and myself, and has been financially supported by EU projects CHANGE and OPENLAB, from NetApp University Research Fund, NEC, and of course the Universita` di Pisa.
* Fix NULL dereference panic on UDP requests introduced in r260229.mav2014-01-061-1/+1
|
* do not use capsicum when building picobsd imagesluigi2014-01-061-0/+1
|
* In atomic_or_8_nv() load 1 and not 8 bytes from the addressmarcel2014-01-061-1/+1
| | | | given. Note that atomic_or_8_nv() is not used at this time.
* Correctly remove entries from the relevant receive ath_buf list beforeadrian2014-01-061-6/+14
| | | | | | | | | | | freeing them. The current code would walk the list and call the buffer free, which didn't remove it from any lists before pushing it back on the free list. Tested: AR9485, STA mode Noticed by: dillon@apollo.dragonflybsd.org
* Fix optimization bug.pfg2014-01-061-6/+11
| | | | | | | | | | | | | GCC-PR rtl-optimization/34628 * combine.c (try_combine): Stop and undo after the first combination if an autoincrement side-effect on the first insn has effectively been lost. The issue was detected in OpenBSD but their fix was not very good. Huge thanks to the upstream author, Eric Botcazou, for permitting the use of this patch under GPLv2. MFC after: 5 days
* Fix a cut and paste error.wblock2014-01-051-1/+1
| | | | | | PR: docs/184791 Submitted by: Jamie Landeg Jones <jamie@dyslexicfish.net> MFC after: 3 days
* find: Fix two more problems with -lname and -ilname:jilles2014-01-052-2/+14
| | | | | | | | | | | | * Do not match symlinks that are followed because of -H or -L. This is explicitly documented in GNU find's info file and is like -type l. * Fix matching symlinks in subdirectories when fts changes directories. Also, avoid some readlink() calls on files that are obviously not symlinks (because of fts(3) restrictions, not all of them). MFC after: 1 week
* Remove dev/fdt/fdt_pci.c, which was code specific to Marvell ARM SoCs,ian2014-01-057-229/+181
| | | | | | related to setting up static device mappings. Since it was only used by arm/mv/mv_pci.c, it's now just static functions within that file, plus one public function that gets called only from arm/mv/mv_machdep.c.
* find: Fix -lname and -ilname.jilles2014-01-051-2/+5
| | | | | | | | | | | | The code did not take into account that readlink() does not add a terminating '\0', and therefore did not work reliably. As before, symlinks of length PATH_MAX or more are not handled correctly. (These can only be created on other operating systems.) PR: bin/185393 Submitted by: Ben Reser (original version) MFC after: 1 week
* Wrap SUBDIRs over several lines.gavin2014-01-051-1/+11
|
* Split the last gcc-specific flags off into CFLAGS.gcc. This alsodim2014-01-0522-22/+31
| | | | | | | removes the need to use -Qunused-arguments for clang throughout the tree. MFC after: 3 days
* Enable the cesa security/crypto device by providing the required propertyian2014-01-052-43/+137
| | | | | | | | | | | in the dts source, and adding the right devices to the kernel config. Also generally bring the kernel config into line with what we have for other Marvell/Kirkwood systems (add lots of useful devices and options). One particularly notable addition amongst the kernel config changes is USB_HOST_ALIGN=32, which may help eliminate data corruption on USB drives. PR: kern/181975 arm/162159
* gcc: backport some fixes from llvm-gccpfg2014-01-054-152/+196
| | | | | | | | | | | | | | | | | | | | llvm-gcc backported some patches from gcc trunk: http://gcc.gnu.org/ml/gcc-cvs/2007-05/msg00662.html http://gcc.gnu.org/ml/gcc-cvs/2007-07/msg00019.html http://gcc.gnu.org/ml/gcc-cvs/2007-08/msg00240.html http://gcc.gnu.org/ml/gcc-cvs/2007-08/msg00493.html The first two were always GPL2. The last two were added after the GPL3 transition, but were written by aaw@google.com and Rafael Espíndola got permission to relicense them under the GPL2 for inclusion in llvm-gcc. This fixes GCC-PR c++/31749 Obtained from: llvm-gcc (rev. 75463; GPLv2) MFC after: 2 weeks
OpenPOWER on IntegriCloud