]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/log
FreeBSD/stable/10.git
8 years agoMFC r269902,r270101:
ngie [Tue, 1 Dec 2015 18:27:38 +0000 (18:27 +0000)]
MFC r269902,r270101:

r269902:

Convert bin/sh/tests to ATF

The new code uses a "test discovery mechanism" to determine
what tests are available for execution

The test shell can be specified via:

  kyua test -v test_suites.FreeBSD.bin.sh.test_shell=/path/to/test/sh

Sponsored by: EMC / Isilon Storage Division
Approved by: jmmv (mentor)
Reviewed by: jilles (maintainer)

r270101 (by jilles):

sh: Don't hardcode relative paths in the tests stderr files.

These paths have had to be adjusted to changes in the testsuite runner
several times, so modify the tests to remove the need for such adjustment.

A cp in functional_test.sh is now unneeded, but this matters little in
performance.

git-svn-id: svn://svn.freebsd.org/base/stable/10@291604 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r285118:
ngie [Tue, 1 Dec 2015 18:21:25 +0000 (18:21 +0000)]
MFC r285118:
r285118 (by jmmv):

Add missing shebang

Plain test programs are not preprocessed by the build system (as opposed to
ATF test cases, which automatically gain a shebang pointing at atf-sh), so
we must take care of providing the shebang ourselves.

I'm not sure why this was not causing problems with Kyua 0.11, but the
upcoming 0.12 release chokes on this particular issue.

git-svn-id: svn://svn.freebsd.org/base/stable/10@291603 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r285140:
ngie [Tue, 1 Dec 2015 18:19:23 +0000 (18:19 +0000)]
MFC r285140:
r285140 (by oshogbo):

Add fdclose(3) function.

This function is equivalent to fclose(3) function except that it
does not close the underlying file descriptor.
fdclose(3) is step forward to make FILE structure private.

Reviewed by: wblock, jilles, jhb, pjd
Approved by: pjd (mentor)
Differential Revision: https://reviews.freebsd.org/D2697

git-svn-id: svn://svn.freebsd.org/base/stable/10@291602 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r278932:
ngie [Tue, 1 Dec 2015 07:32:35 +0000 (07:32 +0000)]
MFC r278932:
r278932 (by pfg):

libc: clean some set-but-not-used errors.

These were found by gcc 5.0 on Dragonfly BSD, however I
made no attempt to silence the false positives.

Obtained from: DragonFly (cf515c3a6f3a8964ad592e524442bc628f8ed63b)

git-svn-id: svn://svn.freebsd.org/base/stable/10@291573 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r269326:
ngie [Tue, 1 Dec 2015 07:16:05 +0000 (07:16 +0000)]
MFC r269326:
r269326 (by n_hibma):

Fix the example: free the memory that was allocated by getline().

git-svn-id: svn://svn.freebsd.org/base/stable/10@291572 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC: r290970
rmacklem [Tue, 1 Dec 2015 02:30:41 +0000 (02:30 +0000)]
MFC: r290970
mnt_stat.f_iosize (which is used to set bo_bsize) must be set to
the largest size of buffer cache block or the mapping of the buffer
is bogus. When a mount with rsize=4096,wsize=4096 was done, f_iosize
would be set to 4096. This resulted in corrupted directory data, since
the buffer cache block size for directories is NFS_DIRBLKSIZ (8192).
This patch fixes the code so that it always sets f_iosize to at least
NFS_DIRBLKSIZ.

git-svn-id: svn://svn.freebsd.org/base/stable/10@291551 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r291004:
smh [Tue, 1 Dec 2015 00:53:03 +0000 (00:53 +0000)]
MFC r291004:

Fix early kernel dump via dumpdev env

Sponsored by: Multiplay

git-svn-id: svn://svn.freebsd.org/base/stable/10@291548 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r288153:
smh [Tue, 1 Dec 2015 00:48:31 +0000 (00:48 +0000)]
MFC r288153:

Use kenv 'dumpdev' in the same way as etc/rc.d/dumpon

Sponsored by: Multiplay

git-svn-id: svn://svn.freebsd.org/base/stable/10@291547 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r291143: Update Qlogic 23XX firmware from 3.03.26 to 3.03.28
mav [Mon, 30 Nov 2015 23:00:22 +0000 (23:00 +0000)]
MFC r291143: Update Qlogic 23XX firmware from 3.03.26 to 3.03.28

git-svn-id: svn://svn.freebsd.org/base/stable/10@291543 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r291132: Update firmware for QLogic 22xx from 2.02.06 to 2.02.08.
mav [Mon, 30 Nov 2015 22:59:32 +0000 (22:59 +0000)]
MFC r291132: Update firmware for QLogic 22xx from 2.02.06 to 2.02.08.

git-svn-id: svn://svn.freebsd.org/base/stable/10@291542 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r289755: Remove residual verbosity.
mav [Mon, 30 Nov 2015 22:58:48 +0000 (22:58 +0000)]
MFC r289755: Remove residual verbosity.

firmware_register() already reports errors.

git-svn-id: svn://svn.freebsd.org/base/stable/10@291541 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r291365, r291369: One more round of port scanner rewrite.
mav [Mon, 30 Nov 2015 21:58:51 +0000 (21:58 +0000)]
MFC r291365, r291369: One more round of port scanner rewrite.

 - Make scan aborted by event restart immediately and infinitely.
 - Improve handling of some loop events from firmware.
 - Remove loop down timer, adding its functionality to scanner thread.
 - Some more unification and simplification.

