summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* MFC r264321, r264342, r264351, r264356, r273850, r274629:jch2014-12-025-29/+147
| | | | | | | | | | | | | | Currently, the TCP slow timer can starve TCP input processing while it walks the list of connections in TIME_WAIT closing expired connections due to contention on the global TCP pcbinfo lock. To remediate, introduce a new global lock to protect the list of connections in TIME_WAIT. Only acquire the TCP pcbinfo lock when closing an expired connection. This limits the window of time when TCP input processing is stopped to the amount of time needed to close a single connection. Approved by: jhb (mentor)
* MFC r274918:hselasky2014-12-011-2/+13
| | | | | | | | | Don't use the synchronization endpoint unless referenced by the isochronous endpoint descriptor used for the data transfers, hence the synchronization feature might not be supposed to be supported [yet]. This makes seamless playback synced with the USB HOST clock work with the DN32-USB module for Midas audio systems and possibly other similar products from Klark Teknik.
* MFC r275003:kevlo2014-12-011-4/+8
| | | | Add missing headers needed by write().
* MFC r275162:kevlo2014-12-011-3/+3
| | | | | | Init array field in the proper place. Obtained from: OpenBSD
* MFC r273918:trasz2014-11-301-1/+1
| | | | | | | Change the default log level for iSCSI target from 3 to 1. It should have been 1 from the beginning; not sure how it ended up at 3. Sponsored by: The FreeBSD Foundation
* MFC r274325:bryanv2014-11-291-7/+6
| | | | | | | | | Enable LRO by default when available on vtnet interfaces The prior change to not enable LRO by default has confused several people. The configurations where LRO is problematic is not the typical use case for VirtIO, and due to other issues, this often requires checksum offloading to be disabled anyways.
* MFC r273515, r274055, r274063, r274215, r274065, r274502:bryanv2014-11-2911-1/+1595
| | | | Add VirtIO console driver.
* MFC r271366 (by mav@):trasz2014-11-291-0/+1
| | | | Fix memory leak, reported by Coverity.
* MFC r274278:trasz2014-11-291-4/+5
| | | | | | Improve wording in ctl.conf(5). Sponsored by: The FreeBSD Foundation
* MFC r273896:trasz2014-11-292-50/+59
| | | | | | Build mount_nfs(8) with WARNS=6. Sponsored by: The FreeBSD Foundation
* MFC r273848:trasz2014-11-291-246/+2
| | | | | | | | | | | Get rid of obsolete code in mount_nfs(8). MFC r273861: Remove two functions unused after r273848. Would be nice if clang or at least scan-build yelled about it. Sponsored by: The FreeBSD Foundation
* MFC r273854:trasz2014-11-291-5/+9
| | | | | | Update acl(3) to expand on NFSv4 ACL support. Sponsored by: The FreeBSD Foundation
* MFC r273853:trasz2014-11-297-14/+14
| | | | | | Make it clear that ACL flags are NFSv4-only. Sponsored by: The FreeBSD Foundation
* MFC r273852:trasz2014-11-291-1/+1
| | | | | | Fix handling of "conn" mount_nfs(8) option. Sponsored by: The FreeBSD Foundation
* MFC r273851:trasz2014-11-291-1/+2
| | | | | | Note that the "timeout" nfs option is in tenths of a second. Sponsored by: The FreeBSD Foundation
* MFC r273849:trasz2014-11-293-7/+80
| | | | | | | | Add support for "timeo", "actimeo", "noac", and "proto" options to mount_nfs(8). They are implemented on Linux, OS X, and Solaris, and thus can be expected to appear in automounter maps. Sponsored by: The FreeBSD Foundation
* MFC r273822:trasz2014-11-292-0/+2
| | | | | | | Fix iscsictl(8) and ctld(8) to correctly handle Windows newlines (CRLF) in iscsi.conf and ctl.conf. Sponsored by: The FreeBSD Foundation
* MFC r273821:trasz2014-11-291-3/+3
| | | | | | Keep the token list sorted. Sponsored by: The FreeBSD Foundation
* MFC r273820:trasz2014-11-292-1/+12
| | | | | | | | | | | Make it possible to optionally use semicolon to separate statements. This makes it possible to format stuff like this: target xxx { lun 0 { path /foo/bar; size 4G; } } Sponsored by: The FreeBSD Foundation
* MFC r273816:trasz2014-11-293-47/+21
| | | | | | Simplify code; no functional changes. Sponsored by: The FreeBSD Foundation
* MFC r273813:trasz2014-11-297-8/+193
| | | | | | Add discovery-filter. This makes it possible to restrict which targets are returned during discovery based on initiator portal, name, and CHAP credentials.
* MFC r272484:rodrigc2014-11-293-4/+14
| | | | | | Add dependencies to various libraries to libzfs and libzpool. Submitted by: sef
* MFC r274020:hselasky2014-11-291-2/+2
| | | | Reduce boot verbosity.
* MFC r275109:hselasky2014-11-295-15/+29
| | | | | | Add support for 64-byte CQE size. Sponsored by: Mellanox Technologies
* MFC r274744.cy2014-11-281-0/+11
| | | | | | | | | | | | | | | | Set the current vnet inside the ioctl handler for ipfilter. Without this fix, the vnet was NULL and would crash. This fix is similar to what was done inside the ioctl handler for PF. Tested by: (1) Boot a kernel with "options VIMAGE" enabled (2) Type: echo "map lo0 from 10.0.0.0/24 to ! 10.0.0.0/24 -> 127.0.0.1/32" > /etc/ipnat.rules ; service ipnat onerestart PR: 176992 Differential Revision: https://reviews.freebsd.org/D1191
* MFC r274017, r274088 and r275205:hselasky2014-11-281-8/+25
| | | | | | Provide an on-stack temporary buffer for small IOCTL requests. Avoiding a memory allocation per IOCTL request can give a significant speedup for applications which heavily rely on IOCTLs.
* MFC r274756:mav2014-11-281-17/+1
| | | | | | | Remove residual xpt_release_device() call left after r272406 cleanup. Excessive release here could trigger use-after-free condition and kernel panic on LUN 0 disconnect.
* MFC r274840, r274940:mav2014-11-281-3/+7
| | | | Make iSCSI frontend less chatty while waiting for tasks termination.
* MFC r274790: Remove bunch of unused lun variables.mav2014-11-281-15/+0
|
* MFC r274789: Reduce race between LUN destruction and request arrival.mav2014-11-281-3/+5
|
* MFC r274786: Log errors for absent LUNs too.mav2014-11-281-5/+3
|
* MFC r273770:trasz2014-11-271-13/+27
| | | | | | Fix build after previous commit. While here, improve error messages. Sponsored by: The FreeBSD Foundation
* MFC r273768:trasz2014-11-272-30/+59
| | | | | | | | | | Remove the distinction between strings and numbers from ctld(8) yacc parser. This fixes problems with passing strings that look like numbers to clauses that expect strings; previously it caused syntax errors and had to be worked by user, using quotes. The workaround introduced in r267833 is no longer neccessary. Sponsored by: The FreeBSD Foundation
* MFC r273690:trasz2014-11-271-2/+8
| | | | | | Mention VAAI and ODX in ctl(4). Sponsored by: The FreeBSD Foundation
* MFC r274750:ae2014-11-271-29/+25
| | | | | Use geom attribute "PART::type" to determine partition type and choose relevant fsck_xxx utility.
* MFC r273774:hselasky2014-11-268-9/+69
| | | | | | | | | Make some infiniband example utilities easily buildable: - Add new Makefiles. - Add more include directories when building. - Fixed a printf() formatting string. Sponsored by: Mellanox Technologies
* MFC r274724:np2014-11-262-0/+3
| | | | cxgbe(4): figure out the max payload size and save it for later.
* MFC r274116:dteske2014-11-2531-3/+5995
| | | | | | | | | | | | | | | | | Add new libraries/utilities for data throughput visualization. dpv(3): dialog progress view library dpv(1): stream data from stdin or multiple paths with dialog progress view figpar(3): configuration file parsing library MFC r274120, r274121, r274123, r274124, r274144, r274146, r274159, r274192, r274203, r274209, r274226, r274270, and r274851: Fixes following r274116 Reviews: D714 Relnotes: New libdpv/libfigpar and dpv(1) utility Reviewed by: jelischer, shurd Discussed at: MeetBSD California 2014 Vendor/Dev Summit Discussed on: -current Thanks to: ngie, ian, jelischer, shurd, bapt
* MFC r274900:dim2014-11-251-2/+2
| | | | | | | | | | | | | | | | | | | | | | Fix the following -Werror warnings from clang 3.5.0, while building bsnmpd's snmp_hostres module: usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.c:204:20: error: absolute value function 'abs' given an argument of type 'const long' but has parameter of type 'int' which may cause truncation of value [-Werror,-Wabsolute-value] str[9] = (u_char)(abs(tm->tm_gmtoff) / 3600); ^ usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.c:204:20: note: use function 'labs' instead str[9] = (u_char)(abs(tm->tm_gmtoff) / 3600); ^~~ labs usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.c:205:22: error: absolute value function 'abs' given an argument of type 'const long' but has parameter of type 'int' which may cause truncation of value [-Werror,-Wabsolute-value] str[10] = (u_char)((abs(tm->tm_gmtoff) % 3600) / 60); ^ usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.c:205:22: note: use function 'labs' instead str[10] = (u_char)((abs(tm->tm_gmtoff) % 3600) / 60); ^~~ labs Since tm::tm_gmtoff is a long, use labs(3) instead.
* MFC r274898:dim2014-11-251-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix the following -Werror warnings from clang 3.5.0, while building usr.sbin/rtadvd: usr.sbin/rtadvd/rtadvd.c:1291:7: error: taking the absolute value of unsigned type 'unsigned int' has no effect [-Werror,-Wabsolute-value] abs(preferred_time - pfx->pfx_pltimeexpire) > rai->rai_clockskew) { ^ usr.sbin/rtadvd/rtadvd.c:1291:7: note: remove the call to 'abs' since unsigned values cannot be negative abs(preferred_time - pfx->pfx_pltimeexpire) > rai->rai_clockskew) { ^~~ usr.sbin/rtadvd/rtadvd.c:1324:7: error: taking the absolute value of unsigned type 'unsigned int' has no effect [-Werror,-Wabsolute-value] abs(valid_time - pfx->pfx_vltimeexpire) > rai->rai_clockskew) { ^ usr.sbin/rtadvd/rtadvd.c:1324:7: note: remove the call to 'abs' since unsigned values cannot be negative abs(valid_time - pfx->pfx_vltimeexpire) > rai->rai_clockskew) { ^~~ 2 errors generated. These warnings occur because both preferred_time and pfx_pltimeexpire are uint32_t's, so the subtraction expression is also unsigned, and calling abs() is a no-op. However, the intention was to look at the absolute difference between the two unsigned quantities. Introduce a small static function to clarify what we're doing, and call that instead. Reviewed by: hrs Differential Revision: https://reviews.freebsd.org/D1197
* MFC r274856:dim2014-11-251-1/+1
| | | | | | | | | Avoid undefined behaviour in gas's rotate_left() macro for n == 0. Otherwise, clang can effectively remove the first iteration of the for loops where this macro is invoked, and as a result, "cmp r0, #99" fails to assemble. Obtained from: joerg at netbsd
* MFC r274847:dim2014-11-251-9/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | Fix the following -Werror warnings from clang 3.5.0, while building usr.bin/locate: usr.bin/locate/locate/util.c:249:29: error: taking the absolute value of unsigned type 'unsigned int' has no effect [-Werror,-Wabsolute-value] MAXPATHLEN, abs(i) < abs(htonl(i)) ? i : htonl(i)); ^ usr.bin/locate/locate/util.c:249:29: note: remove the call to 'abs' since unsigned values cannot be negative MAXPATHLEN, abs(i) < abs(htonl(i)) ? i : htonl(i)); ^~~ usr.bin/locate/locate/util.c:274:32: error: taking the absolute value of unsigned type 'unsigned int' has no effect [-Werror,-Wabsolute-value] MAXPATHLEN, abs(word) < abs(htonl(word)) ? word : ^ usr.bin/locate/locate/util.c:274:32: note: remove the call to 'abs' since unsigned values cannot be negative MAXPATHLEN, abs(word) < abs(htonl(word)) ? word : ^~~ The problem is that ntohl() always returns an unsigned quantity. In this case, it's expected to be cast back to a signed integer, but to stop complaints about abs() we just store it into an integer, and don't call ntohl() again. Reviewed by: ngie Differential Revision: https://reviews.freebsd.org/D1196
* MFC r274846:dim2014-11-251-1/+2
| | | | | | | | | | | | | | | | | | | | | Fix the following -Werror warning from clang 3.5.0, while building usr.bin/cpio on amd64 (or any arch with 64-bit time_t): contrib/libarchive/cpio/cpio.c:1143:6: error: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Werror,-Wabsolute-value] if (abs(mtime - now) > (365/2)*86400) ^ contrib/libarchive/cpio/cpio.c:1143:6: note: use function 'labs' instead if (abs(mtime - now) > (365/2)*86400) ^~~ labs 1 error generated. This is because time_t is a long on amd64. To avoid the warning, just copy the equivalent test from a few lines before, which is used in the Windows case, and which is type safe. Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D1198
* MFC r273585:trasz2014-11-241-10/+17
| | | | | | Improve ctld.conf example. Sponsored by: The FreeBSD Foundation
* MFC r273470:trasz2014-11-241-4/+4
| | | | | | Fix ctl.conf example to use proper paths to ZVOLs. Sponsored by: The FreeBSD Foundation
* MFC r273467:trasz2014-11-241-4/+4
| | | | | | Comment out parts about iSER; it's not implemented. Sponsored by: The FreeBSD Foundation
* MFC r273584:trasz2014-11-243-20/+36
| | | | | | Make the initiator-name and initiator-portal checks a little nicer. Sponsored by: The FreeBSD Foundation
* MFC 273583:trasz2014-11-241-11/+11
| | | | | | Tidy up the login code; no functional changes. Sponsored by: The FreeBSD Foundation
* MFC r273760:kevlo2014-11-241-3/+3
| | | | Fix prototypes.
* MFC r274407grehan2014-11-241-0/+22
| | | | | | | | | | Fix incorrect reading of 32-bit modinfo by 64-bit loaders. The various structures in the mod_metadata set of a FreeBSD kernel and modules contain pointers. The FreeBSD loader correctly deals with a mismatch in loader and kernel pointer size (e.g. 32-bit i386/ppc loader, loading 64-bit amd64/ppc64 kernels), but wasn't dealing with the inverse case where a 64-bit loader was loading a 32-bit kernel.
OpenPOWER on IntegriCloud