]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/log
FreeBSD/stable/10.git
7 years agoMFstable/11 r311465:
ngie [Fri, 6 Jan 2017 03:53:44 +0000 (03:53 +0000)]
MFstable/11 r311465:

MFC r311175:

Swap parameters around with parse_syntax_strval(..) for consistency with
other parse_* APIs in bsnmp*

Noted by: bz

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

7 years agoMFC r305591: Decode ATA Status Return descriptor.
mav [Thu, 5 Jan 2017 13:29:57 +0000 (13:29 +0000)]
MFC r305591: Decode ATA Status Return descriptor.

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

7 years agoMFC r297756: Add couple new constants from SPC5r08.
mav [Thu, 5 Jan 2017 12:56:41 +0000 (12:56 +0000)]
MFC r297756: Add couple new constants from SPC5r08.

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

7 years agoMFC r310534: Improve third-party copy error reporting.
mav [Thu, 5 Jan 2017 11:56:54 +0000 (11:56 +0000)]
MFC r310534: Improve third-party copy error reporting.

For EXTENDED COPY:
 - improve parameters checking to report some errors before copy start;
 - forward sense data from copy target as descriptor in case of error;
 - report which CSCD reported error in sense key specific information.
For WRITE USING TOKEN:
 - pass through real sense data from copy target instead of reporting
our copy error, since for initiator its a "simple" write, not a copy.

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

7 years agoMFC r310524: Improve length handling when writing sense data.
mav [Thu, 5 Jan 2017 11:55:18 +0000 (11:55 +0000)]
MFC r310524: Improve length handling when writing sense data.

 - Allow maximal sense size limitation via Control Extension mode page.
 - When sense size limited, include descriptors atomically: whole or none.
 - Set new SDAT_OVFL bit if some descriptors don't fit the limit.
 - Report real written sense length instead of static maximal 252 bytes.

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

7 years agoMFC r310489: Implement printing forwarded sense data.
mav [Thu, 5 Jan 2017 11:53:43 +0000 (11:53 +0000)]
MFC r310489: Implement printing forwarded sense data.

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

7 years agoMFC r310478: Add place-holders for TAPE STREAM MIRRORING subcommands of XCOPY.
mav [Thu, 5 Jan 2017 11:52:11 +0000 (11:52 +0000)]
MFC r310478: Add place-holders for TAPE STREAM MIRRORING subcommands of XCOPY.

We do not support tapes, so this is only a comments.

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

7 years agoMFC r310390: Add support for REPD bit in RSTMF command.
mav [Thu, 5 Jan 2017 11:50:01 +0000 (11:50 +0000)]
MFC r310390: Add support for REPD bit in RSTMF command.

We have no real timeout values to report there, but its better then error.

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

7 years agoMFC r310389:
mav [Thu, 5 Jan 2017 11:49:07 +0000 (11:49 +0000)]
MFC r310389:
Fix REPORT SUPPORTED OPERATION CODES for READ/WRITE BUFFER commands.

Specifications require MODE parameter of those commands to be treated
the same as SERVICE ACTION parameter of other commands.

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

7 years agoMFC r310373:
mav [Thu, 5 Jan 2017 11:47:26 +0000 (11:47 +0000)]
MFC r310373:
Add support for REPORTING OPTIONS == 3 in REPORT SUPPORTED OPERATION CODES.

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

7 years agoMFC r310366: Add support for SITUA bit in Logical Block Provisioning mode page.
mav [Thu, 5 Jan 2017 11:45:36 +0000 (11:45 +0000)]
MFC r310366: Add support for SITUA bit in Logical Block Provisioning mode page.

VMware tries to enable this bit to avoid multiple threshold notifications
in case of multiple initiators connected to the same LUN.  Unfortunately
their code sends MODE SELECT(6) request with parameter length hardcoded
for the page without any thresholds.  Since we have four threshold and our
page is bigger, this attempt fails, that is correct in my understanding.
So all we can do about this now is to report proper error code and hope
VMware fix their code one day.

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

7 years agoMFC r310360, r310361: Report UUID and MD5 LUN IDs.
mav [Thu, 5 Jan 2017 11:43:47 +0000 (11:43 +0000)]
MFC r310360, r310361: Report UUID and MD5 LUN IDs.

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