git-svn-id: svn://svn.freebsd.org/base/stable/10@291532 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r291265: Rename ASYNC_LIP_F8 to ASYNC_LIP_NOS_OLS_RECV.
mav [Mon, 30 Nov 2015 21:57:54 +0000 (21:57 +0000)]
MFC r291265: Rename ASYNC_LIP_F8 to ASYNC_LIP_NOS_OLS_RECV.

New name better repsents its meaning for modern chips.

git-svn-id: svn://svn.freebsd.org/base/stable/10@291531 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r291221: Remove "disable" hint, which duplicates system-wide "disabled".
mav [Mon, 30 Nov 2015 21:57:16 +0000 (21:57 +0000)]
MFC r291221: Remove "disable" hint, which duplicates system-wide "disabled".

git-svn-id: svn://svn.freebsd.org/base/stable/10@291530 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r291209: Fix target mode support for Qlogic 2200 FC adapters.
mav [Mon, 30 Nov 2015 21:56:31 +0000 (21:56 +0000)]
MFC r291209: Fix target mode support for Qlogic 2200 FC adapters.

Now target mode works for all supported FC adapters except ancient 2100,
which is not tested.

git-svn-id: svn://svn.freebsd.org/base/stable/10@291529 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r291188: Rip off target mode support for parallel SCSI QLogic adapters.
mav [Mon, 30 Nov 2015 21:55:35 +0000 (21:55 +0000)]
MFC r291188: Rip off target mode support for parallel SCSI QLogic adapters.

Hacks to enable target mode there complicated code, while didn't really
work.  And for outdated hardware fixing it is not really interesting.

Initiator mode tested with Qlogic 1080 adapter is still working fine.

git-svn-id: svn://svn.freebsd.org/base/stable/10@291528 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r290138, r290139: Some updates to isp(4) manual page.
mav [Mon, 30 Nov 2015 21:53:38 +0000 (21:53 +0000)]
MFC r290138, r290139: Some updates to isp(4) manual page.

git-svn-id: svn://svn.freebsd.org/base/stable/10@291526 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r275374: Document ISP 2532 support and hint.isp.0.vports tunable.
mav [Mon, 30 Nov 2015 21:52:19 +0000 (21:52 +0000)]
MFC r275374: Document ISP 2532 support and hint.isp.0.vports tunable.

git-svn-id: svn://svn.freebsd.org/base/stable/10@291524 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r291163:
mav [Mon, 30 Nov 2015 21:47:11 +0000 (21:47 +0000)]
MFC r291163:
Explicitly call SEND CHANGE REQUEST for pre-24xx chips in target mode.

While later firmware always registers for RSCN requests, older one does
it only in initiator mode.  But in target mode there RSCN can be the only
way to detect gone intiator.

git-svn-id: svn://svn.freebsd.org/base/stable/10@291523 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r291162: Generate fake ISPASYNC_CHANGE_PDB on fake login on pre-24xx.
mav [Mon, 30 Nov 2015 21:46:21 +0000 (21:46 +0000)]
MFC r291162: Generate fake ISPASYNC_CHANGE_PDB on fake login on pre-24xx.

This makes port scanner fix absent port ID for added initiator.

git-svn-id: svn://svn.freebsd.org/base/stable/10@291522 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r291161: Gracefully stop firmware before resetting chip when changing role.
mav [Mon, 30 Nov 2015 21:45:24 +0000 (21:45 +0000)]
MFC r291161: Gracefully stop firmware before resetting chip when changing role.

git-svn-id: svn://svn.freebsd.org/base/stable/10@291521 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r291160: Add some more asynchronous event status codes.
mav [Mon, 30 Nov 2015 21:44:38 +0000 (21:44 +0000)]
MFC r291160: Add some more asynchronous event status codes.

git-svn-id: svn://svn.freebsd.org/base/stable/10@291520 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r291159: Add more mailbox command codes.
mav [Mon, 30 Nov 2015 21:44:03 +0000 (21:44 +0000)]
MFC r291159: Add more mailbox command codes.

git-svn-id: svn://svn.freebsd.org/base/stable/10@291519 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r291147: Increase maximal value of vports tunable to 254.
mav [Mon, 30 Nov 2015 21:43:20 +0000 (21:43 +0000)]
MFC r291147: Increase maximal value of vports tunable to 254.

I am not sure this value is really viable yet, but that is what chips
officially support in NPIV mode (in loop mode maximum is 125).

git-svn-id: svn://svn.freebsd.org/base/stable/10@291518 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r291144: Fix target mode with fabric for pre-24xx chips.
mav [Mon, 30 Nov 2015 21:42:35 +0000 (21:42 +0000)]
MFC r291144: Fix target mode with fabric for pre-24xx chips.

For those chips we are not receiving login events, adding initiators
based on ATIO requests.  But there is no port ID in that structure, so
in fabric mode we have to explicitly fetch it from firmware to be able
to do normal scan after that.

git-svn-id: svn://svn.freebsd.org/base/stable/10@291517 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r291099: Some cosmetics for ancient cards.
mav [Mon, 30 Nov 2015 21:41:56 +0000 (21:41 +0000)]
MFC r291099: Some cosmetics for ancient cards.

git-svn-id: svn://svn.freebsd.org/base/stable/10@291516 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r291092: Optimize SNS_GID_FT request scratch memory usage.
mav [Mon, 30 Nov 2015 21:41:06 +0000 (21:41 +0000)]
MFC r291092: Optimize SNS_GID_FT request scratch memory usage.

