svn commit: r348454 - head/tests/sys/geom/class/eli

2019-05-30 Thread Li-Wen Hsu
Author: lwhsu Date: Fri May 31 04:29:29 2019 New Revision: 348454 URL: https://svnweb.freebsd.org/changeset/base/348454 Log: Remove tests for the deprecated algorithms in r348206 The tests are failing because the return value and output have changed, but before test code structure

Re: svn commit: r348421 - head/sys/kern

2019-05-30 Thread Benjamin Kaduk
On Thu, May 30, 2019 at 8:04 AM Konstantin Belousov wrote: > Author: kib > Date: Thu May 30 15:04:09 2019 > New Revision: 348421 > URL: https://svnweb.freebsd.org/changeset/base/348421 > > Log: > Silence witness warning about duplicated mutex type. > > The order is correct, it is nullfs

svn commit: r348453 - head/sys/fs/nfsclient

2019-05-30 Thread Rick Macklem
Author: rmacklem Date: Fri May 31 03:13:09 2019 New Revision: 348453 URL: https://svnweb.freebsd.org/changeset/base/348453 Log: Get rid of extraneous initialization. Get rid of an extraneous initialization, mainly to keep a static analyser happy. No semantic change. PR:

Re: svn commit: r345203 - in head: contrib/googletest contrib/mandoc etc/mtree lib lib/googletest share/examples/tests/tests share/examples/tests/tests/googletest share/mk tools/build/mk tools/build/o

2019-05-30 Thread Adrian Chadd
hi, I'm seeing build failures where things like zfs do not find gmock/gmock.h when building. Have you seen this? -a On Fri, 15 Mar 2019 at 14:44, Enji Cooper wrote: > > Author: ngie > Date: Fri Mar 15 21:43:52 2019 > New Revision: 345203 > URL: https://svnweb.freebsd.org/changeset/base/345203

svn commit: r348452 - head/usr.sbin/mountd

2019-05-30 Thread Rick Macklem
Author: rmacklem Date: Fri May 31 01:28:48 2019 New Revision: 348452 URL: https://svnweb.freebsd.org/changeset/base/348452 Log: Replace a single linked list with a hash table of lists. mountd.c uses a single linked list of "struct exportlist" structures, where there is one of these for

svn commit: r348451 - head/sys/fs/nfsclient

2019-05-30 Thread Rick Macklem
Author: rmacklem Date: Fri May 31 00:56:31 2019 New Revision: 348451 URL: https://svnweb.freebsd.org/changeset/base/348451 Log: Clean up silly code case. This silly code segment has existed in the sources since it was brought into FreeBSD 10 years ago. I honestly have no idea why this

svn commit: r348447 - head/share/misc

2019-05-30 Thread Sergio Carlavilla Delgado
Author: carlavilla (doc committer) Date: Thu May 30 21:39:49 2019 New Revision: 348447 URL: https://svnweb.freebsd.org/changeset/base/348447 Log: Add Sergio Carlavilla (myself) to the committers doc, Gabor is going to be my mentor Approved by: gabor Modified:

svn commit: r348446 - in head/sys: amd64/linux amd64/linux32 arm64/linux compat/cloudabi32 compat/cloudabi64 compat/freebsd32 i386/linux kern

2019-05-30 Thread Brooks Davis
Author: brooks Date: Thu May 30 20:56:23 2019 New Revision: 348446 URL: https://svnweb.freebsd.org/changeset/base/348446 Log: makesyscalls.sh: always use absolute path for syscalls.conf syscalls.conf is included using "." which per the Open Group: If file does not contain a , the

svn commit: r348445 - head/sys/dev/ixl

2019-05-30 Thread Li-Wen Hsu
Author: lwhsu Date: Thu May 30 20:42:36 2019 New Revision: 348445 URL: https://svnweb.freebsd.org/changeset/base/348445 Log: Add the missing braces to fix the code not guarded by the if clause and has misleading indentation. This is found by gcc -Wmisleading-indentation Approved by:

svn commit: r348444 - head/lib/libelftc

2019-05-30 Thread Mark Johnston
Author: markj Date: Thu May 30 19:18:01 2019 New Revision: 348444 URL: https://svnweb.freebsd.org/changeset/base/348444 Log: libelftc: Add MLINKS. Reviewed by: emaste MFC after:1 week Sponsored by: The FreeBSD Foundation Differential Revision:

svn commit: r348443 - head/contrib/elftoolchain/readelf