7 years agoMFC r310356: Add support for locally assigned RFC 4122 UUID LUN identifiers.
mav [Thu, 5 Jan 2017 11:41:53 +0000 (11:41 +0000)]
MFC r310356: Add support for locally assigned RFC 4122 UUID LUN identifiers.

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

7 years agoMFC r310339: Bump specifications support to SAM-6/SPC-5.
mav [Thu, 5 Jan 2017 11:39:54 +0000 (11:39 +0000)]
MFC r310339: Bump specifications support to SAM-6/SPC-5.

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

7 years agoMFC r310298: Improve error handling when I/O split between several BIOs.
mav [Thu, 5 Jan 2017 11:38:22 +0000 (11:38 +0000)]
MFC r310298: Improve error handling when I/O split between several BIOs.

If we get several error codes, handle one with lowest offset.

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

7 years agoMFC r310285:
mav [Thu, 5 Jan 2017 11:36:52 +0000 (11:36 +0000)]
MFC r310285:
When reporting "Logical block address out of range" error, report the LBA
in sense data INFORMATION field.

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

7 years agoMFC r310284:
mav [Thu, 5 Jan 2017 11:35:10 +0000 (11:35 +0000)]
MFC r310284:
When writing fixed format sense data, set VALID bit only if provided value
for INFORMATION field fit into available 4 bytes (has no non-zero bytes
except last 4), as explicitly required by SPC-5 specification.

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

7 years agoMFC r310275: Fix typo in function name.
mav [Thu, 5 Jan 2017 11:33:38 +0000 (11:33 +0000)]
MFC r310275: Fix typo in function name.

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

7 years agoMFC r310272: Add new bits into Extended Inquiry VPD page.
mav [Thu, 5 Jan 2017 11:32:01 +0000 (11:32 +0000)]
MFC r310272: Add new bits into Extended Inquiry VPD page.

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

7 years agoMFC r310266: Add support for NUAR bit in Control mode page.
mav [Thu, 5 Jan 2017 11:30:24 +0000 (11:30 +0000)]
MFC r310266: Add support for NUAR bit in Control mode page.

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

7 years agoMFC r310265: Add set of macros to simplify code access to mode pages fields.
mav [Thu, 5 Jan 2017 11:28:47 +0000 (11:28 +0000)]
MFC r310265: Add set of macros to simplify code access to mode pages fields.

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

7 years agoMFC r310259:
mav [Thu, 5 Jan 2017 11:25:12 +0000 (11:25 +0000)]
MFC r310259:
Following SPC-5, make REQUEST SENSE report "Logical unit not supported"
in returned parameter data for not accessible LUNs.

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

7 years agoMFC r310257: Improve support for informational exceptions.
mav [Thu, 5 Jan 2017 11:23:55 +0000 (11:23 +0000)]
MFC r310257: Improve support for informational exceptions.

While CTL still has no real events to report in this way (like SMART),
it is possible to trigger false event by manually setting TEST bit in
Informational Exceptions Control mode page, that can be useful for
initiator testing.  This code supports all flavours of IE reporting:
UNIT ATTENTION, RECOVERED ERROR and NO SENSE sense keys, REQUEST SENSE
command and Informational Exceptions log page.

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

7 years agoMFC r298810 (by pfg): sys/cam: spelling fixes in comments.
mav [Thu, 5 Jan 2017 11:20:31 +0000 (11:20 +0000)]
MFC r298810 (by pfg): sys/cam: spelling fixes in comments.

No functional change.

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

7 years agoMFC r295476 (by trasz): Remove stray semicolons from the iSCSI code.
mav [Thu, 5 Jan 2017 11:17:09 +0000 (11:17 +0000)]
MFC r295476 (by trasz):  Remove stray semicolons from the iSCSI code.

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

7 years agoMFC r294558: Hide "soconnect() error" messages under bootverbose.
mav [Thu, 5 Jan 2017 11:16:15 +0000 (11:16 +0000)]
MFC r294558: Hide "soconnect() error" messages under bootverbose.

They can be too noisy.

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

7 years agoMFC r310230:
mav [Thu, 5 Jan 2017 11:03:04 +0000 (11:03 +0000)]
MFC r310230:
Don't treat informational exceptions (warnings and impending failures)
a.k.a. SCSI SMART events as errors.  Log them to console and continue.

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

