summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Remove local override for .cpp.o and .cpp.po rulesemaste2016-01-191-8/+1
| | | | | | | | | | | The local build rule used to set -fvisibility=hidden and -fPIC, in addition to -fexceptions and -D defines that had no effect. With -fvisibility=hidden and -fPIC in STATIC_CXXFLAGS the standard bsd.lib.mk rules are suitable for libgcc_s's C++ source. PR: 206381 Sponsored by: The FreeBSD Foundation
* Now that we have local modifications in configure.ac and configure, rundes2016-01-194-129/+155
| | | | autoheader and autoconf to avoid having to patch configure manually.
* Disallow zvol-backed ZFS poolsasomers2016-01-194-28/+34
| | | | | | | | | | | | | | | | | | | | | | | Using zvols as backing devices for ZFS pools is fraught with panics and deadlocks. For example, attempting to online a missing device in the presence of a zvol can cause a panic when vdev_geom tastes the zvol. Better to completely disable vdev_geom from ever opening a zvol. The solution relies on setting a thread-local variable during vdev_geom_open, and returning EOPNOTSUPP during zvol_open if that thread-local variable is set. Remove the check for MUTEX_HELD(&zfsdev_state_lock) in zvol_open. Its intent was to prevent a recursive mutex acquisition panic. However, the new check for the thread-local variable also fixes that problem. Also, fix a panic in vdev_geom_taste_orphan. For an unknown reason, this function was set to panic. But it can occur that a device disappears during tasting, and it causes no problems to ignore this departure. Reviewed by: delphij MFC after: 1 week Relnotes: yes Sponsored by: Spectra Logic Corp Differential Revision: https://reviews.freebsd.org/D4986
* Upgrade to OpenSSH 6.7p1, retaining libwrap support (which has been removeddes2016-01-19287-6984/+17453
|\ | | | | | | | | | | upstream) and a number of security fixes which we had already backported. MFC after: 1 week
| * Vendor import of OpenSSH 6.7p1.des2015-01-05283-7127/+17296
| |
| * Apply upstream patch for EC calculation bug that breaks EC key exchangedes2014-04-206-3/+28
| | | | | | | | about one out of 512 times.
* | Add optimizing LRO wrapper:hselasky2016-01-1910-45/+200
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Add optimizing LRO wrapper which pre-sorts all incoming packets according to the hash type and flowid. This prevents exhaustion of the LRO entries due to too many connections at the same time. Testing using a larger number of higher bandwidth TCP connections showed that the incoming ACK packet aggregation rate increased from ~1.3:1 to almost 3:1. Another test showed that for a number of TCP connections greater than 16 per hardware receive ring, where 8 TCP connections was the LRO active entry limit, there was a significant improvement in throughput due to being able to fully aggregate more than 8 TCP stream. For very few very high bandwidth TCP streams, the optimizing LRO wrapper will add CPU usage instead of reducing CPU usage. This is expected. Network drivers which want to use the optimizing LRO wrapper needs to call "tcp_lro_queue_mbuf()" instead of "tcp_lro_rx()" and "tcp_lro_flush_all()" instead of "tcp_lro_flush()". Further the LRO control structure must be initialized using "tcp_lro_init_args()" passing a non-zero number into the "lro_mbufs" argument. - Make LRO statistics 64-bit. Previously 32-bit integers were used for statistics which can be prone to wrap-around. Fix this while at it and update all SYSCTL's which expose LRO statistics. - Ensure all data is freed when destroying a LRO control structures, especially leftover LRO entries. - Reduce number of memory allocations needed when setting up a LRO control structure by precomputing the total amount of memory needed. - Add own memory allocation counter for LRO. - Bump the FreeBSD version to force recompilation of all KLDs due to change of the LRO control structure size. Sponsored by: Mellanox Technologies Reviewed by: gallatin, sbruno, rrs, gnn, transport Tested by: Netflix Differential Revision: https://reviews.freebsd.org/D4914
* | Test for /etc/ssl/cert.pem existence to avoid masking SSL_CA_CERT_PATHbapt2016-01-191-3/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Prior to this patch, unless SSL_CA_CERT_FILE is set in the environment, libfetch will set the CA file to "/usr/local/etc/cert.pem" if it exists, and to "/etc/ssl/cert.pem" otherwise. This has the consequence of masking SSL_CA_CERT_PATH, because OpenSSL will ignore the CA path if a CA file is set but fails to load (see X509_STORE_load_locations()). While here, fall back to OpenSSL defaults if neither SSL_CA_CERT_FILE nor SSL_CA_CERT_PATH are set in the environment, and if neither of the libfetch default CA files exists. PR: 193871 Submitted by: John W. O'Brien <john@saltant.com> Approved by: des MFC after: 1 week
* | As previously threatened, remove the HPN patch from OpenSSH.des2016-01-1929-534/+158
| |
* | Use 'svn list -R' instead of find, and recognize comments in shell scriptsdes2016-01-191-2/+2
| | | | | | | | and {ssh,sshd}_config.
* | Recognize *roff comments.des2016-01-191-1/+1
| |
* | Add "vidcontrol -i active", to print out active vty number,trasz2016-01-192-6/+23
| | | | | | | | | | | | | | | | | | to be used with eg "vidcontrol -s". Reviewed by: emaste@ MFC after: 1 month Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D4968
* | Update the pre- and post-merge scripts to work correctly after the recentdes2016-01-192-15/+13
| | | | | | | | | | cleanup. A round-trip (./freebsd-pre-merge.sh ; ./freebsd-post-merge.sh) now results in an unchanged working copy.
* | Fix an issue where the network adapter could be left in down statehselasky2016-01-191-14/+11
| | | | | | | | | | | | | | | | | | after changing the HW LRO sysctl when previously in up state. Reviewed by: gnn Sponsored by: Mellanox Technologies MFC after: 5 days Differential Revision: https://reviews.freebsd.org/D4941
* | Add clarifying comment about CQE zipping.hselasky2016-01-191-0/+5
| | | | | | | | | | | | | | Reviewed by: gnn Sponsored by: Mellanox Technologies MFC after: 5 days Differential Revision: https://reviews.freebsd.org/D4940
* | Declare local variables at top of function.hselasky2016-01-191-3/+6
| | | | | | | | | | | | | | Reviewed by: gnn Sponsored by: Mellanox Technologies MFC after: 5 days Differential Revision: https://reviews.freebsd.org/D4939
* | Allow RX and TX pause frames to be set through ifconfig.hselasky2016-01-193-36/+103
| | | | | | | | | | | | | | Reviewed by: gnn Sponsored by: Mellanox Technologies MFC after: 5 days Differential Revision: https://reviews.freebsd.org/D4817
* | Adjust i386 comment to match amd64 one after r294311.kib2016-01-191-5/+6
| | | | | | | | | | Sponsored by: The FreeBSD Foundation MFC after: 2 weeks
* | Use ANSI definitions. Wrap long line.kib2016-01-191-3/+4
| | | | | | | | | | Sponsored by: The FreeBSD Foundation MFC after: 2 weeks
* | Clear whole XMM register file instead of only XMM0. Also clear x87kib2016-01-191-6/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | registers. This brings amd64 on par with i386, providing consistent initial FPU state. Note that we do not clear any extended state, at least because kernel does not understand extended state structure and consequences of zero overwrite after fninit()/fpusave(). Submitted by: joss.upton@yahoo.com PR: 206370 MFC after: 2 weeks
* | sfxge: improve error handling in ef10_ev_rx()arybchik2016-01-191-106/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Ensure that checksum flags and L3/L4 fields are ignored if lower level errors are reported in the event. Remove checks for CRC0_ERR (bad iSCSI header CRC) and CRC1_ERR (bad iSCSI payload or FCoE/FCoIP CRC) as they are not used by any existing code. Submitted by: Andy Moreton <amoreton at solarflare.com> Sponsored by: Solarflare Communications, Inc. MFC after: 2 days Differential Revision: https://reviews.freebsd.org/D4975
* | sfxge: select whether to read current or backup partition in Medford A/B schemearybchik2016-01-195-16/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The dynamic config on Medford is stored using two partitions in flash, and at any time one is the 'current' partition, used to provide the active config, and the other 'backup' partition is used for writes. This means that there are two potential partitions that can be used to service reads, and which is required can depend on, for example, whether the read is to get the current contents or to verify a write. When the partition write lock is held, the default behaviour is to read from the backup partition, which was wrong for most reads in the common code which require the current partition. This change allows the current partition to be read whilst the write lock is held. There is one read in Manftest which needs the backup partition. ef10_nvram_partn_read_mode() is created to avoid changing ef10_nvram_partn_read() which shares a prototype with the equivalent Falcon and Siena methods. MC_CMD_NVRAM_READ_IN_V2 adds an extra field, but firmware which doesn't support it just ignores it. Submitted by: Mark Spender <mspender at solarflare.com> Sponsored by: Solarflare Communications, Inc. MFC after: 2 days Differential Revision: https://reviews.freebsd.org/D4974
* | Remove local override for .cpp.So ruleemaste2016-01-191-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The standard bsd.lib.mk rule is suitable for libgcc_s's C++ source. The local rule had the following non-functional argument differences or additions: 1. -DSHARED (rather than -DPIC from bsd.lib.mk) The C++ sources don't have an #ifdef for either one. 2. -fexceptions This is enabled by default for C++ so does not need to be set explicitly. 3. -D__GLIBC__=3 Not used by LLVM libunwind. 4. -DElfW=__ElfN LLVM libunwind provides its own definition. PR: 206381 Differential Revision: The FreeBSD Foundation
* | Hide most of the PTE initialization and management.jhibbits2016-01-191-30/+46
| | | | | | | | | | | | | | By confining the page table management to a handful of functions it'll be easier to modify the page table scheme without affecting other functions. This will be necessary when 64-bit support is added, and page tables become much larger.
* | Add vrefl(), a locked variant of vref(9).markj2016-01-183-22/+41
| | | | | | | | | | | | | | | | | | | | | | This API has no in-tree consumers at the moment but is useful to at least one out-of-tree consumer, and naturally complements existing vnode refcount functions (vholdl(9), vdropl(9)). Obtained from: kib (sys/ portion) Sponsored by: EMC / Isilon Storage Division Differential Revision: https://reviews.freebsd.org/D4947 Differential Revision: https://reviews.freebsd.org/D4953
* | Import misc.c,v 1.46 from OpenBSD (by espie@)bapt2016-01-181-1/+3
| | | | | | | | Yet another missed ferror call
* | Update elftc version to 3272M, imported in r292120emaste2016-01-181-1/+1
| |
* | Restore ABI variants now that ldconfig groks -soft. In addition, as aimp2016-01-183-7/+16
| | | | | | | | | | | | | | transition mechanism, if we don't have /usr/libsoft, assume that soft float ABI binaries are the default, so treat them as default binaries. When we've fully transitioned, it will make no sense to do this stat, and it will be removed.
* | Add ldconfig -soft to process the soft float abi libraries and put itimp2016-01-183-1/+37
| | | | | | | | into startup scripts for armv6. It acts much like ldconfig -32 does.
* | Fix printing multibyte printing when performing a networked finger(1) requestbapt2016-01-181-6/+7
| | | | | | | | MFC after: 1 week
* | Reset the filesystem cache before reading from a potentially newandrew2016-01-181-0/+1
| | | | | | | | | | | | | | filesystem. Without this we only read from the first UFS filesystem we find, caching the result. X-MFC with: The recent boot1.efi changes
* | mdoc: sort Xrjoel2016-01-184-8/+8
| |
* | boot1: correct typo in error messageemaste2016-01-181-2/+2
| |
* | Correct RISC-V exception types.br2016-01-181-4/+6
| |
* | Move RTAS PCI-specific interpretation of the "reg" property of the PCI hostnwhitehorn2016-01-183-9/+9
| | | | | | | | device to the RTAS driver, where it belongs.
* | Use OF_decode_addr() to create a bus_space tag and handle for the consoleian2016-01-181-12/+1
| | | | | | | | | | | | | | | | | | on FDT/OFW platforms. After the refactoring of the powerpc code so that OF_decode_addr() is usable on all FDT/OFW platforms, this switches uart(4) to using it. Differential Revision: https://reviews.freebsd.org/D4675
* | Add RISC-V relocation types.br2016-01-181-0/+50
| | | | | | | | Reviewed by: emaste
* | Enable AIO interface on ARM64 platformszbb2016-01-181-0/+1
| | | | | | | | | | | | | | | | | | | | Add VFS_AIO to generic config to allow using of high-performance asynchronous disk AIO operation. Reviewed by: imp Obtained from: Semihalf Sponsored by: The FreeBSD Foundation Differential revision: https://reviews.freebsd.org/D4979
* | Update ThunderX PCIe driver to fit new DTS layoutzbb2016-01-184-12/+12
| | | | | | | | | | | | | | | | | | | | In recent EFI the DTS entries changed for PCIe controller. This commit fixes internal PCIe, external is yet TBD. Submitted by: Dominik Ermel <der@semihalf.com> Obtained from: Semihalf Sponsored by: The FreeBSD Foundation Differential revision: https://reviews.freebsd.org/D4976
* | Fix EFI_DEBUG optionsmh2016-01-183-7/+7
| | | | | | | | | | | | | | | | Fix broken DPRINTF and wire up EFI_DEBUG so -DEFI_DEBUG to make works. MFC after: 2 weeks X-MFC-With: r293268 Sponsored by: Multiplay
* | Fix compilation on MIPS (typo introduced in r294227).br2016-01-181-1/+1
| |
* | MFV r294260:delphij2016-01-181-1/+1
| | | | | | | | | | | | | | | | Fix a wrong assertion in mandoc by applying OpenBSD main.c,v 1.170 (florian): Unbreak reading from stdin after recent parse() restructuring. OK schwarze@
* | sfxge: regenerate EF10 registers definition for Medfordarybchik2016-01-181-19/+46
| | | | | | | | | | Sponsored by: Solarflare Communications, Inc. MFC after: 2 days
* | sfxge: fix unused function warningarybchik2016-01-181-3/+1
| | | | | | | | | | Sponsored by: Solarflare Communications, Inc. MFC after: 2 days
* | sfxge: regenerate siena_flash.h from FW sourcesarybchik2016-01-181-2/+2
| | | | | | | | | | Sponsored by: Solarflare Communications, Inc. MFC after: 2 days
* | sfxge: cleanup: remove extra empty linesarybchik2016-01-181-2/+0
| | | | | | | | | | Sponsored by: Solarflare Communications, Inc. MFC after: 2 days
* | sfxge: highlight that descriptor cache sizes are configured using TLV nowarybchik2016-01-181-1/+1
| | | | | | | | | | | | Submitted by: Tom Millington <tmillington at solarflare.com> Sponsored by: Solarflare Communications, Inc. MFC after: 2 days
* | sfxge: support RFID-selectable segments of dynamic configurationarybchik2016-01-181-1/+5
| | | | | | | | | | | | | | | | | | tlv_partition_header has field *preset* to support RFID-selectable segments of dynamic configuration Submitted by: Mateusz Wrzesinski <mwrzesinski at solarflare.com> Sponsored by: Solarflare Communications, Inc. MFC after: 2 days
* | sfxge: if supported by firmware, use enhanced SET_MAC command to only ↵arybchik2016-01-186-1/+86
| | | | | | | | | | | | | | | | | | | | | | | | | | | | configure the MTU This allows an MTU change to be requested on unpriviliged functions without also setting all the other parameters supported by MC_CMD_SET_MAC. The enhanced SET_MAC command was introduced in v4_7 firmware. Submitted by: Mark Spender <mspender at solarflare.com> Sponsored by: Solarflare Communications, Inc. MFC after: 2 days Differential Revision: https://reviews.freebsd.org/D4958
* | sfxge: convert nvram set_version method to use partition idarybchik2016-01-186-57/+27
| | | | | | | | | | | | Submitted by: Andy Moreton <amoreton at solarflare.com> Sponsored by: Solarflare Communications, Inc. MFC after: 2 days
OpenPOWER on IntegriCloud