svn commit: r336445 - head/sys/crypto/aesni

2018-07-17 Thread Conrad Meyer
Author: cem Date: Wed Jul 18 04:44:11 2018 New Revision: 336445 URL: https://svnweb.freebsd.org/changeset/base/336445 Log: Remove unused variable Reported by: gcc Modified: head/sys/crypto/aesni/aesni.c Modified: head/sys/crypto/aesni/aesni.c

svn commit: r336444 - head/sys/crypto/aesni

2018-07-17 Thread Conrad Meyer
Author: cem Date: Wed Jul 18 04:43:18 2018 New Revision: 336444 URL: https://svnweb.freebsd.org/changeset/base/336444 Log: aesni(4): Add SHA2-224(-HMAC) support as well Modified: head/sys/crypto/aesni/aesni.c Modified: head/sys/crypto/aesni/aesni.c

svn commit: r336443 - head/sys/crypto/aesni

2018-07-17 Thread Conrad Meyer
Author: cem Date: Wed Jul 18 04:37:14 2018 New Revision: 336443 URL: https://svnweb.freebsd.org/changeset/base/336443 Log: aesni(4): Add sha256 plain hash support Modified: head/sys/crypto/aesni/aesni.c Modified: head/sys/crypto/aesni/aesni.c

svn commit: r336442 - head/sys/crypto/aesni

2018-07-17 Thread Conrad Meyer
Author: cem Date: Wed Jul 18 04:29:44 2018 New Revision: 336442 URL: https://svnweb.freebsd.org/changeset/base/336442 Log: aesni(4): Abstract out hash/HMAC support No functional change. Verified with cryptocheck. Modified: head/sys/crypto/aesni/aesni.c Modified:

svn commit: r336441 - head/sys/dev/glxsb

2018-07-17 Thread Conrad Meyer
Author: cem Date: Wed Jul 18 03:32:28 2018 New Revision: 336441 URL: https://svnweb.freebsd.org/changeset/base/336441 Log: glxsb: Convert remaining OCF driver to new interface glxsb, an i386 AMD Geode specific driver, was missed in r336439. Correct that mistake and adapt it to the new

svn commit: r336440 - stable/11/sbin/dhclient

2018-07-17 Thread Eugene Grosbein
Author: eugen Date: Wed Jul 18 01:57:13 2018 New Revision: 336440 URL: https://svnweb.freebsd.org/changeset/base/336440 Log: MFC r336195: unbreak dhclient(8) option 26 processing Make dhclient(8) verify if new MTU (option 26) differs from current one and skip unneeded MTU change.

svn commit: r336439 - in head: share/man/man9 sys/crypto/aesni sys/crypto/armv8 sys/crypto/blake2 sys/crypto/ccp sys/crypto/via sys/dev/cesa sys/dev/cxgbe/crypto sys/dev/hifn sys/dev/safe sys/dev/s...

2018-07-17 Thread Conrad Meyer
Author: cem Date: Wed Jul 18 00:56:25 2018 New Revision: 336439 URL: https://svnweb.freebsd.org/changeset/base/336439 Log: OpenCrypto: Convert sessions to opaque handles instead of integers Track session objects in the framework, and pass handles between the framework (OCF), consumers,

svn commit: r336438 - head/sys/dev/bxe

2018-07-17 Thread David C Somayajulu
Author: davidcs Date: Tue Jul 17 23:56:13 2018 New Revision: 336438 URL: https://svnweb.freebsd.org/changeset/base/336438 Log: Fixes for the following issues: 1. Fix taskqueues drain/free to fix panic seen when interface is being bought down and in parallel asynchronous link events

svn commit: r336435 - head/share/man/man7

2018-07-17 Thread Warner Losh
Author: imp Date: Tue Jul 17 23:23:39 2018 New Revision: 336435 URL: https://svnweb.freebsd.org/changeset/base/336435 Log: Remove armeb from arch.7 Remove all the details about armeb from arch(7), except for its release start and end, like alpha, ia64 and pc98. Differential

svn commit: r336434 - head

2018-07-17 Thread Warner Losh
Author: imp Date: Tue Jul 17 23:23:34 2018 New Revision: 336434 URL: https://svnweb.freebsd.org/changeset/base/336434 Log: As discussed several times on freebsd-arch, start to decommission armeb. Remove armeb/arm from KNOWN_ARCHS. Remove armeb from arm universe targets. Differential

svn commit: r336437 - in head: lib lib/libclang_rt share/mk targets/pseudo/clang targets/pseudo/userland/lib