7 years agoMFC r309297: Make SES status updates more aggressive.
mav [Thu, 5 Jan 2017 11:01:17 +0000 (11:01 +0000)]
MFC r309297: Make SES status updates more aggressive.

 - On control request update all status pages, since they may also be
affected if user enables/disables enclosure slots.
 - Periodically update element descriptors too, since there is some
hardware where they are changed dynamically.

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

7 years agoMFC r309666, r310033, r310049, r310100, r310152, and r310807.
np [Wed, 4 Jan 2017 06:58:35 +0000 (06:58 +0000)]
MFC r309666, r310033, r310049, r310100, r310152, and r310807.

r309666:
cxgbe(4): unsigned short isn't large enough to store link speed (which
is in Mbps) for 100Gbps links.

r310033:
cxgbe(4): Retire t4_bus_space_read_8 and t4_bus_space_write_8.

r310049:
cxgbe(4): Fix the tid range shown for T6 cards in misc.tids.

r310100:
cxgbe(4): Deal with compressed error vectors.

r310152:
cxgbe(4): Fix typo in an unused macro.

r310807:
cxgbe(4): Updates to link configuration.

- Update struct link_settings and associated shared code.

- Add tunables to control FEC and autonegotiation.  All ports inherit
  these values as their initial settings.
  hw.cxgbe.fec
  hw.cxgbe.autoneg

- Add per-port sysctls to control FEC and autonegotiation.  These can be
  modified at any time.
  dev.<port>.<n>.fec
  dev.<port>.<n>.autoneg

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

7 years agoMFC r311005
cy [Wed, 4 Jan 2017 06:53:00 +0000 (06:53 +0000)]
MFC r311005

Fix up grammar.

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

7 years agoMFC 310652,310657,310658
sephe [Wed, 4 Jan 2017 05:45:56 +0000 (05:45 +0000)]
MFC 310652,310657,310658

310652
    hyperv/hn: Consolidate hn_{suspend,resume}

    Sponsored by:   Microsoft
    Differential Revision:  https://reviews.freebsd.org/D8907

310657
    hyperv/hn: Function renaming; no functional changes.

    Sponsored by:   Microsoft
    Differential Revision:  https://reviews.freebsd.org/D8908

310658
    hyperv/hn: Factor out function to set rxfilter.

    Sponsored by:   Microsoft
    Differential Revision:  https://reviews.freebsd.org/D8928

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

7 years agoMFC 310651
sephe [Wed, 4 Jan 2017 05:41:47 +0000 (05:41 +0000)]
MFC 310651

    hyperv/vmbus: Nuke unnecessary critical sections.

    Sponsored by:   Microsoft
    Differential Revision:  https://reviews.freebsd.org/D8906

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

7 years agoMFC 310462,310465
sephe [Wed, 4 Jan 2017 05:36:38 +0000 (05:36 +0000)]
MFC 310462,310465

310462
    hyperv/ic: Fix version4 timesync message format.

    It is not compat w/ the old timesync message format, which the message
    type stays the same as the old timesync message.

    Sponsored by:   Microsoft

310465
    hyperv/ic: Allow applying the samples from hypervisor unconditionally.

    Sponsored by:   Microsoft

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

7 years agoMFC 310347
sephe [Wed, 4 Jan 2017 05:32:29 +0000 (05:32 +0000)]
MFC 310347

    hyperv/storvsc: The max channel in PDU actually means the max sub-chans.

    Use proper name for local variables. PDU fields' name was not changed yet.
    While I'm here, make # of usable channels tunable. This eases further
    testing.

    Sponsored by:   Microsoft
    Differential Revision:  https://reviews.freebsd.org/D8851

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

7 years agoMFC 310324
sephe [Wed, 4 Jan 2017 05:24:16 +0000 (05:24 +0000)]
MFC 310324

    hyperv/ic: Rename cleaned up files.

    Sponsored by:   Microsoft
    Differential Revision:  https://reviews.freebsd.org/D8850

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

7 years agoMFC 310318
sephe [Wed, 4 Jan 2017 05:07:39 +0000 (05:07 +0000)]
MFC 310318

    hyperv/ic: Cleanup driver glue.

    Sponsored by:   Microsoft
    Differential Revision:  https://reviews.freebsd.org/D8849

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

7 years agoMFC 310317
sephe [Wed, 4 Jan 2017 04:55:53 +0000 (04:55 +0000)]
MFC 310317

    hyperv/ic: Rname cleaned up file.

    Sponsored by:   Microsoft
    Differential Revision:  https://reviews.freebsd.org/D8848

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