2019-05-30 Thread Mark Johnston
Author: markj Date: Thu May 30 18:54:34 2019 New Revision: 348443 URL: https://svnweb.freebsd.org/changeset/base/348443 Log: readelf: Make -t imply -S, for compatibility with GNU binutils. Reported by: jhb Reviewed by: emaste MFC after:1 week Sponsored by: The FreeBSD

svn commit: r348440 - head/sys/dev/cxgbe/tom

2019-05-30 Thread Navdeep Parhar
Author: np Date: Thu May 30 17:27:40 2019 New Revision: 348440 URL: https://svnweb.freebsd.org/changeset/base/348440 Log: cxgbe/t4_tom: Do not attempt to look up entries in the TCB history if it hasn't been initialized. This fixes a bug in r346570 that could cause a panic when servicing

svn commit: r348439 - head/release/tools

2019-05-30 Thread Glen Barber
Author: gjb Date: Thu May 30 17:00:57 2019 New Revision: 348439 URL: https://svnweb.freebsd.org/changeset/base/348439 Log: Increase the size of the Vagrant default image size, as the 3GB size is too small to bootstrap the firstboot_pkgs list. While here, add the growfs(8) startup script

svn commit: r348438 - head/release/tools

2019-05-30 Thread Glen Barber
Author: gjb Date: Thu May 30 16:49:40 2019 New Revision: 348438 URL: https://svnweb.freebsd.org/changeset/base/348438 Log: Fix GCE virtual machine startup. The ports/head branch recently switched to python3 as the default, which breaks the sysutils/py-google-compute-engine startup

svn commit: r348434 - head/sys/kern

2019-05-30 Thread Dmitry Chagin
Author: dchagin Date: Thu May 30 16:11:20 2019 New Revision: 348434 URL: https://svnweb.freebsd.org/changeset/base/348434 Log: Remove wrong inline keyword. Reported by: markj MFC after:1 week Modified: head/sys/kern/kern_prot.c Modified: head/sys/kern/kern_prot.c

svn commit: r348433 - head/sys/kern

2019-05-30 Thread Konstantin Belousov
Author: kib Date: Thu May 30 16:04:00 2019 New Revision: 348433 URL: https://svnweb.freebsd.org/changeset/base/348433 Log: Remove TODO comment after posixshmcontrol(1) added. Sponsored by: The FreeBSD Foundation MFC after:3 days Modified: head/sys/kern/uipc_shm.c Modified:

svn commit: r348432 - head/usr.bin/posixshmcontrol

2019-05-30 Thread Konstantin Belousov
Author: kib Date: Thu May 30 16:02:40 2019 New Revision: 348432 URL: https://svnweb.freebsd.org/changeset/base/348432 Log: Minor tweaks to the layout. Sponsored by: The FreeBSD Foundation MFC after:3 days Modified: head/usr.bin/posixshmcontrol/posixshmcontrol.1 Modified:

svn commit: r348431 - head/contrib/elftoolchain/elfcopy

2019-05-30 Thread Mark Johnston
Author: markj Date: Thu May 30 15:28:48 2019 New Revision: 348431 URL: https://svnweb.freebsd.org/changeset/base/348431 Log: elfcopy: Optimize for insertions at the end of the section list. This is the common case when strip(1) is creating the output file. The change provides a

svn commit: r348430 - head/contrib/elftoolchain/elfcopy

2019-05-30 Thread Mark Johnston
Author: markj Date: Thu May 30 15:26:39 2019 New Revision: 348430 URL: https://svnweb.freebsd.org/changeset/base/348430 Log: elfcopy: Remove an unneeded memset. Reviewed by: emaste, trasz MFC after:1 week Sponsored by: The FreeBSD Foundation Differential Revision:

svn commit: r348422 - head/usr.sbin/mpsutil

2019-05-30 Thread Alexander Motin
Author: mav Date: Thu May 30 15:07:39 2019 New Revision: 348422 URL: https://svnweb.freebsd.org/changeset/base/348422 Log: Pass data pointers to the driver in way in expects. Probably due to historical reasons the driver uses In/Out arguments in odd way. While this tool still never uses

svn commit: r348421 - head/sys/kern

2019-05-30 Thread Konstantin Belousov
Author: kib Date: Thu May 30 15:04:09 2019 New Revision: 348421 URL: https://svnweb.freebsd.org/changeset/base/348421 Log: Silence witness warning about duplicated mutex type. The order is correct, it is nullfs vnode interlock -> lower vnode interlock. vop_stdadd_writecount() is called

svn commit: r348419 - in head: crypto/heimdal/lib/ipc share/man/man4 sys/compat/linux sys/kern sys/sys usr.sbin/mountd

