summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* List source files (foo.c) instead of object files in SRCS.jhb2016-01-201-1/+1
| | | | Reviewed by: bdrewery
* Revert a printf change from r294307.jhibbits2016-01-191-1/+1
| | | | | | Caused build failures with MPC85XX. Pointy-hat to: jhibbits
* Fix tty_drain() and, thus, TIOCDRAIN of the current tty(4) incarnationmarius2016-01-193-3/+36
| | | | | | | | | | | | | to actually wait until the TX FIFOs of UARTs have be drained before returning. This is done by bringing the equivalent of the TS_BUSY flag found in the previous implementation back in an ABI-preserving way. Reported and tested by: Patrick Powell Most likely, drivers for USB-serial-adapters likewise incorporating TX FIFOs as well as other terminal devices that buffer output in some form should also provide implementations of tsw_busy. MFC after: 3 days
* FAST_DEPEND: Fix improperly depending all .So objects on all headers.bdrewery2016-01-191-0/+2
| | | | | | | | | | This was a regression in r290629, which was revealed partly in r294360. Once 'make depend' has ran it will generate all headers already. Thus even with FAST_DEPEND lacking proper dependencies before building, it will not have any missing headers. Once objects are compiled the depend files will be generated with proper dependencies. Sponsored by: EMC / Isilon Storage Division
* Revert r294352.bdrewery2016-01-191-1/+1
| | | | | Further research showed it was the wrong fix and revealed a bigger problem with the goal of skipping 'make depend'.
* Quell harmless CID about unchecked return value in nvlist_get_guids.asomers2016-01-191-2/+2
| | | | | | | | | | The return value doesn't need to be checked, because nvlist_get_guid's callers check the returned values of the guids. Coverity CID: 1341869 MFC after: 1 week X-MFC-With: 292066 Sponsored by: Spectra Logic Corp
* Allow specifying an alternative LD_LIBRARY_PATH for the ldd(1) lookup.bdrewery2016-01-191-3/+12
| | | | | | | | | | | | | | This is needed to be able to run check-links.sh against a "sysrooted" binary while ensuring that the ldd(1) call done on the host uses the host libc. It is not possible to set LD_LIBRARY_PATH before calling check-links.sh as then the "sysrooted" libc would be incorrectly used. A LD_PRELOAD=libc.so is used to ldd(1) as it needs to use the host libc to run. ldd(1) is a simple wrapper around execve(2) and dlopen(2) with env LD_TRACE_LOADED_OBJECTS set. Due to the dlopen(2) restriction on shared library tracing ldd(1) is still required for this lookup. Sponsored by: EMC / Isilon Storage Division
* Add some documentation.bdrewery2016-01-191-0/+10
| | | | Sponsored by: EMC / Isilon Storage Division
* Validate that the file exists rather than obscure 'Not an elf file' error.bdrewery2016-01-191-0/+5
| | | | Sponsored by: EMC / Isilon Storage Division
* bsd.subdir.mk: Allow easier modification of [STANDALONE_]SUBDIR_TARGETS.bdrewery2016-01-191-13/+16
| | | | | | | | | | | | | | This reworks r289254 and removes ALL_SUBDIR_TARGETS. Because there is an include guard in this file there is no need for LOCAL_ or ?= on SUBDIR_TARGETS or STANDALONE_SUBDIR_TARGETS. These can just be set via src.conf. By the time bsd.subdir.mk is included it will just append the values to the existing value and work fine. This allows a consistent way to append to these variables without introducing a LOCAL_ var for STANDALONE_SUBDIR_TARGETS or renaming the historical SUBDIR_TARGETS. Sponsored by: EMC / Isilon Storage Division
* installconfig is PARALLEL_SUBDIR safe.bdrewery2016-01-191-1/+1
| | | | Sponsored by: EMC / Isilon Storage Division
* FAST_DEPEND: Add header dependency missed in r290629.bdrewery2016-01-191-1/+1
| | | | Sponsored by: EMC / Isilon Storage Division
* FAST_DEPEND: Still use if filemon is not used.bdrewery2016-01-191-1/+2
| | | | | | | | | | | | If filemon is used then there is no need to generate dependency files during compilation as the .meta files will achieve the same result. This is a temporary solution until FAST_DEPEND is default. Once that is default there will be an option to disable dependency generation entirely as it is only useful if an incremental build is planned, thus META_MODE+filemon can enable that option to short-circuit all FAST_DEPEND-related logic. Sponsored by: EMC / Isilon Storage Division
* META_MODE: Ensure bmake does not use filemon if it is not loaded.bdrewery2016-01-191-0/+3
| | | | Sponsored by: EMC / Isilon Storage Division
* Define .MAKE.MODE to normal to avoid the need for :U later.bdrewery2016-01-194-6/+6
| | | | Sponsored by: EMC / Isilon Storage Division
* sh: Simplify some code related to positional parameters.jilles2016-01-192-17/+13
|
* Fix usr.bin.truncate.truncate_test.bad_truncate with ZFS /tmp.asomers2016-01-191-7/+4
| | | | | | | | | | | | The bad_truncate test sets the uimmutable flag to produce an error in truncate, but that flag isn't supported by ZFS. If /tmp is on a ZFS filesystem, the test will fail. Change it to use readonly permissions and an unpriveleged user instead. Reviewed by: jilles MFC after: 1 week Sponsored by: Spectra Logic Corp Differential Revision: https://reviews.freebsd.org/D4862
* Various cleanups to the main function for AIO kernel processes:jhb2016-01-193-85/+80
| | | | | | | | | | | | | | | - Pull the vmspace logic out into helper functions and reduce duplication. Operations on the vmspace are all isolated to vm_map.c, but it now exports a new 'vmspace_switch_aio' for use by AIO kernel processes. - When an AIO kernel process wants to exit, break out of the main loop and perform cleanup after the loop end. This reduces a lot of indentation and allows cleanup to more closely mirror setup actions before the loop starts. - Convert a DIAGNOSTIC to KASSERT(). - Replace mycp with more typical 'p'. Reviewed by: kib Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D4990
* Don't create a dedicated session for each AIO kernel process.jhb2016-01-191-3/+0
| | | | | | | | | | | This code dates back to the initial AIO support and the commit log does not explain why it is needed. However, I cannot find anything in the AIO code or the various file methods (fo_read/fo_write) that would change behavior due to using a private session instead of proc0's session. Reviewed by: kib Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D4988
* Upgrade to OpenSSH 6.9p1.des2016-01-19115-2304/+3871
|\
| * Vendor import of OpenSSH 6.9p1.des2015-07-02115-2541/+4127
| |
* | Re-add HPN configuration options as deprecated options to avoid breakingdes2016-01-192-0/+7
| | | | | | | | | | existing configurations that use them. Note that there is no functional difference between OpenSSH with HPN and OpenSSH without HPN.
* | begone, foul autoprops!des2016-01-190-0/+0
| |
* | Upgrade to OpenSSH 6.8p1.des2016-01-19332-14263/+30280
|\ \ | |/
| * Vendor import of OpenSSH 6.8p1.des2015-07-02328-19755/+52319
| |
* | 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
OpenPOWER on IntegriCloud