Now with present 4K of scratch we can fetch up to 508 ports (16 more).

git-svn-id: svn://svn.freebsd.org/base/stable/10@291515 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r291080: Another round of port scanner rewrite.
mav [Mon, 30 Nov 2015 21:40:20 +0000 (21:40 +0000)]
MFC r291080: Another round of port scanner rewrite.

This change simplifies and unifies port adding/updating for loop and
fabric scanners.  It also fixes problems with scanning restarts due to
concurrent port databases changes.  It also fixes many cosmetic issues.

git-svn-id: svn://svn.freebsd.org/base/stable/10@291514 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r291014: Simplify fabric tasting code.
mav [Mon, 30 Nov 2015 21:39:33 +0000 (21:39 +0000)]
MFC r291014: Simplify fabric tasting code.

Except cosmetic changes this removes fabric ports from our port database.
It is always firmware duty to manage them, so driver don't need to worry.

git-svn-id: svn://svn.freebsd.org/base/stable/10@291513 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r291013: Remove some confusions between loopid and nphdl.
mav [Mon, 30 Nov 2015 21:38:51 +0000 (21:38 +0000)]
MFC r291013: Remove some confusions between loopid and nphdl.

Modern cards in most cases operate abstract port handles, that have no
any relation to real loop IDs.  Leave loopid used only where it really
goes about local loop IDs.

While there, fix few more cases where LUNs were still printed in decimal.

git-svn-id: svn://svn.freebsd.org/base/stable/10@291512 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r291000: Register our FC4 Features in SNS.
mav [Mon, 30 Nov 2015 21:38:05 +0000 (21:38 +0000)]
MFC r291000: Register our FC4 Features in SNS.

git-svn-id: svn://svn.freebsd.org/base/stable/10@291511 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r290993, r290994: Unify and cleanup FC ports scan.
mav [Mon, 30 Nov 2015 21:37:22 +0000 (21:37 +0000)]
MFC r290993, r290994: Unify and cleanup FC ports scan.

git-svn-id: svn://svn.freebsd.org/base/stable/10@291510 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r290981: Off-by-one correctiont to r290980.
mav [Mon, 30 Nov 2015 21:36:23 +0000 (21:36 +0000)]
MFC r290981: Off-by-one correctiont to r290980.

git-svn-id: svn://svn.freebsd.org/base/stable/10@291509 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r290980: Make firmware handle virtual ports SNS logins for us.
mav [Mon, 30 Nov 2015 21:35:43 +0000 (21:35 +0000)]
MFC r290980: Make firmware handle virtual ports SNS logins for us.

git-svn-id: svn://svn.freebsd.org/base/stable/10@291508 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r290978: Add real initial support for RQSTYPE_RPT_ID_ACQ.
mav [Mon, 30 Nov 2015 21:35:03 +0000 (21:35 +0000)]
MFC r290978: Add real initial support for RQSTYPE_RPT_ID_ACQ.

git-svn-id: svn://svn.freebsd.org/base/stable/10@291507 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r290830: Fix/improve CRN tracking.
mav [Mon, 30 Nov 2015 21:34:17 +0000 (21:34 +0000)]
MFC r290830: Fix/improve CRN tracking.

git-svn-id: svn://svn.freebsd.org/base/stable/10@291506 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r290507: Rework r290504.
mav [Mon, 30 Nov 2015 21:33:30 +0000 (21:33 +0000)]
MFC r290507: Rework r290504.

git-svn-id: svn://svn.freebsd.org/base/stable/10@291505 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r290506: Specify VP when sending a marker.
mav [Mon, 30 Nov 2015 21:32:52 +0000 (21:32 +0000)]
MFC r290506: Specify VP when sending a marker.

git-svn-id: svn://svn.freebsd.org/base/stable/10@291504 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r290504: Make ISP_SLEEP() really sleep instead of spinning.
mav [Mon, 30 Nov 2015 21:32:12 +0000 (21:32 +0000)]
MFC r290504: Make ISP_SLEEP() really sleep instead of spinning.

While there, simplify the wait logic.

git-svn-id: svn://svn.freebsd.org/base/stable/10@291503 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r290160: Remove some unneeded code.
mav [Mon, 30 Nov 2015 21:31:34 +0000 (21:31 +0000)]
MFC r290160: Remove some unneeded code.

git-svn-id: svn://svn.freebsd.org/base/stable/10@291502 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r290159: Remove reset delays for which I see neither explanation nor need.
mav [Mon, 30 Nov 2015 21:30:56 +0000 (21:30 +0000)]
MFC r290159: Remove reset delays for which I see neither explanation nor need.

git-svn-id: svn://svn.freebsd.org/base/stable/10@291501 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r290147: Fix and improve error masking and reporting.
mav [Mon, 30 Nov 2015 21:30:18 +0000 (21:30 +0000)]
MFC r290147: Fix and improve error masking and reporting.

git-svn-id: svn://svn.freebsd.org/base/stable/10@291500 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r290118: Change the way how target mode is enabled on 23xx chips.
mav [Mon, 30 Nov 2015 21:29:38 +0000 (21:29 +0000)]
MFC r290118: Change the way how target mode is enabled on 23xx chips.

Without docs I am not completely sure about this, but on my tests new
method works better then previous, at least with our latest firmware.

git-svn-id: svn://svn.freebsd.org/base/stable/10@291499 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r290104: Improve/fix loop scanning routine.
mav [Mon, 30 Nov 2015 21:28:53 +0000 (21:28 +0000)]
MFC r290104: Improve/fix loop scanning routine.