2019-05-30 Thread Dmitry Chagin
Author: dchagin Date: Thu May 30 14:24:26 2019 New Revision: 348419 URL: https://svnweb.freebsd.org/changeset/base/348419 Log: Complete LOCAL_PEERCRED support. Cache pid of the remote process in the struct xucred. Do not bump XUCRED_VERSION as struct layout is not changed. PR:

svn commit: r348418 - head/sys/compat/linux

2019-05-30 Thread Dmitry Chagin
Author: dchagin Date: Thu May 30 14:21:51 2019 New Revision: 348418 URL: https://svnweb.freebsd.org/changeset/base/348418 Log: Linux does not support MSG_OOB for unix(4) or non-stream oriented socket, return EOPNOTSUPP as a Linux does. Reviewed by: tijl MFC after:1 week

svn commit: r348417 - in head/sys/dev: mpr mps

2019-05-30 Thread Alexander Motin
Author: mav Date: Thu May 30 14:13:09 2019 New Revision: 348417 URL: https://svnweb.freebsd.org/changeset/base/348417 Log: Fix busy status leak in case of incorrect passthrough args. MFC after:1 week Modified: head/sys/dev/mpr/mpr_user.c head/sys/dev/mps/mps_user.c Modified:

svn commit: r348416 - in head/sys: dev/ena modules/ena

2019-05-30 Thread Marcin Wojtas
Author: mw Date: Thu May 30 13:52:32 2019 New Revision: 348416 URL: https://svnweb.freebsd.org/changeset/base/348416 Log: Update ENA version to v2.0.0 ENAv2 introduces many new features, bug fixes and improvements. Main new features are LLQ (Low Latency Queues) and independent queues

svn commit: r348414 - head/share/man/man4

2019-05-30 Thread Marcin Wojtas
Author: mw Date: Thu May 30 13:50:45 2019 New Revision: 348414 URL: https://svnweb.freebsd.org/changeset/base/348414 Log: Fix ENA manual issues The issues were pointed in community review: https://reviews.freebsd.org/D10427#inline-67587 Also, fix other issues found by the igor tool.

svn commit: r348413 - head/sys/dev/ena

2019-05-30 Thread Marcin Wojtas
Author: mw Date: Thu May 30 13:45:41 2019 New Revision: 348413 URL: https://svnweb.freebsd.org/changeset/base/348413 Log: Improve ENA reset handling For easier debugging, the reset is being triggered and the reset reason is being set only in case it is done for the first time. Such

svn commit: r348412 - head/sys/dev/ena

2019-05-30 Thread Marcin Wojtas
Author: mw Date: Thu May 30 13:42:52 2019 New Revision: 348412 URL: https://svnweb.freebsd.org/changeset/base/348412 Log: Fix NULL pointer dereference in ena_up() If the call to ena_up() in ena_restore_device() fails, next usage of `ifconfig up` will cause NULL pointer dereference.

svn commit: r348411 - head/sys/dev/ena

2019-05-30 Thread Marcin Wojtas
Author: mw Date: Thu May 30 13:41:39 2019 New Revision: 348411 URL: https://svnweb.freebsd.org/changeset/base/348411 Log: Unify new line characters in the ENA driver Some messages were missing new line character and traces were not having unified behavior. To fix that, each trace and

svn commit: r348410 - head/sys/dev/ena

2019-05-30 Thread Marcin Wojtas
Author: mw Date: Thu May 30 13:40:51 2019 New Revision: 348410 URL: https://svnweb.freebsd.org/changeset/base/348410 Log: Fix Tx offloads for fragmented pkt headers in ENA If the headers of the packets are split into multiple segments of the mbuf chain, the previous version of

svn commit: r348409 - head/sys/dev/ena

2019-05-30 Thread Marcin Wojtas
Author: mw Date: Thu May 30 13:39:25 2019 New Revision: 348409 URL: https://svnweb.freebsd.org/changeset/base/348409 Log: Split ENA reset routine into restore and destroy stages For alignment with Linux driver and better handling ena_detach(), the reset is now calling

svn commit: r348408 - head/sys/dev/ena

2019-05-30 Thread Marcin Wojtas
Author: mw Date: Thu May 30 13:37:15 2019 New Revision: 348408 URL: https://svnweb.freebsd.org/changeset/base/348408 Log: Use bitfield for storing global ENA device states As the ENA can have multiple states turned on/off, it is more convenient to store them in single bitfield instead of

svn commit: r348407 - head/sys/dev/ena