7 years agoMFC 310315
sephe [Wed, 4 Jan 2017 03:57:18 +0000 (03:57 +0000)]
MFC 310315

    hyperv/ic: Inclusion cleanup

    Sponsored by:   Microsoft
    Differential Revision:  https://reviews.freebsd.org/D8847

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

7 years agoMFC r310705, r310706:
pfg [Wed, 4 Jan 2017 02:43:33 +0000 (02:43 +0000)]
MFC r310705, r310706:
style(9) cleanups.

Just to reduce some of the issues found with indent(1).

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

7 years agoMFC 310312-310314
sephe [Wed, 4 Jan 2017 02:39:00 +0000 (02:39 +0000)]
MFC 310312-310314

310312
    hyperv/ic: Factor out function to send IC response

    Sponsored by:   Microsoft
    Differential Revision:  https://reviews.freebsd.org/D8844

310313
    hyperv/ic: Cleanup common struct and functions.

    Sponsored by:   Microsoft
    Differential Revision:  https://reviews.freebsd.org/D8845

310314
    hyperv/ic: Rename cleaned up header file.

    Sponsored by:   Microsoft
    Differential Revision:  https://reviews.freebsd.org/D8846

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

7 years agoMFC 310048,310101
sephe [Wed, 4 Jan 2017 01:58:38 +0000 (01:58 +0000)]
MFC 310048,310101

310048
    hyperv: Implement "enlightened" time counter, which is rdtsc based.

    Reviewed by:    kib
    Sponsored by:   Microsoft
    Differential Revision:  https://reviews.freebsd.org/D8763

310101
    hyperv: Allow userland to ro-mmap reference TSC page

    This paves way to implement VDSO for the enlightened time counter.

    Reviewed by:    kib
    Sponsored by:   Microsoft
    Differential Revision:  https://reviews.freebsd.org/D8768

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

7 years agoMFstable/11 r311217:
ngie [Wed, 4 Jan 2017 00:57:29 +0000 (00:57 +0000)]
MFstable/11 r311217:

MFC r311003:

Fix spelling errors; bump .Dd for the change

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

7 years agoMFstable/11 r311215:
ngie [Wed, 4 Jan 2017 00:54:34 +0000 (00:54 +0000)]
MFstable/11 r311215:

MFC r310711:

Don't explicitly build tcp wrappers support into bsnmpd; make it conditional
on MK_TCP_WRAPPERS != "no"

This likely fixes an issue seen where some of the USE_TCPWRAPPERS code didn't
work as advertised

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

7 years agoMFstable/11 r311213:
ngie [Wed, 4 Jan 2017 00:44:03 +0000 (00:44 +0000)]
MFstable/11 r311213:

MFC r311001:

Bump .Dd for the spelling and .Nm updates

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

7 years agoMFstable/11 r311212:
ngie [Wed, 4 Jan 2017 00:42:20 +0000 (00:42 +0000)]
MFstable/11 r311212:

MFC r310665:

Only build/install usr.sbin/bsnmpd/modules/snmp_hast if MK_HAST != no

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

7 years agoMFstable/11 r311209:
ngie [Wed, 4 Jan 2017 00:40:06 +0000 (00:40 +0000)]
MFstable/11 r311209:

MFC r310664:

Only build/install usr.sbin/bsnmpd/modules/snmp_wlan if MK_WIRELESS != no

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

7 years agoMFstable/11 r311207:
ngie [Wed, 4 Jan 2017 00:38:21 +0000 (00:38 +0000)]
MFstable/11 r311207:

MFC r310099,r311000,r311002:

r311000:

Fix spelling errors

r311002:

Install bsnmpclient(3) as snmp_client_{init,set_host,set_port}(3)

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

7 years agoMFC r309477:
bdrewery [Tue, 3 Jan 2017 23:23:25 +0000 (23:23 +0000)]
MFC r309477:

  Revert r296585.

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

7 years agoMFstable/11 r311152:
ngie [Tue, 3 Jan 2017 05:44:24 +0000 (05:44 +0000)]
MFstable/11 r311152:

MFC r310986:

snmp_output_resp: style(9): sort variables by alignment

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