For the most of chips (except anscient ones) port handlers have no relation
to port IDs.  In such situation old code scanning first 125 handlers was
quite naive.  Instead of doing that, send to chip single request to get full
list of port handlers available on specific virtual port and scan only them.

Old code had problems with case of several virtual ports enabled, when port
handlers allocated from global address space could easily go above 125.
This change was successfully tested on 23xx, 24xx and 25xx chips in loop
mode with 4 virtual initiator ports, each seing 50 virtual target ports.

git-svn-id: svn://svn.freebsd.org/base/stable/10@291498 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r289138: Remove legacy CHS geometry from dmesg and unify capacity outputs.
mav [Mon, 30 Nov 2015 21:23:30 +0000 (21:23 +0000)]
MFC r289138: Remove legacy CHS geometry from dmesg and unify capacity outputs.

git-svn-id: svn://svn.freebsd.org/base/stable/10@291497 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r291383: Fix panic when trying to sort unsupported command in OOA queue.
mav [Mon, 30 Nov 2015 21:16:26 +0000 (21:16 +0000)]
MFC r291383: Fix panic when trying to sort unsupported command in OOA queue.

Handle unsupported commands as not conflicting/blocking.

git-svn-id: svn://svn.freebsd.org/base/stable/10@291496 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC: r290959
rmacklem [Mon, 30 Nov 2015 13:46:22 +0000 (13:46 +0000)]
MFC: r290959
When the smbfs iod thread (smb_iod_thread()) is shutting down, smb_iod_destroy()
would call smb_iod_request(). This call could return as soon as the
wakeup(evp) in smb_iod_main() call is done and then could destroy
the mutexes. This caused a race with the rest of smb_iod_main()s
use of these mutexes.
A crash reported on freebsd-stable@ by Christian Kratzer was
diagnosed as a use of one of these mutexes after it was destroyed.
This patch moves destruction of the mutexes from smb_iod_destroy()
to the end of smb_iod_thread(), so that they aren't destroyed before
the thread is done with them. Christian comfirmed that the patch
stopped the crashes from happening.

git-svn-id: svn://svn.freebsd.org/base/stable/10@291489 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r291207:
smh [Mon, 30 Nov 2015 09:13:04 +0000 (09:13 +0000)]
MFC r291207:

Fix dumpon compatibility with dumpdev kenv

Sponsored by: Multiplay

git-svn-id: svn://svn.freebsd.org/base/stable/10@291480 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r290855: Increase reset assertion time from 10 to 100us.
mav [Sun, 29 Nov 2015 17:14:05 +0000 (17:14 +0000)]
MFC r290855: Increase reset assertion time from 10 to 100us.

On my own tests I see no effect from this change, but I also can't
reproduce the reported problem in general.

PR: 127391
PR: 204554
Submitted by: satz@iranger.com

git-svn-id: svn://svn.freebsd.org/base/stable/10@291456 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r289895:
kib [Sun, 29 Nov 2015 14:44:40 +0000 (14:44 +0000)]
MFC r289895:
Reduce the amount of calls to VOP_BMAP() made from the local vnode
pager.

MFC r291157, r291158:
Include the pages before/after the requested page, that fit into the
reqblock, into the calculation of the size of run of pages.

Tested by: pho

git-svn-id: svn://svn.freebsd.org/base/stable/10@291454 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r291126:
mav [Sat, 28 Nov 2015 17:26:46 +0000 (17:26 +0000)]
MFC r291126:
Add API to obtain primary enclosure name and ID for /dev/sesX devices.

sesX device number may change between reboots, so to properly identify
the instance we need more data.  Name and ID reported here may mach ones
reported by SCSI device, but that is not really required by specs.

Sponsored by: iXsystems, Inc.

git-svn-id: svn://svn.freebsd.org/base/stable/10@291429 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r291306:
gjb [Sat, 28 Nov 2015 02:17:04 +0000 (02:17 +0000)]
MFC r291306:
 Fix tmpfs(5) '/tmp' mount point.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@291417 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r290820: Add NULL check to make Coverity happy.
mav [Fri, 27 Nov 2015 15:27:43 +0000 (15:27 +0000)]
MFC r290820: Add NULL check to make Coverity happy.

git-svn-id: svn://svn.freebsd.org/base/stable/10@291389 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r290670: Modify target port groups logic in CTL.
mav [Fri, 27 Nov 2015 15:26:19 +0000 (15:26 +0000)]
MFC r290670: Modify target port groups logic in CTL.

 - Introduce "ha_shared" port option, which being set to "on" moves the
port into separate port group, shared between HA nodes.  This allows to
better handle cases when iSCSI portals are bound to CARP address that can
dynamically move between nodes.  Some initiators (at least VMware) don't
detect that after iSCSI reconnect they've attached to different SCSI port
from different port group, that totally breakes ALUA status parsing.
In theory, I believe, it should be enough to have different iSCSI portal
group tags on different nodes to make initiators detect this condition,
but it seems like VMware ignores those values, and even full LUN retaste
forced by UA does not help.
 - Make CTL report up to three port groups: 1 -- non-HA mode or ports
with "ha_shared" option set, 2 -- HA node 1, 3 -- HA node 2.
 - Report Transitioning state for all port groups when HA interlink is
connected, but neither of nodes is primary for the LUN.