2018-07-17 Thread Warner Losh
Author: imp Date: Tue Jul 17 23:23:54 2018 New Revision: 336437 URL: https://svnweb.freebsd.org/changeset/base/336437 Log: Remove special cases for armeb in the build. Differential Revision: https://reviews.freebsd.org/D16257 Modified: head/lib/Makefile head/lib/libclang_rt/Makefile

svn commit: r336436 - in head/sys: arm/arm arm/conf arm/include arm/xscale arm/xscale/ixp425 conf dev/cfi dev/hwpmc dev/usb/controller modules/cfi

2018-07-17 Thread Warner Losh
Author: imp Date: Tue Jul 17 23:23:45 2018 New Revision: 336436 URL: https://svnweb.freebsd.org/changeset/base/336436 Log: Remove kernel support for armeb Remove all the big-endian arm architectures (ixp425 and ixp435) support in the kernel and associated drivers. Differential

svn commit: r336433 - head/release

2018-07-17 Thread Colin Percival
Author: cperciva Date: Tue Jul 17 23:16:05 2018 New Revision: 336433 URL: https://svnweb.freebsd.org/changeset/base/336433 Log: Check that EC2SNSTOPIC and EC2PUBLIC are non-empty, along with being defined, in order to avoid problems with thermite.sh. Reported by: gjb Modified:

svn commit: r336432 - head/sys/mips/cavium

2018-07-17 Thread Warner Losh
Author: imp Date: Tue Jul 17 23:00:52 2018 New Revision: 336432 URL: https://svnweb.freebsd.org/changeset/base/336432 Log: Fix compile error introduced in r336245. Include sys/boot.h to pickup the prototypes for boot_parse_arg. Modified: head/sys/mips/cavium/octeon_machdep.c Modified:

svn commit: r336431 - head/stand/efi/libefi

2018-07-17 Thread Warner Losh
Author: imp Date: Tue Jul 17 21:45:14 2018 New Revision: 336431 URL: https://svnweb.freebsd.org/changeset/base/336431 Log: Remove bogus attempt to simulate scrolling. It's not needed and messes up serial output. Setting the cursor position after every character is inefficient, and causes

svn commit: r336430 - head/sys/sparc64/include

2018-07-17 Thread Warner Losh
Author: imp Date: Tue Jul 17 21:18:49 2018 New Revision: 336430 URL: https://svnweb.freebsd.org/changeset/base/336430 Log: Fix a typo: change lists to list to match rest of sentence. Also, I misspoke in r336428. Any devices on sparc64 machines on "isa" that can do DMA can do 32-bit

svn commit: r336429 - stable/10/contrib/llvm/lib/CodeGen/SelectionDAG

2018-07-17 Thread Dimitry Andric
Author: dim Date: Tue Jul 17 21:10:31 2018 New Revision: 336429 URL: https://svnweb.freebsd.org/changeset/base/336429 Log: Pull in r211155 from upstream llvm trunk (by Tim Northover): DAG: move sret demotion into most basic LowerCallTo implementation. It looks like there are two

svn commit: r336427 - in head/sys: arm64/include riscv/include

2018-07-17 Thread Warner Losh
Author: imp Date: Tue Jul 17 21:07:53 2018 New Revision: 336427 URL: https://svnweb.freebsd.org/changeset/base/336427 Log: Remove VM_FREELIST_ISADMA. It's not needed on these architectures. Differential Review: https://reviews.freebsd.org/D16290 Modified:

svn commit: r336428 - head/sys/sparc64/include

2018-07-17 Thread Warner Losh
Author: imp Date: Tue Jul 17 21:08:01 2018 New Revision: 336428 URL: https://svnweb.freebsd.org/changeset/base/336428 Log: Remove VM_FREELIST_ISADMA Sparc64 doesn't have any devices that do DMA that are attached to isa or ebus, so we don't need a low-memory pool. Modified:

svn commit: r336426 - head/sys/dev/hyperv/netvsc

2018-07-17 Thread Dexuan Cui
Author: dexuan Date: Tue Jul 17 21:05:08 2018 New Revision: 336426 URL: https://svnweb.freebsd.org/changeset/base/336426 Log: hyperv/hn: Fix panic in hypervisor code upon device detach event Submitted by: hselasky Reviewed by: dexuan MFC after:3 days Differential Revision:

svn commit: r336425 - head/stand/efi/libefi

2018-07-17 Thread Warner Losh
Author: imp Date: Tue Jul 17 20:26:17 2018 New Revision: 336425 URL: https://svnweb.freebsd.org/changeset/base/336425 Log: More typos Noticed by: ian@ Modified: head/stand/efi/libefi/env.c Modified: head/stand/efi/libefi/env.c