7 years agoMFC r310647:
markj [Tue, 3 Jan 2017 00:26:10 +0000 (00:26 +0000)]
MFC r310647:
Remove an obsolete pragma from dtrace.h.

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

7 years agoMFstable/11 r311107:
ngie [Mon, 2 Jan 2017 20:24:10 +0000 (20:24 +0000)]
MFstable/11 r311107:

MFC r310865:

Fix whitespace in a comment and fixing a spelling error in a comment

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

7 years agoMFC r310820
arybchik [Mon, 2 Jan 2017 09:50:51 +0000 (09:50 +0000)]
MFC r310820

sfxge(4): move queue size checks to after the NIC config has been populated

Submitted by:   Mark Spender <mspender at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.

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

7 years agoMFC r310819
arybchik [Mon, 2 Jan 2017 09:49:40 +0000 (09:49 +0000)]
MFC r310819

sfxge(4): cleanup: add efsys_lock_state_t for type of state param in EFSYS_LOCK()

This allows the common code to use the correct type for the lock state
local variable passed to EFSYS_LOCK() and EFSYS_UNLOCK().

On Windows, this allows warning supression pragmas to be removed.

Submitted by:   Andy Moreton <amoreton at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.

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

7 years agoMFC r310812
arybchik [Mon, 2 Jan 2017 09:48:34 +0000 (09:48 +0000)]
MFC r310812

sfxge(4): support non-interrupting event queues creation

Poll-mode driver does not use interrupts and number of used event queues
should not be limitted by the number of interrupts allocated for the
NIC.

Sponsored by:   Solarflare Communications, Inc.

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

7 years agoMFC r310811
arybchik [Mon, 2 Jan 2017 09:47:35 +0000 (09:47 +0000)]
MFC r310811

sfxge(4): cleanup: remove now-unused function flags

Submitted by:   Mark Spender <mspender at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.

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

7 years agoMFC r310810
arybchik [Mon, 2 Jan 2017 09:46:39 +0000 (09:46 +0000)]
MFC r310810

sfxge(4): cleanup: check deferred packet list tunables once

Sponsored by:   Solarflare Communications, Inc.

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

7 years agoMFC r310770
arybchik [Mon, 2 Jan 2017 09:45:20 +0000 (09:45 +0000)]
MFC r310770

sfxge(4): cleanup: clarify/unify variable name used for put-list length

get_count is used for get-list.

Sponsored by:   Solarflare Communications, Inc.

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

7 years agoMFC r310764
arybchik [Mon, 2 Jan 2017 09:43:46 +0000 (09:43 +0000)]
MFC r310764

sfxge(4): sync up tlv_layout.h (from firmwaresrc 82cd8a5715e9)

Submitted by:   Matthew Slattery <mslattery at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.

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

7 years agoMFC r310762
arybchik [Mon, 2 Jan 2017 09:42:47 +0000 (09:42 +0000)]
MFC r310762

sfxge(4): regenerate MCDI headers from firmwaresrc .yml

Sponsored by:   Solarflare Communications, Inc.

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

7 years agoMFC r310760
arybchik [Mon, 2 Jan 2017 09:41:27 +0000 (09:41 +0000)]
MFC r310760

sfxge(4): fix typo in pseudo header accessor function names

Sponsored by:   Solarflare Communications, Inc.

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

7 years agoMFC r310758
arybchik [Mon, 2 Jan 2017 09:40:22 +0000 (09:40 +0000)]
MFC r310758

sfxge(4): delete hunt_phy.c

Submitted by:   Mark Spender <mspender at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.

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

7 years agoMFC r310756
arybchik [Mon, 2 Jan 2017 09:39:19 +0000 (09:39 +0000)]
MFC r310756

sfxge(4): do not use enum type when values are bitmask

ICC complains that enumerated type mixed with another type.

Found by DPDK upstream build sanity check.

Sponsored by:   Solarflare Communications, Inc.

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

7 years agoMFC r310755
arybchik [Mon, 2 Jan 2017 09:38:20 +0000 (09:38 +0000)]
MFC r310755

sfxge(4): do not use enum for filter flags

It is not 100% correct to assign non-enum values to enum type
variables.

Found by ICC build (DPDK PMD upstreaming).

Sponsored by:   Solarflare Communications, Inc.

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

7 years agoMFC r310754
arybchik [Mon, 2 Jan 2017 09:37:15 +0000 (09:37 +0000)]
MFC r310754