git-svn-id: svn://svn.freebsd.org/base/stable/10@291388 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r290615: Introduce portal group options in ctl.conf.
mav [Fri, 27 Nov 2015 15:19:36 +0000 (15:19 +0000)]
MFC r290615: Introduce portal group options in ctl.conf.

While CTL has concept of port options, used at least for iSCSI ports now,
before this change it was impossible to set them manually.  There still
no user-configurable port options now, but I am planning to change that.

git-svn-id: svn://svn.freebsd.org/base/stable/10@291387 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r291061: Improve locking of sg_threadcount.
mav [Fri, 27 Nov 2015 14:38:36 +0000 (14:38 +0000)]
MFC r291061: Improve locking of sg_threadcount.

git-svn-id: svn://svn.freebsd.org/base/stable/10@291384 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r291097:
ume [Fri, 27 Nov 2015 03:48:02 +0000 (03:48 +0000)]
MFC r291097:

  Don't truncate an interface name when -W option is specified.

git-svn-id: svn://svn.freebsd.org/base/stable/10@291381 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r291266:
kib [Fri, 27 Nov 2015 01:03:43 +0000 (01:03 +0000)]
MFC r291266:
Correct the number of DTLB entries reported for the CPUID Leaf 2
descriptor 0x6c.

git-svn-id: svn://svn.freebsd.org/base/stable/10@291378 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC 290028:
gnn [Thu, 26 Nov 2015 02:24:45 +0000 (02:24 +0000)]
MFC 290028:
Turning on IPSEC used to introduce a slight amount of performance
degradation (7%) for host host TCP connections over 10Gbps links,
even when there were no secuirty policies in place. There is no
change in performance on 1Gbps network links. Testing GENERIC vs.
GENERIC-NOIPSEC vs. GENERIC with this change shows that the new
code removes any overhead introduced by having IPSEC always in the
kernel.

Differential Revision: D3993
Sponsored by: Rubicon Communications (Netgate)

git-svn-id: svn://svn.freebsd.org/base/stable/10@291355 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r291172:
ngie [Thu, 26 Nov 2015 00:56:07 +0000 (00:56 +0000)]
MFC r291172:

Use __MAKE_SHELL instead of HOST_SHELL when generating aton_ether_subr.c
(HOST_SHELL is used in NetBSD)

This fixes permission denied issues when gen_ether_subr is not executable

Reported by: José Pérez <fbl@aoek.com>
Suggested by: bdrewery, sjg

git-svn-id: svn://svn.freebsd.org/base/stable/10@291345 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoFix bad MFC (r291175)
ngie [Thu, 26 Nov 2015 00:48:09 +0000 (00:48 +0000)]
Fix bad MFC (r291175)

Replace SRCTOP with the relevant path via .CURDIR

Pointyhat to: ngie
Sponsored by: EMC / Isilon Storage Division

git-svn-id: svn://svn.freebsd.org/base/stable/10@291343 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r288006,r288031,r288032,r288033:
ngie [Wed, 25 Nov 2015 21:43:05 +0000 (21:43 +0000)]
MFC r288006,r288031,r288032,r288033:

r288006 (by rodrigc):

Add declarations to eliminate -Wmissing-prototypes warnings

r288031 (by rodrigc):

Remove names from some prototypes

r288032 (by rodrigc):

Remove names from some prototypes

r288033 (by rodrigc):

Use ANSI C prototypes.  Eliminates -Wold-style-definition warnings.

git-svn-id: svn://svn.freebsd.org/base/stable/10@291336 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r291012:
smh [Wed, 25 Nov 2015 08:58:07 +0000 (08:58 +0000)]
MFC r291012:

Document loader(8) dumpdev option

Sponsored by: Multiplay

git-svn-id: svn://svn.freebsd.org/base/stable/10@291295 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r258245:
ngie [Wed, 25 Nov 2015 08:51:43 +0000 (08:51 +0000)]
MFC r258245:
r258245 (by eadler):

Add missing include files for the printf_l and scanf_l man pages.

Reported by: swildner@dragonflybsd.org

git-svn-id: svn://svn.freebsd.org/base/stable/10@291294 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r264737:
ngie [Wed, 25 Nov 2015 08:19:01 +0000 (08:19 +0000)]
MFC r264737:

Discussed with: jilles

r264737 (by jilles):

libc/stdio: Fail fdopen() on an execute-only fd.

An execute-only fd (opened with O_EXEC) allows neither read() nor write()
and is therefore incompatible with all stdio modes. Therefore, the [EINVAL]
error applies.

Also adjust the similar check in freopen() with a NULL path, even though
this checks an fd which is already from a FILE.

git-svn-id: svn://svn.freebsd.org/base/stable/10@291293 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC: r289425
jkim [Tue, 24 Nov 2015 23:04:03 +0000 (23:04 +0000)]
MFC: r289425

Add support for ARM EABI.  Note it is not a direct MFC because some macros
are not defined in this branch.

git-svn-id: svn://svn.freebsd.org/base/stable/10@291268 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r291146:
hselasky [Tue, 24 Nov 2015 12:28:36 +0000 (12:28 +0000)]
MFC r291146:
Add support for Kana and Eisu keys to the USB keyboard driver.

PR: 204709

git-svn-id: svn://svn.freebsd.org/base/stable/10@291254 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r291145:
hselasky [Tue, 24 Nov 2015 12:25:34 +0000 (12:25 +0000)]
MFC r291145:
Fix scancodes for Kana and Eisu keys.

PR: 204709