2019-05-30 Thread Marcin Wojtas
Author: mw Date: Thu May 30 13:35:43 2019 New Revision: 348407 URL: https://svnweb.freebsd.org/changeset/base/348407 Log: Fix error handling when ENA reset fails Before the patch, error handling was not releasing all resources and was not issuing device reset if the reset task failed.

svn commit: r348406 - head/sys/dev/ena

2019-05-30 Thread Marcin Wojtas
Author: mw Date: Thu May 30 13:35:02 2019 New Revision: 348406 URL: https://svnweb.freebsd.org/changeset/base/348406 Log: Fill bdf field of the host_info structure in ENA The host info bdf field is the abbreviation for the bus, device, function of the PCI on which the device is being

svn commit: r348405 - head/sys/dev/ena

2019-05-30 Thread Marcin Wojtas
Author: mw Date: Thu May 30 13:33:31 2019 New Revision: 348405 URL: https://svnweb.freebsd.org/changeset/base/348405 Log: Add additional doorbells on ENA Tx path The new ENA HAL is introducing API, which can determine on Tx path if the doorbell is needed. That way, it can tell the

svn commit: r348404 - head/sys/dev/ena

2019-05-30 Thread Marcin Wojtas
Author: mw Date: Thu May 30 13:31:35 2019 New Revision: 348404 URL: https://svnweb.freebsd.org/changeset/base/348404 Log: Limit maximum size of Rx refill threshold in ENA The Rx ring size can be as high as 8k. Because of that we want to limit the cleanup threshold by maximum value of

svn commit: r348403 - head/sys/dev/ena

2019-05-30 Thread Marcin Wojtas
Author: mw Date: Thu May 30 13:30:52 2019 New Revision: 348403 URL: https://svnweb.freebsd.org/changeset/base/348403 Log: Add support for the LLQv2 and WC in ENA LLQ (Low Latency Queue) is the feature, that allows pushing header directly to the device through PCI before even DMA is

svn commit: r348402 - head/sys/dev/ena

2019-05-30 Thread Marcin Wojtas
Author: mw Date: Thu May 30 13:29:24 2019 New Revision: 348402 URL: https://svnweb.freebsd.org/changeset/base/348402 Log: Lock optimization in ENA Handle IO interrupts using filter routine. That way, the main cleanup task could be moved to the separate thread using taskqueue. The

svn commit: r348401 - head/sys/dev/ena

2019-05-30 Thread Marcin Wojtas
Author: mw Date: Thu May 30 13:28:03 2019 New Revision: 348401 URL: https://svnweb.freebsd.org/changeset/base/348401 Log: Add tuneable drbr ring size and hw queues depth for ENA The driver now supports per adapter tuning of buffer ring size and HW Rx ring size. It can be achieved

svn commit: r348400 - head/sys/dev/ena

2019-05-30 Thread Marcin Wojtas
Author: mw Date: Thu May 30 13:26:18 2019 New Revision: 348400 URL: https://svnweb.freebsd.org/changeset/base/348400 Log: Fix error in validate_tx_req_id() in ENA If the requested ID was out of range, the tx_info structure was NULL and the function was trying to access the field of the

svn commit: r348399 - head/sys/dev/ena

2019-05-30 Thread Marcin Wojtas
Author: mw Date: Thu May 30 13:24:47 2019 New Revision: 348399 URL: https://svnweb.freebsd.org/changeset/base/348399 Log: Change attach order to prevent crash upon failure in ENA The if_detach was causing crash if the MSI-x configuration in the attach failed. To prevent this issue, the

svn commit: r348398 - head/sys/dev/ena

2019-05-30 Thread Marcin Wojtas
Author: mw Date: Thu May 30 13:22:53 2019 New Revision: 348398 URL: https://svnweb.freebsd.org/changeset/base/348398 Log: Change order of ifp release on ENA detach In rare case, when the ifconfig is called just before kldunload, it is possible, that ena_up routine will be called after

svn commit: r348397 - head/sys/dev/ena

2019-05-30 Thread Marcin Wojtas
Author: mw Date: Thu May 30 13:22:12 2019 New Revision: 348397 URL: https://svnweb.freebsd.org/changeset/base/348397 Log: Check for number of MSI-x upon partial allocation in ENA The ENA driver needs at least 2 MSI-x - one for admin queue, and one for IO queues pair. If there were not

svn commit: r348396 - head/sys/dev/ena

2019-05-30 Thread Marcin Wojtas
Author: mw Date: Thu May 30 13:20:42 2019 New Revision: 348396 URL: https://svnweb.freebsd.org/changeset/base/348396 Log: Set error value when allocation of IO irq fails in ENA bus_alloc_resource_any() is not returning error value in case of an error. If the function call fails, the