sfxge(4): don't use Tx descriptor push with TSO option descriptors

It is not safe to push TSO option descriptors if pacer bypass is
enabled, so to make sure that doesn't happen never push TSO option
descriptors.

Submitted by:   Mark Spender <mspender at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.

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

7 years agoMFC r310752
arybchik [Mon, 2 Jan 2017 09:35:58 +0000 (09:35 +0000)]
MFC r310752

sfxge(4): allow to have no NIC handle on Rx datapath in DPDK PMD

It is required to minimize RxQ context in the driver or avoid chaising
for the NIC handle in adapter (global per-interface) structure.

Sponsored by:   Solarflare Communications, Inc.

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

7 years agoMFC r310749
arybchik [Mon, 2 Jan 2017 09:34:45 +0000 (09:34 +0000)]
MFC r310749

sfxge(4): use correct port number in sensor decoding

The port mask used for per-port sensors in mcdi_sensor_map
assumes zero-based port numbering. The port mask used in
the code is based on the one-based MCDI port number.

Fix this to lookup the correct per-port sensors, and to
allow reporting of sensor events from higher port numbers.

Submitted by:   Andy Moreton <amoreton at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.

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

7 years agoMFC r310748
arybchik [Mon, 2 Jan 2017 09:34:05 +0000 (09:34 +0000)]
MFC r310748

sfxge(4): cleanup: simplify disable scatter logic in ef10_rx_qcreate

Submitted by:   Andy Moreton <amoreton at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.

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

7 years agoMFC r310747
arybchik [Mon, 2 Jan 2017 09:32:45 +0000 (09:32 +0000)]
MFC r310747

sfxge(4): provide a way to find out which MAC stats are supported

Sponsored by:   Solarflare Communications, Inc.

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

7 years agoMFC r310746
arybchik [Mon, 2 Jan 2017 09:31:34 +0000 (09:31 +0000)]
MFC r310746

sfxge(4): make the common code determine the number of PFs

Submitted by:   Ivan Malov <Ivan.Malov at oktetlabs.ru>
Sponsored by:   Solarflare Communications, Inc.

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

7 years agoMFC r310745
arybchik [Mon, 2 Jan 2017 09:30:33 +0000 (09:30 +0000)]
MFC r310745

sfxge(4): make the common code retrieve the number of FATSOv2 contexts

Submitted by:   Ivan Malov <Ivan.Malov at oktetlabs.ru>
Sponsored by:   Solarflare Communications, Inc.

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

7 years agoMFC r310742
arybchik [Mon, 2 Jan 2017 09:29:30 +0000 (09:29 +0000)]
MFC r310742

sfxge(4): fix common code for non-Siena builds

Submitted by:   Andy Moreton <amoreton at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.

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

7 years agoMFC r310741
arybchik [Mon, 2 Jan 2017 09:28:07 +0000 (09:28 +0000)]
MFC r310741

sfxge(4): fix misuse of siena_build_filter in common code

Submitted by:   Andy Moreton <amoreton at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.

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

7 years agoMFC r310719
arybchik [Mon, 2 Jan 2017 09:27:28 +0000 (09:27 +0000)]
MFC r310719

sfxge(4): cleanup: remove last use of deprecated function flags with privilege check

The function flags were changed to mirror the privileges, but
the privileges are preferred.

Submitted by:   Mark Spender <mspender at solarflare.com>
Reviewed by:    gnn
Sponsored by:   Solarflare Communications, Inc.

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

7 years agoMFC r310717
arybchik [Mon, 2 Jan 2017 09:26:16 +0000 (09:26 +0000)]
MFC r310717

sfxge(4): move BIST methods from hunt_phy.c to ef10_phy.c

Submitted by:   Mark Spender <mspender at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.

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

7 years agoMFC r310716
arybchik [Mon, 2 Jan 2017 09:25:21 +0000 (09:25 +0000)]
MFC r310716

sfxge(4): add UEFI ROM support to the common code

Submitted by:   Andrew Lee <alee at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.

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

7 years agoMFC r310715
arybchik [Mon, 2 Jan 2017 09:24:19 +0000 (09:24 +0000)]
MFC r310715

sfxge(4): fix GET_RXDP_CONFIG usage for multi-PF on Medford