git-svn-id: svn://svn.freebsd.org/base/stable/10@291253 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r290326:
hselasky [Tue, 24 Nov 2015 12:17:00 +0000 (12:17 +0000)]
MFC r290326:
Relax the BUS_DMA_KEEP_PG_OFFSET requirement to allow optimising
allocation of DMA bounce buffers.

Discussed with: ian @

git-svn-id: svn://svn.freebsd.org/base/stable/10@291250 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r277082:
smh [Tue, 24 Nov 2015 11:09:39 +0000 (11:09 +0000)]
MFC r277082:

Update to the shared code for Intel I40E drivers (by jfv)

Sponsored by: Multiplay

git-svn-id: svn://svn.freebsd.org/base/stable/10@291248 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoBelatedly bump __FreeBSD_version after r291215
smh [Tue, 24 Nov 2015 09:41:50 +0000 (09:41 +0000)]
Belatedly bump __FreeBSD_version after r291215

Due to the change in args for g_dev_setdumpdev by r291215 belatedly bump
__FreeBSD_version to allow any potential consumers to check for this, as
requested by delphij.

This is a direct commit to stable/10

Approved by: so (delphij)
Sponsored by: Multiplay

git-svn-id: svn://svn.freebsd.org/base/stable/10@291243 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r286999:
royger [Tue, 24 Nov 2015 08:41:27 +0000 (08:41 +0000)]
MFC r286999:

xen: allow disabling PV disks and nics

Sponsored by: Citrix Systems R&D

git-svn-id: svn://svn.freebsd.org/base/stable/10@291239 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r274366:
smh [Mon, 23 Nov 2015 18:00:55 +0000 (18:00 +0000)]
MFC r274366:

Add missing privilege check when setting the dump device.

Approved by: pjd, secteam (both no objections)
Sponsored by: Multiplay

git-svn-id: svn://svn.freebsd.org/base/stable/10@291215 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r290199:
jimharris [Mon, 23 Nov 2015 17:27:29 +0000 (17:27 +0000)]
MFC r290199:

  nvd, nvme: report stripesize through GEOM disk layer

Sponsored by: Intel

git-svn-id: svn://svn.freebsd.org/base/stable/10@291214 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r290198:
jimharris [Mon, 23 Nov 2015 17:26:20 +0000 (17:26 +0000)]
MFC r290198:

  nvme: fix race condition in split bio completion path

Sponsored by: Intel

git-svn-id: svn://svn.freebsd.org/base/stable/10@291213 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r277974:
hselasky [Mon, 23 Nov 2015 13:47:31 +0000 (13:47 +0000)]
MFC r277974:
Fix a bunch of -Wcast-qual warnings in sys/dev/usb/input/uhid.c, by
using __DECONST.  No functional change.

Differential Revision: https://reviews.freebsd.org/D1743

git-svn-id: svn://svn.freebsd.org/base/stable/10@291205 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r284722 and r284724:
hselasky [Mon, 23 Nov 2015 13:36:41 +0000 (13:36 +0000)]
MFC r284722 and r284724:
Fix endless recursion in ti(4)'s ti_ifmedia_upd(), found by clang 3.7.0.

git-svn-id: svn://svn.freebsd.org/base/stable/10@291202 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r291072, r291168 and r291169:
hselasky [Mon, 23 Nov 2015 13:30:13 +0000 (13:30 +0000)]
MFC r291072, r291168 and r291169:
Add the mlx5 and mlx5en modules to the i386 and amd64 kernel builds by
default and add a manual page for mlx5en. The mlx5 module contains
shared code for both infiniband and ethernet. The mlx5en module
contains specific code for ethernet functionality only. A mlx5ib
module is in the works for infiniband support.

Supported hardware:
- ConnectX-4: 10/20/25/40/50/56/100Gb/s speeds.
- ConnectX-4 LX: 10/25/40/50Gb/s speeds (low power consumption)

Refer to the mlx5en(4) manual page for a comprehensive list.

The team porting the mlx5 driver(s) to FreeBSD:
- Hans Petter Selasky <hselasky@freebsd.org>
- Oded Shanoon <odeds@mellanox.com>
- Meny Yossefi <menyy@mellanox.com>
- Shany Michaely <shanim@mellanox.com>
- Shahar Klein <shahark@mellanox.com>
- Daria Genzel <dariaz@mellanox.com>
- Mark Bloch <markb@mellanox.com>

Differential Revision: https://reviews.freebsd.org/D4163
Sponsored by: Mellanox Technologies

git-svn-id: svn://svn.freebsd.org/base/stable/10@291201 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r291071:
smh [Mon, 23 Nov 2015 12:19:36 +0000 (12:19 +0000)]
MFC r291071:

Fix zfs(8) set options

Sponsored by: Multiplay

git-svn-id: svn://svn.freebsd.org/base/stable/10@291196 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r290406:
smh [Mon, 23 Nov 2015 12:17:46 +0000 (12:17 +0000)]
MFC r290406:

Fix g_eli error loss conditions

Sponsored by: Multiplay

git-svn-id: svn://svn.freebsd.org/base/stable/10@291195 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r290708:
smh [Mon, 23 Nov 2015 12:10:29 +0000 (12:10 +0000)]
MFC r290708:

Fix ixl debug sysctls panic

Sponsored by: Multiplay

git-svn-id: svn://svn.freebsd.org/base/stable/10@291194 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r290856:
ngie [Mon, 23 Nov 2015 10:57:04 +0000 (10:57 +0000)]
MFC r290856:
r290856 (by bap):

also skip the definition of ':fopen_regular' to avoid the build to fail due to
unused variables defined by ATF macros