svn commit: r348394 - head/sys/dev/ena

2019-05-30 Thread Marcin Wojtas
Author: mw Date: Thu May 30 13:18:23 2019 New Revision: 348394 URL: https://svnweb.freebsd.org/changeset/base/348394 Log: Fix DMA synchronization in the ENA driver Tx and Rx paths The DMA in FreeBSD requires explicit synchronization. ENA driver was only doing PREREAD and PREWRITE

svn commit: r348395 - head/sys/dev/ena

2019-05-30 Thread Marcin Wojtas
Author: mw Date: Thu May 30 13:19:32 2019 New Revision: 348395 URL: https://svnweb.freebsd.org/changeset/base/348395 Log: Set vaddr and paddr as NULL when DMA alloc fails in ENA To prevent errors from assigning values from the DMA structure in case of an error, zero the vaddr and paddr

svn commit: r348393 - head/sys/dev/ena

2019-05-30 Thread Marcin Wojtas
Author: mw Date: Thu May 30 13:16:56 2019 New Revision: 348393 URL: https://svnweb.freebsd.org/changeset/base/348393 Log: Check for missing MSI-x and Tx completions in ENA If the first MSI-x won't be executed, then the timer service will detect that and trigger device reset. The

svn commit: r348392 - head/sys/dev/ena

2019-05-30 Thread Marcin Wojtas
Author: mw Date: Thu May 30 13:15:38 2019 New Revision: 348392 URL: https://svnweb.freebsd.org/changeset/base/348392 Log: Fill number of CPUs field on ENA host_info structure The new ena_com allows the number of CPUs to be passed to the device in the host info structure as a hint.

svn commit: r348391 - head/sys/dev/ena

2019-05-30 Thread Marcin Wojtas
Author: mw Date: Thu May 30 13:14:58 2019 New Revision: 348391 URL: https://svnweb.freebsd.org/changeset/base/348391 Log: Print ENA Tx error conditionally Information about Tx error should be only displayed, if packet preparation failed due to error other than out of memory.

svn commit: r348390 - head/sys/dev/ena

2019-05-30 Thread Marcin Wojtas
Author: mw Date: Thu May 30 13:13:15 2019 New Revision: 348390 URL: https://svnweb.freebsd.org/changeset/base/348390 Log: Trigger reset in ENA if there are too many Rx descriptors Whenever the driver will receive too many descriptors from the device, it should trigger the device reset,

svn commit: r348389 - head/sys/dev/ena

2019-05-30 Thread Marcin Wojtas
Author: mw Date: Thu May 30 13:12:14 2019 New Revision: 348389 URL: https://svnweb.freebsd.org/changeset/base/348389 Log: Remove RSS support in ENA Receive Side Scaling is optional feature that could be enabled in kernel configuration by defining flag RSS. Kernel uses hash to store

svn commit: r348388 - head/sys/dev/ena

2019-05-30 Thread Marcin Wojtas
Author: mw Date: Thu May 30 13:09:53 2019 New Revision: 348388 URL: https://svnweb.freebsd.org/changeset/base/348388 Log: Add notification AENQ handler for ENA Notification AENQ handler is responsible for handling requests from ENA device. Missing Tx threshold, Tx timeout and keep alive

svn commit: r348387 - head/sys/dev/ena

2019-05-30 Thread Marcin Wojtas
Author: mw Date: Thu May 30 13:08:00 2019 New Revision: 348387 URL: https://svnweb.freebsd.org/changeset/base/348387 Log: Print information when ENA admin error occurs ENA_ADMIN_FATAL_ERROR and ENA_ADMIN_WARNING aenq groups were indicated as supported, so the unimplemented_aenq_handler()

svn commit: r348386 - head/sys/dev/ena

2019-05-30 Thread Marcin Wojtas
Author: mw Date: Thu May 30 13:06:07 2019 New Revision: 348386 URL: https://svnweb.freebsd.org/changeset/base/348386 Log: Do not specify active media type in ENA As the ENA is working only in virtualized environment, the active media is not specified. Instead, the active link type is set

svn commit: r348385 - in head/sys: contrib/ena-com contrib/ena-com/ena_defs dev/ena

2019-05-30 Thread Marcin Wojtas
Author: mw Date: Thu May 30 13:01:46 2019 New Revision: 348385 URL: https://svnweb.freebsd.org/changeset/base/348385 Log: Adjust ENA driver to the new ena-com Recent HAL change preparing to support ENAv2 required minor driver modifications. The ena_com_sq_empty_space() is not