On Medford, using MC_CMD_GET_RXDP_CONFIG to query the RX end
padding setting is in the ADMIN group, and so fails for
unprivileged functions. In that case, assume the largest size
supported by Medford hardware (256bytes) to prevent overrun.

Submitted by:   Andy Moreton <amoreton at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.

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

7 years agoMFC r310714
arybchik [Mon, 2 Jan 2017 09:23:40 +0000 (09:23 +0000)]
MFC r310714

sfxge(4): support Medford bootcfg partition layout in common code

For Siena and Huntington, the per-port bootcfg (aka expcfg) is
stored in a dedicated 4Kbyte partition for each port.

For Medford, the per-PF bootcfg is stored in a 2Kbyte sector
within a single shared partition. Update the common code to support
the new bootcfg layout.

Submitted by:   Andy Moreton <amoreton at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.

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

7 years agoMFC r310713
arybchik [Mon, 2 Jan 2017 09:22:41 +0000 (09:22 +0000)]
MFC r310713

sfxge(4): add possibility to control event queue performance profile

It is ignored on SFN5xxx/6xxx (aka Siena).

Sponsored by:   Solarflare Communications, Inc.

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

7 years agoMFC r310709
arybchik [Mon, 2 Jan 2017 09:19:29 +0000 (09:19 +0000)]
MFC r310709

sfxge(4): fix invalid type of eft_unicst_filter_count

Found by clang when boolean_t is defined as bool for DPDK PMD.

Sponsored by:   Solarflare Communications, Inc.

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

7 years agoMFC r310708
arybchik [Mon, 2 Jan 2017 09:18:16 +0000 (09:18 +0000)]
MFC r310708

sfxge(4): do not initialize enumerated type variable to another type

Fix build warning generated by ICC.

Sponsored by:   Solarflare Communications, Inc.

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

7 years agoMFC r310704
arybchik [Mon, 2 Jan 2017 09:17:29 +0000 (09:17 +0000)]
MFC r310704

sfxge(4): translate MC_CMD_ERR_ERANGE to host errno value

This is needed because MCDI command MC_CMD_REKEY can return
MC_CMD_ERR_ERANGE.

Submitted by:   Tom Millington <tmillington at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.

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

7 years agoMFC r310699
arybchik [Mon, 2 Jan 2017 09:16:23 +0000 (09:16 +0000)]
MFC r310699

sfxge(4): rename hunt_bist_* methods to ef10_bist_*

Submitted by:   Mark Spender <mspender at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.

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

7 years agoMFC r310696
arybchik [Mon, 2 Jan 2017 09:15:16 +0000 (09:15 +0000)]
MFC r310696

sfxge(4): cleanup: improve prefast annotations

Submitted by:   Andy Moreton <amoreton at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.

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

7 years agoMFC r310695
arybchik [Mon, 2 Jan 2017 09:14:15 +0000 (09:14 +0000)]
MFC r310695

sfxge(4): fix defined-but-not-used warning if neither VPD nor NVRAM opt enabled

Sponsored by:   Solarflare Communications, Inc.

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

7 years agoMFC r310694
arybchik [Mon, 2 Jan 2017 09:13:13 +0000 (09:13 +0000)]
MFC r310694

sfxge(4): cleanup: add missing spaces

Found by DPDK checkpatch.sh

Sponsored by:   Solarflare Communications, Inc.

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

7 years agoMFC r310693
arybchik [Mon, 2 Jan 2017 09:12:06 +0000 (09:12 +0000)]
MFC r310693

sfxge(4): cleanup: avoid unspecified unsigned

Found by DPDK checkpatch.sh

Sponsored by:   Solarflare Communications, Inc.

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

7 years agoMFC r310692
arybchik [Mon, 2 Jan 2017 09:10:37 +0000 (09:10 +0000)]
MFC r310692

sfxge(4): enclose macro complex value in parenthesis

Found by DPDK checkpatches.sh

Sponsored by:   Solarflare Communications, Inc.

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

7 years agoMFC r310691
arybchik [Mon, 2 Jan 2017 09:09:46 +0000 (09:09 +0000)]
MFC r310691

sfxge(4): make strings array pointer itself immutable

Found by DPDK checkpatches.sh

Sponsored by:   Solarflare Communications, Inc.

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

7 years agoMFC r310690
arybchik [Mon, 2 Jan 2017 09:09:05 +0000 (09:09 +0000)]
MFC r310690