Re: svn commit: r336424 - head/stand/efi/libefi

2018-07-17 Thread Warner Losh
Sure. Everything else is wrong with this function. :( On Tue, Jul 17, 2018 at 2:20 PM, Ian Lepore wrote: > On Tue, 2018-07-17 at 20:11 +, Warner Losh wrote: > > Author: imp > > Date: Tue Jul 17 20:11:52 2018 > > New Revision: 336424 > > URL: https://svnweb.freebsd.org/changeset/base/336424

Re: svn commit: r336424 - head/stand/efi/libefi

2018-07-17 Thread Ian Lepore
On Tue, 2018-07-17 at 20:11 +, Warner Losh wrote: > Author: imp > Date: Tue Jul 17 20:11:52 2018 > New Revision: 336424 > URL: https://svnweb.freebsd.org/changeset/base/336424 > > Log: >   Fix typo in the command summary. >    >   Of course, I can't get the command to work, but it's a

svn commit: r336424 - head/stand/efi/libefi

2018-07-17 Thread Warner Losh
Author: imp Date: Tue Jul 17 20:11:52 2018 New Revision: 336424 URL: https://svnweb.freebsd.org/changeset/base/336424 Log: Fix typo in the command summary. Of course, I can't get the command to work, but it's a start... Modified: head/stand/efi/libefi/env.c Modified:

svn commit: r336422 - in stable/10/sys/fs: nfs nfsserver

2018-07-17 Thread Rick Macklem
Author: rmacklem Date: Tue Jul 17 19:26:17 2018 New Revision: 336422 URL: https://svnweb.freebsd.org/changeset/base/336422 Log: MFC: r333645 End grace for the NFSv4 server if all mounts do ReclaimComplete. The NFSv4 protocol requires that the server only allow reclaim of state and not

svn commit: r336421 - in stable/11/sys/fs: nfs nfsserver

2018-07-17 Thread Rick Macklem
Author: rmacklem Date: Tue Jul 17 19:10:15 2018 New Revision: 336421 URL: https://svnweb.freebsd.org/changeset/base/336421 Log: MFC: r333645 End grace for the NFSv4 server if all mounts do ReclaimComplete. The NFSv4 protocol requires that the server only allow reclaim of state and not

svn commit: r336420 - head/release

2018-07-17 Thread Colin Percival
Author: cperciva Date: Tue Jul 17 19:05:30 2018 New Revision: 336420 URL: https://svnweb.freebsd.org/changeset/base/336420 Log: Teach EC2 AMI release code to send an SNS notification after publishing new AMIs if EC2SNSTOPIC is defined. Reviewed by: gjb Requested by: Amazon Modified:

svn commit: r336419 - head/usr.sbin/config

2018-07-17 Thread Kyle Evans
Author: kevans Date: Tue Jul 17 15:16:34 2018 New Revision: 336419 URL: https://svnweb.freebsd.org/changeset/base/336419 Log: config(8): Invert checks; envmode/hintmode reflect "env provided"1 Modified: head/usr.sbin/config/mkmakefile.c Modified: head/usr.sbin/config/mkmakefile.c

svn commit: r336418 - head/tests/sys/audit

2018-07-17 Thread Alan Somers
Author: asomers Date: Tue Jul 17 15:12:55 2018 New Revision: 336418 URL: https://svnweb.freebsd.org/changeset/base/336418 Log: audit(4): add tests for _exit(2), cap_enter(2), and cap_getmode(2) Also, fix a bug in common code that could cause other tests to fail: using ppoll(2) in

svn commit: r336417 - head/sys/kern

2018-07-17 Thread Mark Johnston
Author: markj Date: Tue Jul 17 14:56:54 2018 New Revision: 336417 URL: https://svnweb.freebsd.org/changeset/base/336417 Log: Add a FALLTHROUGH comment to kvprintf(). Submitted by: Sebastian Huber MFC after:3 days Modified: head/sys/kern/subr_prf.c Modified:

svn commit: r336416 - head/usr.sbin/config

2018-07-17 Thread Kyle Evans
Author: kevans Date: Tue Jul 17 14:34:54 2018 New Revision: 336416 URL: https://svnweb.freebsd.org/changeset/base/336416 Log: Fix GCC 4.2 build after r336415, proper declaration and prototype Modified: head/usr.sbin/config/main.c Modified: head/usr.sbin/config/main.c

svn commit: r336415 - head/usr.sbin/config

2018-07-17 Thread Kyle Evans
Author: kevans Date: Tue Jul 17 14:14:53 2018 New Revision: 336415 URL: https://svnweb.freebsd.org/changeset/base/336415 Log: config(8): Add compatibility shims for r335998 Plumb the %VERSREQ from Makefile. through to the rest of config(8). We've recorded the config(8) version that we're

svn commit: r336414 - in head: sys/conf usr.sbin/config

2018-07-17 Thread Kyle Evans
Author: kevans Date: Tue Jul 17 14:11:30 2018 New Revision: 336414 URL: https://svnweb.freebsd.org/changeset/base/336414 Log: Revert r336353 completely based on protest; compatibility shims incoming Modified: head/sys/conf/Makefile.amd64 head/sys/conf/Makefile.arm

svn commit: r336412 - head/lib/msun/src

2018-07-17 Thread Bruce Evans
Author: bde Date: Tue Jul 17 12:01:59 2018 New Revision: 336412 URL: https://svnweb.freebsd.org/changeset/base/336412 Log: Minor cleanups to csqrt*(), mostly in comments. Remove the STDC CX_LIMITED_RANGE pragma and its verbose comment. We still don't have any C99 compilers (that support

svn commit: r336411 - head/sys/dev/mlx5/mlx5_en

2018-07-17 Thread Hans Petter Selasky
Author: hselasky Date: Tue Jul 17 11:53:37 2018 New Revision: 336411 URL: https://svnweb.freebsd.org/changeset/base/336411 Log: Use a mbuf header instead of a mbuf cluster for debugging interrupts in mlx5en(4). MFC after:1 week Sponsored by: Mellanox Technologies

svn commit: r336410 - head/sys/dev/mlx5/mlx5_core

2018-07-17 Thread Hans Petter Selasky
Author: hselasky Date: Tue Jul 17 11:47:56 2018 New Revision: 336410 URL: https://svnweb.freebsd.org/changeset/base/336410 Log: Add module parameter to limit number of MSIX EQ vectors in mlx5en(4). For setups having a large amount of PCI devices, it makes sense to limit the number of

svn commit: r336407 - head/sys/dev/mlx5/mlx5_en

2018-07-17 Thread Hans Petter Selasky
Author: hselasky Date: Tue Jul 17 11:42:05 2018 New Revision: 336407 URL: https://svnweb.freebsd.org/changeset/base/336407 Log: Handle jumbo frames without requiring big clusters in mlx5en(4). The scatter list is formed by the chunks of MCLBYTES each, and larger than default packets are

svn commit: r336409 - stable/11

2018-07-17 Thread Peter Jeremy
Author: peterj Date: Tue Jul 17 11:44:04 2018 New Revision: 336409 URL: https://svnweb.freebsd.org/changeset/base/336409 Log: Retrospectively document SVN branch points for stable-11 and its releases. This is a direct commit to stable/11 because the releases are taken from this branch.

svn commit: r336408 - head/sys/dev/mlx5/mlx5_en

2018-07-17 Thread Hans Petter Selasky
Author: hselasky Date: Tue Jul 17 11:43:43 2018 New Revision: 336408 URL: https://svnweb.freebsd.org/changeset/base/336408 Log: Add missing newline. MFC after:1 week Sponsored by: Mellanox Technologies Modified: head/sys/dev/mlx5/mlx5_en/mlx5_en_flow_table.c

svn commit: r336406 - head

2018-07-17 Thread Peter Jeremy
Author: peterj Date: Tue Jul 17 11:35:40 2018 New Revision: 336406 URL: https://svnweb.freebsd.org/changeset/base/336406 Log: Retrospectively document SVN branch point for stable-11 Approved by: jhb (mentor) Differential Revision:https://reviews.freebsd.org/D16262 Modified:

svn commit: r336405 - in head/sys: net netinet netinet6

2018-07-17 Thread Andrey V. Elsukov
Author: ae Date: Tue Jul 17 11:33:23 2018 New Revision: 336405 URL: https://svnweb.freebsd.org/changeset/base/336405 Log: Move invoking of callout_stop(>lle_timer) into llentry_free(). This deduplicates the code a bit, and also implicitly adds missing callout_stop() to

svn commit: r336404 - head/sys/dev/mlx5/mlx5_en

2018-07-17 Thread Hans Petter Selasky
Author: hselasky Date: Tue Jul 17 11:21:02 2018 New Revision: 336404 URL: https://svnweb.freebsd.org/changeset/base/336404 Log: Enable both receive and transmit pauseframes by default in mlx5en(4). MFC after:1 week Sponsored by: Mellanox Technologies Modified:

svn commit: r336403 - head/sys/dev/mlx5/mlx5_en

2018-07-17 Thread Hans Petter Selasky
Author: hselasky Date: Tue Jul 17 11:18:01 2018 New Revision: 336403 URL: https://svnweb.freebsd.org/changeset/base/336403 Log: Add context numbers for HW elements in mlx5en(4). To access the data, set sysctl dev.mce.N.conf.debug_stats to 1. This enables the sysctl node

svn commit: r336402 - head/sys/dev/mlx5/mlx5_en

2018-07-17 Thread Hans Petter Selasky
Author: hselasky Date: Tue Jul 17 11:11:30 2018 New Revision: 336402 URL: https://svnweb.freebsd.org/changeset/base/336402 Log: Do not hint about 'trust both' mode when the mlx5en(4) hardware does not support it. MFC after:1 week Sponsored by: Mellanox Technologies

svn commit: r336401 - head/sys/dev/mlx5/mlx5_en

2018-07-17 Thread Hans Petter Selasky
Author: hselasky Date: Tue Jul 17 11:08:40 2018 New Revision: 336401 URL: https://svnweb.freebsd.org/changeset/base/336401 Log: Correctly write atomic variable in mlx5en(4). MFC after:1 week Sponsored by: Mellanox Technologies Modified:

svn commit: r336400 - head/lib/msun/src

2018-07-17 Thread Bruce Evans
Author: bde Date: Tue Jul 17 10:44:16 2018 New Revision: 336400 URL: https://svnweb.freebsd.org/changeset/base/336400 Log: Fix scaling bugs which gave innaccuracies and spurious underflows in csqrt() and csqrtl(). When one component is huge and the other is tiny, scaling down the tiny

svn commit: r336399 - head/sys/dev/mlx5/mlx5_core

2018-07-17 Thread Hans Petter Selasky
Author: hselasky Date: Tue Jul 17 10:27:46 2018 New Revision: 336399 URL: https://svnweb.freebsd.org/changeset/base/336399 Log: Remove redundant call to mlx5_vsc_find_cap() in mlx5core. MFC after:1 week Sponsored by: Mellanox Technologies Modified:

svn commit: r336398 - head/sys/dev/mlx5/mlx5_core

2018-07-17 Thread Hans Petter Selasky
Author: hselasky Date: Tue Jul 17 10:20:01 2018 New Revision: 336398 URL: https://svnweb.freebsd.org/changeset/base/336398 Log: Make sure the state variable is set atomically instead of using a mutex in mlx5core. Device detach and setting error state may deadlock over the interface mutex

svn commit: r336397 - in head/sys: conf dev/mlx5 dev/mlx5/mlx5_core modules/mlx5

2018-07-17 Thread Hans Petter Selasky
Author: hselasky Date: Tue Jul 17 10:16:32 2018 New Revision: 336397 URL: https://svnweb.freebsd.org/changeset/base/336397 Log: Refactor access to CR-space into using VSC APIs in mlx5core. Remove no longer used files and APIs. MFC after:1 week Sponsored by:

svn commit: r336396 - head/sys/dev/mlx5/mlx5_core

2018-07-17 Thread Hans Petter Selasky
Author: hselasky Date: Tue Jul 17 10:11:00 2018 New Revision: 336396 URL: https://svnweb.freebsd.org/changeset/base/336396 Log: Remove redundant newline character in mlx5core. MFC after:1 week Sponsored by: Mellanox Technologies Modified:

svn commit: r336395 - head/sys/dev/mlx5/mlx5_ib

2018-07-17 Thread Hans Petter Selasky
Author: hselasky Date: Tue Jul 17 10:07:40 2018 New Revision: 336395 URL: https://svnweb.freebsd.org/changeset/base/336395 Log: Update version information for the mlx5ib module. MFC after:1 week Sponsored by: Mellanox Technologies Modified:

svn commit: r336394 - head/sys/dev/mlx5/mlx5_ib

2018-07-17 Thread Hans Petter Selasky
Author: hselasky Date: Tue Jul 17 09:59:55 2018 New Revision: 336394 URL: https://svnweb.freebsd.org/changeset/base/336394 Log: Don't pass unsupported events to ibcore from mlx5ib. MFC after:1 week Sponsored by: Mellanox Technologies Modified:

svn commit: r336393 - head/sys/dev/mlx5/mlx5_ib

2018-07-17 Thread Hans Petter Selasky
Author: hselasky Date: Tue Jul 17 09:58:11 2018 New Revision: 336393 URL: https://svnweb.freebsd.org/changeset/base/336393 Log: Use static device naming instead of dynamic one in mlx5ib. When resetting mlx5core instances it can happen that the order of attach and detach for mlx5ib

svn commit: r336392 - in head/sys/dev/mlx5: . mlx5_core mlx5_en mlx5_ib

2018-07-17 Thread Hans Petter Selasky
Author: hselasky Date: Tue Jul 17 09:56:40 2018 New Revision: 336392 URL: https://svnweb.freebsd.org/changeset/base/336392 Log: Implement support for Differentiated Service Code Point, DSCP, in mlx5en(4). The DSCP feature is controlled using a set of sysctl(8) fields under the qos sysctl

svn commit: r336391 - in head/sys/ofed/drivers/infiniband: core ulp/ipoib

2018-07-17 Thread Hans Petter Selasky
Author: hselasky Date: Tue Jul 17 09:47:14 2018 New Revision: 336391 URL: https://svnweb.freebsd.org/changeset/base/336391 Log: Use __FBSDID() for RCS tags in ibcore. MFC after:1 week Sponsored by: Mellanox Technologies Modified:

svn commit: r336390 - head/sys/ofed/include/rdma

2018-07-17 Thread Hans Petter Selasky
Author: hselasky Date: Tue Jul 17 09:44:16 2018 New Revision: 336390 URL: https://svnweb.freebsd.org/changeset/base/336390 Log: Remove blank line. MFC after:1 week Sponsored by: Mellanox Technologies Modified: head/sys/ofed/include/rdma/ib_addr.h Modified:

svn commit: r336389 - head/sys/ofed/drivers/infiniband/core

2018-07-17 Thread Hans Petter Selasky
Author: hselasky Date: Tue Jul 17 09:37:16 2018 New Revision: 336389 URL: https://svnweb.freebsd.org/changeset/base/336389 Log: Add support for IPv6 multicast in ibcore. This change allows us to join IPv6 multicast networks. MFC after:1 week Sponsored by:

svn commit: r336388 - head/sys/ofed/drivers/infiniband/core

2018-07-17 Thread Hans Petter Selasky
Author: hselasky Date: Tue Jul 17 09:36:04 2018 New Revision: 336388 URL: https://svnweb.freebsd.org/changeset/base/336388 Log: Add support for RoCEv2 multicast in ibcore. When creating address handle from multicast GID, set MAC according to the appropriate formula instead of searching

svn commit: r336385 - head/sys/ofed/drivers/infiniband/core

2018-07-17 Thread Hans Petter Selasky
Author: hselasky Date: Tue Jul 17 09:32:09 2018 New Revision: 336385 URL: https://svnweb.freebsd.org/changeset/base/336385 Log: Set IPv4 TOS and IPv6 traffic class field for RoCEv2 traffic in ibcore. The current implementation assumes a static mapping between the TOS bits and the

svn commit: r336387 - head/sys/ofed/drivers/infiniband/core

2018-07-17 Thread Hans Petter Selasky
Author: hselasky Date: Tue Jul 17 09:34:29 2018 New Revision: 336387 URL: https://svnweb.freebsd.org/changeset/base/336387 Log: Honor return status of ib_init_ah_from_mcmember() in ibcore. The return status of ib_init_ah_from_mcmember() is ignored by cma_ib_mc_handler(). Honor it and

svn commit: r336386 - head/sys/ofed/drivers/infiniband/core

2018-07-17 Thread Hans Petter Selasky
Author: hselasky Date: Tue Jul 17 09:33:20 2018 New Revision: 336386 URL: https://svnweb.freebsd.org/changeset/base/336386 Log: Honor port_num while resolving GID for IB link layer in ibcore. ah_attr contains the port number to which cm_id is bound. However, while searching for GID table

svn commit: r336384 - head/sys/ofed/drivers/infiniband/core

2018-07-17 Thread Hans Petter Selasky
Author: hselasky Date: Tue Jul 17 09:30:32 2018 New Revision: 336384 URL: https://svnweb.freebsd.org/changeset/base/336384 Log: Fix for loopback detection in address resolve logic in ibcore. When a loopback address is detected use the network interface which has the loopback flag set to

svn commit: r336383 - in head/sys/ofed: drivers/infiniband/core include/rdma

2018-07-17 Thread Hans Petter Selasky
Author: hselasky Date: Tue Jul 17 09:29:14 2018 New Revision: 336383 URL: https://svnweb.freebsd.org/changeset/base/336383 Log: Check port number supplied by user verbs cmds in ibcore. The ib_uverbs_create_ah() ind ib_uverbs_modify_qp() calls receive the port number from user input as

svn commit: r336382 - head/sys/ofed/drivers/infiniband/core

2018-07-17 Thread Hans Petter Selasky
Author: hselasky Date: Tue Jul 17 09:27:31 2018 New Revision: 336382 URL: https://svnweb.freebsd.org/changeset/base/336382 Log: Depend on IPv6 stack to resolve link local address for RoCEv2 in ibcore. RoCEv1 does not use the IPv6 stack to resolve the link local DGID since it uses GID

svn commit: r336381 - head/sys/ofed/drivers/infiniband/core

2018-07-17 Thread Hans Petter Selasky
Author: hselasky Date: Tue Jul 17 09:26:09 2018 New Revision: 336381 URL: https://svnweb.freebsd.org/changeset/base/336381 Log: Fix kernel crash during fail to initialize device in ibcore. This patch fixes the kernel crash that occurs during ib_dealloc_device() called due to provider

svn commit: r336380 - in head/sys/ofed: drivers/infiniband/core include/rdma

2018-07-17 Thread Hans Petter Selasky
Author: hselasky Date: Tue Jul 17 09:24:39 2018 New Revision: 336380 URL: https://svnweb.freebsd.org/changeset/base/336380 Log: Check AF family prior resolving address and introduce safer rdma_addr_size() variants in ibcore. Garbage supplied by user will cause to UCMA module provide zero

svn commit: r336379 - head/sys/ofed/drivers/infiniband/core

2018-07-17 Thread Hans Petter Selasky
Author: hselasky Date: Tue Jul 17 09:22:26 2018 New Revision: 336379 URL: https://svnweb.freebsd.org/changeset/base/336379 Log: Check for a cm_id->device in all user calls that need it in ibcore. This was done by auditing all callers of ucma_get_ctx and switching the ones that

svn commit: r336378 - head/sys/ofed/drivers/infiniband/core

2018-07-17 Thread Hans Petter Selasky
Author: hselasky Date: Tue Jul 17 09:21:05 2018 New Revision: 336378 URL: https://svnweb.freebsd.org/changeset/base/336378 Log: Restore initialisation of ctx->uid in ucma_create_id() in ibcore. This fixes a regression issue after r336373. MFC after:1 week Sponsored by:

svn commit: r336377 - head/sys/ofed/drivers/infiniband/core

2018-07-17 Thread Hans Petter Selasky
Author: hselasky Date: Tue Jul 17 09:18:16 2018 New Revision: 336377 URL: https://svnweb.freebsd.org/changeset/base/336377 Log: Fix kernel panic while using XRC_TGT QP type in ibcore. Attempt to modify XRC_TGT QP type from the user space (ibv_xsrq_pingpong invocation) will trigger the

svn commit: r336376 - head/sys/ofed/drivers/infiniband/core

2018-07-17 Thread Hans Petter Selasky
Author: hselasky Date: Tue Jul 17 09:16:54 2018 New Revision: 336376 URL: https://svnweb.freebsd.org/changeset/base/336376 Log: Fix NULL pointer dereference during device removal in ibcore. As part of ib_uverbs_remove_one which might be triggered upon reset flow, we trigger

svn commit: r336375 - head/sys/ofed/drivers/infiniband/core

2018-07-17 Thread Hans Petter Selasky
Author: hselasky Date: Tue Jul 17 09:15:50 2018 New Revision: 336375 URL: https://svnweb.freebsd.org/changeset/base/336375 Log: Fix access to non-initialized CM_ID object in ibcore. The attempt to join multicast group without ensuring that CMA device exists will lead to the following

svn commit: r336374 - head/sys/ofed/drivers/infiniband/core

2018-07-17 Thread Hans Petter Selasky
Author: hselasky Date: Tue Jul 17 09:14:20 2018 New Revision: 336374 URL: https://svnweb.freebsd.org/changeset/base/336374 Log: Avoid that ib_drain_qp() triggers an out-of-bounds stack access in ibcore. Linux commit: a1ae7d0345edd593d6725d3218434d903a0af95d MFC after:1

svn commit: r336373 - head/sys/ofed/drivers/infiniband/core

2018-07-17 Thread Hans Petter Selasky
Author: hselasky Date: Tue Jul 17 09:13:11 2018 New Revision: 336373 URL: https://svnweb.freebsd.org/changeset/base/336373 Log: Ensure that CM_ID exists prior to access it in ibcore. Prior to access UCMA commands, the context should be initialized and connected to CM_ID with

svn commit: r336372 - in head/sys: dev/mlx4/mlx4_ib dev/mlx5/mlx5_ib ofed/drivers/infiniband/core ofed/include/rdma

2018-07-17 Thread Hans Petter Selasky
Author: hselasky Date: Tue Jul 17 09:11:53 2018 New Revision: 336372 URL: https://svnweb.freebsd.org/changeset/base/336372 Log: Add support for prio-tagged traffic for RDMA in ibcore. When receiving a PCP change all GID entries are reloaded. This ensures the relevant GID entries use prio

svn commit: r336371 - head/sys/ofed/drivers/infiniband/core

2018-07-17 Thread Hans Petter Selasky
Author: hselasky Date: Tue Jul 17 09:09:17 2018 New Revision: 336371 URL: https://svnweb.freebsd.org/changeset/base/336371 Log: Set default GID type as RoCE when resolving RoCE route in ibcore. cma_iboe_set_mgid() is updated to reflect the RoCEv2 GID check. Linux commit:

svn commit: r336370 - in head/sys/ofed: drivers/infiniband/core include/rdma

2018-07-17 Thread Hans Petter Selasky
Author: hselasky Date: Tue Jul 17 09:07:36 2018 New Revision: 336370 URL: https://svnweb.freebsd.org/changeset/base/336370 Log: Set RoCEv2 MGID according to spec in ibcore. RoCEv2 Annex states that for RoCEv2 over IPv4, the corresponding IPv4 address is encoded into the GID according to

svn commit: r336369 - head/sys/ofed/drivers/infiniband/core

2018-07-17 Thread Hans Petter Selasky
Author: hselasky Date: Tue Jul 17 09:04:36 2018 New Revision: 336369 URL: https://svnweb.freebsd.org/changeset/base/336369 Log: For multicast functions in ibcore, verify that LIDs are multicast LIDs. The Infiniband spec defines "A multicast address is defined by a MGID and a MLID"

svn commit: r336368 - head/sys/ofed/drivers/infiniband/core

2018-07-17 Thread Hans Petter Selasky
Author: hselasky Date: Tue Jul 17 09:02:29 2018 New Revision: 336368 URL: https://svnweb.freebsd.org/changeset/base/336368 Log: Fix for RDMA loopback over VLAN in ibcore. Implement a more generic solution for detecting loopback. The problem was that the default netdevice was resolved

svn commit: r336367 - head/sys/ofed/drivers/infiniband/core

2018-07-17 Thread Hans Petter Selasky
Author: hselasky Date: Tue Jul 17 08:59:34 2018 New Revision: 336367 URL: https://svnweb.freebsd.org/changeset/base/336367 Log: Add native FreeBSD support for multicast in ibcore. This change adds support for registering multicast addresses, both IPv4 and IPv6. MFC after:

svn commit: r336366 - head/sys/ofed/drivers/infiniband/core

2018-07-17 Thread Hans Petter Selasky
Author: hselasky Date: Tue Jul 17 08:54:40 2018 New Revision: 336366 URL: https://svnweb.freebsd.org/changeset/base/336366 Log: If the MGID/MLID pair is not on the list return an error in ibcore. A list of MGID/MLID pairs is built when doing a multicast attach. When the multicast detach

svn commit: r336365 - head/sys/ofed/drivers/infiniband/core

2018-07-17 Thread Hans Petter Selasky
Author: hselasky Date: Tue Jul 17 08:52:29 2018 New Revision: 336365 URL: https://svnweb.freebsd.org/changeset/base/336365 Log: Add lock to multicast handlers in ibcore. When two handlers used the same object in the old schema, we blocked the process in the kernel. The new schema just

svn commit: r336364 - head/sys/ofed/drivers/infiniband/core

2018-07-17 Thread Hans Petter Selasky
Author: hselasky Date: Tue Jul 17 08:48:30 2018 New Revision: 336364 URL: https://svnweb.freebsd.org/changeset/base/336364 Log: Only update source address when resolving is successful in ibcore. When resolving an IP address in ibcore, only update the source address upon normal

svn commit: r336363 - head/sys/ofed/drivers/infiniband/core

2018-07-17 Thread Hans Petter Selasky
Author: hselasky Date: Tue Jul 17 08:34:49 2018 New Revision: 336363 URL: https://svnweb.freebsd.org/changeset/base/336363 Log: Process address resolve requests at least one time per second in ibcore. When setting a large address resolve timeout it was observed that the address resolving

svn commit: r336362 - in head/lib/msun: ld128 ld80 src

2018-07-17 Thread Bruce Evans
Author: bde Date: Tue Jul 17 07:42:14 2018 New Revision: 336362 URL: https://svnweb.freebsd.org/changeset/base/336362 Log: Add a macro nan_mix() and use it to get NaN results that are (bitwise) independent of the precision in most cases. This is mainly to simplify checking for errors.