git-svn-id: svn://svn.freebsd.org/base/stable/10@291191 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r290572,r290646,r290848,r290849:
ngie [Mon, 23 Nov 2015 10:53:01 +0000 (10:53 +0000)]
MFC r290572,r290646,r290848,r290849:

r290572:

Integrate tools/regression/lib/libc/gen into the FreeBSD test suite
as lib/libc/tests/gen

The code in test-fnmatch that was used for generating:

- bin/sh/tests/builtins/case2.0
- bin/sh/tests/builtins/case3.0

has been left undisturbed. The target `make sh-tests` has been moved over
from tools/regression/lib/libc/gen/Makefile to
lib/libc/tests/gen/Makefile and made into a PHONY target

case2.0 and case3.0 test input generation isn't being done automatically.
This needs additional discussion.

Sponsored by: EMC / Isilon Storage Division

r290646:

Add missing licensing boilerplate to test-fnmatch.c

Carry over licensing author info from fnmatch_test.c (jilles@)

Sponsored by: EMC / Isilon Storage Division

r290848:

Fix -Wunused warnings

Sponsored by: EMC / Isilon Storage Division

r290849:

Fix -Wmissing-braces warnings by adding braces around all the
testcase inputs

Sponsored by: EMC / Isilon Storage Division

git-svn-id: svn://svn.freebsd.org/base/stable/10@291190 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r290870:
ngie [Mon, 23 Nov 2015 10:09:59 +0000 (10:09 +0000)]
MFC r290870:

Add NO_WERROR and WARNS to PROG_OVERRIDE_VARS for bsd.prog.mk compatibility

Sponsored by: EMC / Isilon Storage Division

git-svn-id: svn://svn.freebsd.org/base/stable/10@291189 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r264725:
ngie [Mon, 23 Nov 2015 09:58:56 +0000 (09:58 +0000)]
MFC r264725:

r264725 (by jilles):

libc: Add fopen() test to regression Makefile.

NOTE (ngie): this is a mergeinfo-only commit

git-svn-id: svn://svn.freebsd.org/base/stable/10@291187 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r291047:
ngie [Mon, 23 Nov 2015 09:33:27 +0000 (09:33 +0000)]
MFC r291047:

Don't leak work if __mlx4_register_vlan(..) fails in
mlx4_master_immediate_activate_vlan_qos(..)

Differential Revision: https://reviews.freebsd.org/D4203
Submitted by: Miles Olrich <miles.olrich@isilon.com>
Sponsored by: EMC / Isilon Storage Division

git-svn-id: svn://svn.freebsd.org/base/stable/10@291185 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r290650, r290709, r291067, r291068, r291069 and r291070:
hselasky [Mon, 23 Nov 2015 09:32:32 +0000 (09:32 +0000)]
MFC r290650, r290709, r291067, r291068, r291069 and r291070:
Add mlx5 and mlx5en driver(s) for ConnectX-4 and ConnectX-4LX cards
from Mellanox Technologies. The current driver supports ethernet
speeds up to and including 100 GBit/s. Infiniband support will be
done later.

The code added is not compiled by default, which will be done by a
separate commit.

Sponsored by: Mellanox Technologies
Differential Revision: https://reviews.freebsd.org/D4177
Differential Revision: https://reviews.freebsd.org/D4178
Differential Revision: https://reviews.freebsd.org/D4179
Differential Revision: https://reviews.freebsd.org/D4180

git-svn-id: svn://svn.freebsd.org/base/stable/10@291184 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r290914:
ngie [Mon, 23 Nov 2015 09:26:53 +0000 (09:26 +0000)]
MFC r290914:

Integrate tools/regression/pipe in to the FreeBSD test suite as
tests/sys/kern/pipe

- Fix style(9) bugs
- Fix compiler warnings
- Use `nitems(x)` instead of `sizeof(x) / sizeof(*x)` pattern

The testcases will be converted over to ATF eventually, but for now will be
integrated in as plain C tests

Sponsored by: EMC / Isilon Storage Division

git-svn-id: svn://svn.freebsd.org/base/stable/10@291183 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r290909:
ngie [Mon, 23 Nov 2015 09:22:01 +0000 (09:22 +0000)]
MFC r290909:

Add some initial tests for SLIST and STAILQ macros

Sponsored by: EMC / Isilon Storage Division

git-svn-id: svn://svn.freebsd.org/base/stable/10@291182 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r290911,r290912:
ngie [Mon, 23 Nov 2015 08:52:38 +0000 (08:52 +0000)]
MFC r290911,r290912:

r290911:

Ignore EINTR from usleep(3) in try_locks(..)

NetBSD's usleep(3) only returns -1/sets errno=EINVAL when `microseconds`
is one million or more

Submitted by: pho
Sponsored by: EMC / Isilon Storage Division

r290912:

Integrate contrib/netbsd-tests/kernel/t_lockf.c into the FreeBSD test suite as
tests/sys/kern/lockf_test

Sponsored by: EMC / Isilon Storage Division

git-svn-id: svn://svn.freebsd.org/base/stable/10@291179 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r290532,r290561,r290843,r290844,r290845:
ngie [Mon, 23 Nov 2015 08:31:41 +0000 (08:31 +0000)]
MFC r290532,r290561,r290843,r290844,r290845:

r290532:

Integrate tools/regression/lib/libc/locale into the FreeBSD test suite
as lib/libc/tests/locale

Sponsored by: EMC / Isilon Storage Division

r290561:

Delete leftover printfs from when these were TAP tests

Sponsored by: EMC / Isilon Storage Division

r290843:

Polish up the tests a bit more after projects/collation was merged to head

Provide more meaningful diagnostic messages if LC_CTYPE can't be set properly
instead of segfaulting, because setlocale returns NULL and strcmp(NULL, b) will
always segfault

Split up the testcases so one failing (in this case en_US.ISO8859-15) won't
cause the rest of the testcases to be skipped

Remove some unused variables

Sponsored by: EMC / Isilon Storage Division

r290844:

Polish up iswctype_test

- Split up the testcases into C locale and ja_JP.eucJP testcases.
- Avoid a segfault in the event that setlocale fails, similar to r290843
- Replace `sizeof(x) / sizeof(*x)` pattern with `nitems(x)`

Sponsored by: EMC / Isilon Storage Division

r290845:

Remove unused variables; sort by alignment where needed

Sponsored by: EMC / Isilon Storage Division

git-svn-id: svn://svn.freebsd.org/base/stable/10@291178 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r290850:
ngie [Mon, 23 Nov 2015 08:26:26 +0000 (08:26 +0000)]
MFC r290850:

Cast xdr_void to xdrproc_t to mute -Wincompatible-pointer-types warnings from
clang

This pattern is used in other areas of lib/libc/rpc

Sponsored by: EMC / Isilon Storage Division

git-svn-id: svn://svn.freebsd.org/base/stable/10@291177 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r290869:
ngie [Mon, 23 Nov 2015 08:24:48 +0000 (08:24 +0000)]
MFC r290869:

Redo r290847: use #ifdef __NetBSD__ on all the non-public APIs to
mute -Wunused-but-set-variable warnings with gcc dealing with the
function calls

Reported by: gcc
Sponsored by: EMC / Isilon Storage Division

git-svn-id: svn://svn.freebsd.org/base/stable/10@291176 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r290563,r290868,r291038:
ngie [Mon, 23 Nov 2015 08:22:40 +0000 (08:22 +0000)]
MFC r290563,r290868,r291038:

r290563:

Integrate tools/regression/lib/libc/net into the FreeBSD test suite
as lib/libc/tests/net

Also, fix eui64_aton_test:test_str(..). The test was comparing the result
of eui64_aton to a pointer of the expected result.

Sponsored by: EMC / Isilon Storage Division

r290868:

Fix -Wformat issues

Reported by: gcc
Sponsored by: EMC / Isilon Storage Division

r291038:

Do not print out errno if the call succeeded unexpectedly; this was a mistake
made in r290868

Reported by: jilles
Sponsored by: EMC / Isilon Storage Division

git-svn-id: svn://svn.freebsd.org/base/stable/10@291175 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r290907:
ngie [Mon, 23 Nov 2015 08:18:52 +0000 (08:18 +0000)]
MFC r290907:

Expect all testcases dealing with invalid salts to fail on FreeBSD

Sponsored by: EMC / Isilon Storage Division

git-svn-id: svn://svn.freebsd.org/base/stable/10@291174 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r290905,r290922:
ngie [Mon, 23 Nov 2015 08:17:32 +0000 (08:17 +0000)]
MFC r290905,r290922:

r290905:

Integrate acct(2) testcase in as tests/sys/kern/acct/acct_test

The :encode_tv_random_million testcase fails the epsilon tests a few thousand
times out of one million, so expect the testcase to fail

Submitted by: keramida
Sponsored by: EMC / Isilon Storage Division

r290922:

Remove directory made obsolete by r290905

X-MFC note: stable/10 only
Sponsored by: EMC / Isilon Storage Division

git-svn-id: svn://svn.freebsd.org/base/stable/10@291173 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r290492:
kib [Sat, 21 Nov 2015 16:21:27 +0000 (16:21 +0000)]
MFC r290492:
Move intmax_t and uintmax_t type declarations to sys/_stdint.h.

git-svn-id: svn://svn.freebsd.org/base/stable/10@291134 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r290367, r290370, r290437:
ume [Fri, 20 Nov 2015 16:10:58 +0000 (16:10 +0000)]
MFC r290367, r290370, r290437:

Change to not truncate an interface name when -W option
is specified.

MFC Requested by: Jim Thompson <jim__at__netgate.com>

git-svn-id: svn://svn.freebsd.org/base/stable/10@291101 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC 290662
jpaetzel [Fri, 20 Nov 2015 15:13:49 +0000 (15:13 +0000)]
MFC 290662

Fix a bug in the CPU % limiting code

If you attempt to set a pcpu limit that is higher than
110% using rctl (for instance, you want a jail to be
able to use 2 cores on your system so you set pcpu to
200%) the thing you are trying to limit becomes unthrottled.

PR:     189870
Submitted by:   dustinwenz@ebureau.com
Reviewed by:    trasz

git-svn-id: svn://svn.freebsd.org/base/stable/10@291100 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC 290416:
jhb [Thu, 19 Nov 2015 19:40:30 +0000 (19:40 +0000)]
MFC 290416:
Chelsio T5 chips do not properly echo the No Snoop and Relaxed Ordering
attributes when replying to a TLP from a Root Port.  As a workaround,
disable No Snoop and Relaxed Ordering in the Root Port of each T5 adapter
during attach so that CPU-initiated requests do not contain these flags.

Note that this affects CPU-initiated requests to all devices under this
root port.

Sponsored by: Chelsio

git-svn-id: svn://svn.freebsd.org/base/stable/10@291083 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f