sfxge(4): cleanup: add const qualifier to const array pointer

Sponsored by:   Solarflare Communications, Inc.

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

7 years agoMFC r310689
arybchik [Mon, 2 Jan 2017 09:08:04 +0000 (09:08 +0000)]
MFC r310689

sfxge(4): cleanup: avoid spaces before TAB

Found by DPDK checkpatch.sh

Sponsored by:   Solarflare Communications, Inc.

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

7 years agoMFC r310688
arybchik [Mon, 2 Jan 2017 09:05:02 +0000 (09:05 +0000)]
MFC r310688

sfxge(4): cleanup: avoid space just before TAB in efx_types.h

Found by DPDK checkpatch.sh

Sponsored by:   Solarflare Communications, Inc.

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

7 years agoMFC r310687
arybchik [Mon, 2 Jan 2017 09:04:22 +0000 (09:04 +0000)]
MFC r310687

sfxge(4): cleanup: use TAB to indent

Found by DPDK checkpatch.sh

Sponsored by:   Solarflare Communications, Inc.

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

7 years agoMFC r310686
arybchik [Mon, 2 Jan 2017 08:58:51 +0000 (08:58 +0000)]
MFC r310686

sfxge(4): cleanup: add missing space between type and pointer symbol

Found by DPDK checkpatch.sh

Sponsored by:   Solarflare Communications, Inc.

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

7 years agoMFC r310685
arybchik [Mon, 2 Jan 2017 08:58:16 +0000 (08:58 +0000)]
MFC r310685

sfxge(4): cleanup: open brace should be on a type name line

Found by DPDK checkpatch.sh

Sponsored by:   Solarflare Communications, Inc.

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

7 years agoMFC r310684
arybchik [Mon, 2 Jan 2017 08:56:34 +0000 (08:56 +0000)]
MFC r310684

sfxge(4): cleanup: remove trailing whitespaces

Found by DPDK checkpatch.sh

Sponsored by:   Solarflare Communications, Inc.

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

7 years agoMFC r310683
arybchik [Mon, 2 Jan 2017 08:53:53 +0000 (08:53 +0000)]
MFC r310683

sfxge(4): cleanup: pointer symbol should go together with struct member name

Found by DPDK checkpatch.sh

Sponsored by:   Solarflare Communications, Inc.

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

7 years agoMFC r310682
arybchik [Mon, 2 Jan 2017 08:51:28 +0000 (08:51 +0000)]
MFC r310682

sfxge(4): cleanup: avoid C99 // comments

Found by DPDK checkpatch.sh

Sponsored by:   Solarflare Communications, Inc.

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

7 years agoMFC r310616:
kib [Mon, 2 Jan 2017 08:31:29 +0000 (08:31 +0000)]
MFC r310616:
Remove redundancy in vmtotal().

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

7 years agoMFC r310613:
kib [Mon, 2 Jan 2017 08:28:37 +0000 (08:28 +0000)]
MFC r310613:
Style.

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

7 years agoMFC r309300,r309363,r309405,r309523,r309590,r310185,r310623:
mm [Mon, 2 Jan 2017 01:43:11 +0000 (01:43 +0000)]
MFC r309300,r309363,r309405,r309523,r309590,r310185,r310623:

Sync libarchive with vendor.

Fixed vendor issues (relevant to FreeBSD)
#825, #832: Add sanity check of tar "uid, "gid" and "mtime" fields
#830, #831, #833, #846: Spelling fixes
#850: Fix issues with reading certain jar files

Fixed issues found by Google OSS-Fuzz:
OSS-Fuzz #15: Fix heap-buffer-overflow in archive_le16dec()
OSS-Fuzz #16: Fix possible hang in uudecode_filter_read()
OSS-Fuzz #139, #145, #152: Fix heap-buffer-overflow in uudecode_bidder_bid()
OSS-Fuzz #220: Reject an 'ar' filename table larger than 1GB or a filename
               larger than 1MB
OSS-Fuzz #227, #230, #239: Fix possible memory leak in archive_read_free()
OSS-Fuzz #237: Fix heap buffer overflow when reading invalid ar archives
OSS-Fuzz #286: Bugfix in archive_strncat_l()

More information:
https://github.com/libarchive/libarchive/issues/[libarchive_issue_number]
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=[oss_fuzz_issue_number]

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