svn commit: r341620 - in head/sys/dev/cxgbe: . common

2018-12-05 Thread Navdeep Parhar
Author: np Date: Thu Dec 6 06:18:21 2018 New Revision: 341620 URL: https://svnweb.freebsd.org/changeset/base/341620 Log: cxgbe(4): Fall back to a basic configuration in case of any error during card initialization. This is an expanded version of r333682. Break up prep_firmware into

svn commit: r341617 - head/sys/powerpc/powerpc

2018-12-05 Thread Justin Hibbits
Author: jhibbits Date: Thu Dec 6 04:36:02 2018 New Revision: 341617 URL: https://svnweb.freebsd.org/changeset/base/341617 Log: powerpc: Set very low priority mode while waiting for AP unleash event The POWER9 does not recognize 'or 27,27,27' as a thread priority NOP. On earlier POWER

svn commit: r341616 - head/sys/powerpc/powerpc

2018-12-05 Thread Justin Hibbits
Author: jhibbits Date: Thu Dec 6 04:30:24 2018 New Revision: 341616 URL: https://svnweb.freebsd.org/changeset/base/341616 Log: powerpc: Fix ELFv2 JMP_SLOT relocation fixup The jump slot is a function pointer, not a descriptor pointer, in ELFv2. Just write the pointer itself over, not

svn commit: r341614 - head/sys/powerpc/powermac

2018-12-05 Thread Justin Hibbits
Author: jhibbits Date: Thu Dec 6 04:25:12 2018 New Revision: 341614 URL: https://svnweb.freebsd.org/changeset/base/341614 Log: powerpc/powermac: Fix macgpio(4) child interrupt resource handling The 'interrupts' property is actually 2 words, not one, on macgpio child nodes. Open

Re: svn commit: r341505 - head/share/man/man5

2018-12-05 Thread Pedro Giffuni
On 12/5/18 10:24 AM, Pedro Giffuni wrote: On 12/5/18 12:06 AM, Kubilay Kocak wrote: On 5/12/2018 9:51 am, Pedro F. Giffuni wrote: Starting with FreeBSD 12 we fully support writing ext4 filesystems ... Seems minor but I think worth it for discovery/pola/obviousness, and a good time

svn commit: r341611 - head/sys/ufs/ffs

2018-12-05 Thread Kirk McKusick
Author: mckusick Date: Thu Dec 6 01:04:56 2018 New Revision: 341611 URL: https://svnweb.freebsd.org/changeset/base/341611 Log: If the vfs.ffs.dotrimcons sysctl option is enabled while a file deletion is active, specifically after a call to ffs_blkrelease_start() but before the call to

svn commit: r341608 - in head: lib/libufs sbin/dump sbin/fsck_ffs sbin/fsirand sbin/growfs sbin/quotacheck stand/libsa sys/geom/journal sys/geom/label sys/ufs/ffs usr.sbin/fstyp usr.sbin/quot

2018-12-05 Thread Kirk McKusick
Author: mckusick Date: Thu Dec 6 00:09:39 2018 New Revision: 341608 URL: https://svnweb.freebsd.org/changeset/base/341608 Log: Normally when an attempt is made to mount a UFS/FFS filesystem whose superblock has a check-hash error, an error message noting the superblock check-hash failure

Re: svn commit: r341375 - head/sys/vm

2018-12-05 Thread John Baldwin
On 12/1/18 8:50 AM, Konstantin Belousov wrote: > Author: kib > Date: Sat Dec 1 16:50:12 2018 > New Revision: 341375 > URL: https://svnweb.freebsd.org/changeset/base/341375 > > Log: > Allow to create swap zone larger than v_page_count / 2. > > If user configured the maxswapzone tunable,

Re: svn commit: r341598 - head/lib/libc/sys

2018-12-05 Thread Bruce Evans
On Thu, 6 Dec 2018, Bruce Evans wrote: On Wed, 5 Dec 2018, Alan Somers wrote: Log: stat(2): clarify which syscalls modify file timestamps ... These fields shouldn't exist. They are misimplemented compatibility cruft. ... which I fixed in FreeBSD-5 using bit-fields. Now the support for

Re: svn commit: r341598 - head/lib/libc/sys

2018-12-05 Thread Bruce Evans
On Wed, 5 Dec 2018, Alan Somers wrote: Log: stat(2): clarify which syscalls modify file timestamps The list of syscalls that modify st_atim, st_mtim, and st_ctim was quite out of date and probably not accurate to begin with. Update it, and make it clear that the list is open-ended.

svn commit: r341605 - head/tests/sys/netpfil/pf

2018-12-05 Thread Kristof Provost
Author: kp Date: Wed Dec 5 19:53:09 2018 New Revision: 341605 URL: https://svnweb.freebsd.org/changeset/base/341605 Log: pf tests: Add a defer mode test for pfsync Repeat the pfsync test, this time with the 'defer' option enabled. This exercises slightly different code paths. Modified:

svn commit: r341604 - head/sys/kern

2018-12-05 Thread Brooks Davis
Author: brooks Date: Wed Dec 5 19:18:16 2018 New Revision: 341604 URL: https://svnweb.freebsd.org/changeset/base/341604 Log: Further simplify arguments to init. With the removal of BOOTCDROM and fastboot support, this code always passed "-s" or "--". The latter simply terminates

Re: svn commit: r341505 - head/share/man/man5

2018-12-05 Thread Conrad Meyer
On Wed, Dec 5, 2018 at 10:47 AM Pedro Giffuni wrote: > On 05/12/2018 12:41, Conrad Meyer wrote: > > The Linux model is that the current incarnation of the ext2/3/4 driver > > is named "ext4," and that's what Linux users expect. You can mount > > any ext2/3/4 filesystem with the Linux ext4

Re: svn commit: r341505 - head/share/man/man5

2018-12-05 Thread Pedro Giffuni
On 05/12/2018 12:41, Conrad Meyer wrote: On Wed, Dec 5, 2018 at 7:24 AM Pedro Giffuni wrote: On 12/5/18 12:06 AM, Kubilay Kocak wrote: Can we remove '2' from the module/man/etc name if (since) it supports multiple extXfs versions? Is there anything serious preventing it? You can currently

svn commit: r341602 - head/sys/kern

2018-12-05 Thread Alan Cox
Author: alc Date: Wed Dec 5 18:26:40 2018 New Revision: 341602 URL: https://svnweb.freebsd.org/changeset/base/341602 Log: Terminate a blist_alloc search when a blst_meta_alloc call fails with cursor == 0. Every call to blst_meta_alloc but the one at the root is made only when the

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

2018-12-05 Thread Mark Johnston
Author: markj Date: Wed Dec 5 18:19:29 2018 New Revision: 341601 URL: https://svnweb.freebsd.org/changeset/base/341601 Log: ixl(4) has netdump support via iflib. Reported by: kbowling MFC after:3 days Modified: head/share/man/man4/netdump.4 Modified:

Re: svn commit: r341505 - head/share/man/man5

2018-12-05 Thread Conrad Meyer
On Wed, Dec 5, 2018 at 7:24 AM Pedro Giffuni wrote: > On 12/5/18 12:06 AM, Kubilay Kocak wrote: > > Can we remove '2' from the module/man/etc name if (since) it supports > > multiple extXfs versions? Is there anything serious preventing it? > > You can currently create plain ext2 filesystems on

svn commit: r341600 - head/sys/kern

2018-12-05 Thread Brooks Davis
Author: brooks Date: Wed Dec 5 17:35:15 2018 New Revision: 341600 URL: https://svnweb.freebsd.org/changeset/base/341600 Log: Remove never enabled support for "fastboot". This has been ifdef notyet since the import of BSD 4.4 Lite Kernel Sources in r1541. Sponsored by: DARPA, AFRL

svn commit: r341599 - head/sys/kern

2018-12-05 Thread Brooks Davis
Author: brooks Date: Wed Dec 5 17:29:14 2018 New Revision: 341599 URL: https://svnweb.freebsd.org/changeset/base/341599 Log: Remove ifdef BOOTCDROM option to start init. When BOOTCDROM is defined (via CFLAGS as there is no config option) it causes -C to be passed to init, but our init

svn commit: r341598 - head/lib/libc/sys

2018-12-05 Thread Alan Somers
Author: asomers Date: Wed Dec 5 17:28:40 2018 New Revision: 341598 URL: https://svnweb.freebsd.org/changeset/base/341598 Log: stat(2): clarify which syscalls modify file timestamps The list of syscalls that modify st_atim, st_mtim, and st_ctim was quite out of date and probably not

svn commit: r341595 - in head/sys: netinet netinet6

2018-12-05 Thread Mark Johnston
Author: markj Date: Wed Dec 5 17:06:00 2018 New Revision: 341595 URL: https://svnweb.freebsd.org/changeset/base/341595 Log: Clamp the INPCB port hash tables to IPPORT_MAX + 1 chains. Memory beyond that limit was previously unused, wasting roughly 1MB per 8GB of RAM. Also retire

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

2018-12-05 Thread Mark Johnston
Author: markj Date: Wed Dec 5 16:55:45 2018 New Revision: 341594 URL: https://svnweb.freebsd.org/changeset/base/341594 Log: Netdump support was added to mlx4en(4) in r341548. MFC with: r341548 Modified: head/share/man/man4/netdump.4 Modified: head/share/man/man4/netdump.4

svn commit: r341593 - in head/sys: contrib/vchiq/interface/compat kern sys

2018-12-05 Thread Mateusz Guzik
Author: mjg Date: Wed Dec 5 16:43:03 2018 New Revision: 341593 URL: https://svnweb.freebsd.org/changeset/base/341593 Log: sx: retire SX_NOADAPTIVE The flag is not used by anything for years and supporting it requires an explicit read from the lock when entering slow path. Flag

Re: svn commit: r341505 - head/share/man/man5

2018-12-05 Thread Rodney W. Grimes
> On 12/5/18 12:06 AM, Kubilay Kocak wrote: > > On 5/12/2018 9:51 am, Pedro F. Giffuni wrote: > >> Starting with FreeBSD 12 we fully support writing ext4 filesystems > > > > Can we remove '2' from the module/man/etc name if (since) it supports > > multiple extXfs versions? Is there anything

Re: svn commit: r341505 - head/share/man/man5

2018-12-05 Thread Ravi Pokala
> I will be glad to review/commit manpage changes that make things > clearer. We should probably even try to document the format, as I recall > we do for FAT somewhere(?). In addition to updating the manpage, perhaps also create links to it as ext3fs.5 and ext4fs.5? -Ravi (rpokala@)

svn commit: r341592 - head/sys/compat/linuxkpi/common/include/linux

2018-12-05 Thread Hans Petter Selasky
Author: hselasky Date: Wed Dec 5 15:56:44 2018 New Revision: 341592 URL: https://svnweb.freebsd.org/changeset/base/341592 Log: Remove redundant declaration after r341517. MFC after:1 week Sponsored by: Mellanox Technologies Modified:

svn commit: r341591 - head/sys/compat/linuxkpi/common/include/asm

2018-12-05 Thread Hans Petter Selasky
Author: hselasky Date: Wed Dec 5 15:53:34 2018 New Revision: 341591 URL: https://svnweb.freebsd.org/changeset/base/341591 Log: Fix some build of LinuxKPI on some platforms after r341518. MFC after:1 week Sponsored by: Mellanox Technologies Modified:

svn commit: r341590 - head/sys/conf

2018-12-05 Thread Hans Petter Selasky
Author: hselasky Date: Wed Dec 5 15:42:31 2018 New Revision: 341590 URL: https://svnweb.freebsd.org/changeset/base/341590 Log: Fix LINT build after r341572. MFC after:1 week Sponsored by: Mellanox Technologies Modified: head/sys/conf/files Modified:

svn commit: r341589 - head/sys/net

2018-12-05 Thread Vincenzo Maffione
Author: vmaffione Date: Wed Dec 5 15:38:52 2018 New Revision: 341589 URL: https://svnweb.freebsd.org/changeset/base/341589 Log: netmap.h: include stdatomic.h The stdatomic.h header exports atomic_thread_fence(), that can be used to implement the nm_stst_barrier() macro needed by

Re: svn commit: r341505 - head/share/man/man5

2018-12-05 Thread Pedro Giffuni
On 12/5/18 12:06 AM, Kubilay Kocak wrote: On 5/12/2018 9:51 am, Pedro F. Giffuni wrote: Starting with FreeBSD 12 we fully support writing ext4 filesystems Can we remove '2' from the module/man/etc name if (since) it supports multiple extXfs versions? Is there anything serious preventing

svn commit: r341587 - in head/sys/dev: mlx4/mlx4_core mlx4/mlx4_ib mlx5/mlx5_core mlx5/mlx5_en mlx5/mlx5_ib

2018-12-05 Thread Slava Shwartsman
Author: slavash Date: Wed Dec 5 14:25:34 2018 New Revision: 341587 URL: https://svnweb.freebsd.org/changeset/base/341587 Log: mlx4/mlx5: Updated driver version to 3.5.0 Approved by:hselasky (mentor) MFC after: 1 week Sponsored by: Mellanox Technologies Modified:

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

2018-12-05 Thread Slava Shwartsman
Author: slavash Date: Wed Dec 5 14:24:33 2018 New Revision: 341585 URL: https://svnweb.freebsd.org/changeset/base/341585 Log: mlx5en: Improve configuration of HW LRO. In order to enable HW LRO, both the "hw_lro" sysctl in the mlx5en(4) config space must be set, and the ifconfig(8) LRO

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

2018-12-05 Thread Slava Shwartsman
Author: slavash Date: Wed Dec 5 14:25:03 2018 New Revision: 341586 URL: https://svnweb.freebsd.org/changeset/base/341586 Log: mlx5en: Implement backpressure indication. The backpressure indication is implemented using an unlimited rate type of mbuf send tag. When the upper layers

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

2018-12-05 Thread Slava Shwartsman
Author: slavash Date: Wed Dec 5 14:24:02 2018 New Revision: 341584 URL: https://svnweb.freebsd.org/changeset/base/341584 Log: mlx5en: Count all transmitted and received bytes. Add counter for all transmitted and received bytes. Currently only all transmitted and received packets were

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

2018-12-05 Thread Slava Shwartsman
Author: slavash Date: Wed Dec 5 14:23:31 2018 New Revision: 341583 URL: https://svnweb.freebsd.org/changeset/base/341583 Log: mlx5en: Statically allocate and free the channel structure(s). By allocating the worst case size channel structure array at attach time we can eliminate various

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

2018-12-05 Thread Slava Shwartsman
Author: slavash Date: Wed Dec 5 14:23:01 2018 New Revision: 341582 URL: https://svnweb.freebsd.org/changeset/base/341582 Log: mlx5en: Fix race in mlx5e_ethtool_debug_stats(). Writing to the debug stats variable must be locked, else serialization will be lost which might cause various

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

2018-12-05 Thread Slava Shwartsman
Author: slavash Date: Wed Dec 5 14:21:59 2018 New Revision: 341580 URL: https://svnweb.freebsd.org/changeset/base/341580 Log: mlx5en: Don't set rate on SQs when the SQ is already stopped. This can happen when connections are short lived and leads to a firmware error printout in dmesg,

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

2018-12-05 Thread Slava Shwartsman
Author: slavash Date: Wed Dec 5 14:22:30 2018 New Revision: 341581 URL: https://svnweb.freebsd.org/changeset/base/341581 Log: mlx5en: Add support for IFM_10G_LR and IFM_40G_ER4 media types. Inspect the ethernet compliance code to figure out actual cable type by reading the PDDR module

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

2018-12-05 Thread Slava Shwartsman
Author: slavash Date: Wed Dec 5 14:21:28 2018 New Revision: 341579 URL: https://svnweb.freebsd.org/changeset/base/341579 Log: mlx5en: Fix for inlining issues in transmit path 1) Don't exceed the drivers own hardcoded TX inline limit. The blueflame register size can be much greater

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

2018-12-05 Thread Slava Shwartsman
Author: slavash Date: Wed Dec 5 14:20:26 2018 New Revision: 341577 URL: https://svnweb.freebsd.org/changeset/base/341577 Log: mlx5en: Implement support for bandwidth limiting in by ratio, ETS. Add support for setting the bandwidth limit as a ratio rather than in bits per second. The

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

2018-12-05 Thread Slava Shwartsman
Author: slavash Date: Wed Dec 5 14:20:57 2018 New Revision: 341578 URL: https://svnweb.freebsd.org/changeset/base/341578 Log: mlx5en: Remove the DRBR and associated logic in the transmit path. The hardware queues are deep enough currently and using the DRBR and associated callbacks

svn commit: r341576 - in head/sys/dev/mlx5: . mlx5_fpga mlx5_fpga_tools

2018-12-05 Thread Slava Shwartsman
Author: slavash Date: Wed Dec 5 14:19:55 2018 New Revision: 341576 URL: https://svnweb.freebsd.org/changeset/base/341576 Log: mlx5fpga: Add set and query connect/disconnect FPGA Submitted by: kib@ Approved by:hselasky (mentor) MFC after: 1 week Sponsored by: Mellanox

svn commit: r341574 - in head/sys/dev/mlx5: . mlx5_fpga

2018-12-05 Thread Slava Shwartsman
Author: slavash Date: Wed Dec 5 14:18:52 2018 New Revision: 341574 URL: https://svnweb.freebsd.org/changeset/base/341574 Log: mlx5fpga: Support MorseQ board Added and supported new enum "morseQ = 4" for fpga_id field Submitted by: kib@ Approved by:hselasky (mentor) MFC

svn commit: r341575 - in head/sys/dev/mlx5: . mlx5_fpga mlx5_fpga_tools

2018-12-05 Thread Slava Shwartsman
Author: slavash Date: Wed Dec 5 14:19:23 2018 New Revision: 341575 URL: https://svnweb.freebsd.org/changeset/base/341575 Log: mlx5fpga: IOCTL for FPGA temperature measurement Submitted by: kib@ Approved by:hselasky (mentor) MFC after: 1 week Sponsored by: Mellanox

svn commit: r341573 - in head/sys: dev/mlx5 dev/mlx5/mlx5_fpga_tools modules/mlx5fpga_tools

2018-12-05 Thread Slava Shwartsman
Author: slavash Date: Wed Dec 5 14:17:22 2018 New Revision: 341573 URL: https://svnweb.freebsd.org/changeset/base/341573 Log: mlx5fpga_tools initial code import. Submitted by: kib@ Approved by:hselasky (mentor) MFC after: 1 week Sponsored by: Mellanox Technologies

svn commit: r341572 - in head/sys: dev/mlx5 dev/mlx5/mlx5_accel dev/mlx5/mlx5_core dev/mlx5/mlx5_fpga dev/mlx5/mlx5_lib modules/mlx5 modules/mlx5en modules/mlx5ib

2018-12-05 Thread Slava Shwartsman
Author: slavash Date: Wed Dec 5 14:11:20 2018 New Revision: 341572 URL: https://svnweb.freebsd.org/changeset/base/341572 Log: mlx5fpga: Initial code import. Submitted by: kib@ Approved by:hselasky (mentor) MFC after: 1 week Sponsored by: Mellanox Technologies Added:

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

2018-12-05 Thread Slava Shwartsman
Author: slavash Date: Wed Dec 5 13:49:11 2018 New Revision: 341571 URL: https://svnweb.freebsd.org/changeset/base/341571 Log: mlx5ib: Set default active width and speed when querying port. Make sure the active width and speed is set in case the translate_eth_proto_oper() function

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

2018-12-05 Thread Slava Shwartsman
Author: slavash Date: Wed Dec 5 13:48:39 2018 New Revision: 341570 URL: https://svnweb.freebsd.org/changeset/base/341570 Log: mlx5ib: Make sure the congestion work timer does not escape the drain procedure. If the mlx5_ib_read_cong_stats() function was running when mlx5ib was unloaded,

svn commit: r341567 - in head/sys: compat/linuxkpi/common/src dev/mlx5/mlx5_core dev/mlx5/mlx5_en dev/mlx5/mlx5_ib

2018-12-05 Thread Slava Shwartsman
Author: slavash Date: Wed Dec 5 13:47:10 2018 New Revision: 341567 URL: https://svnweb.freebsd.org/changeset/base/341567 Log: mlx5: Fix driver version location Driver description should be set by core and not by the Ethernet driver. Approved by:hselasky (mentor) MFC after:

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

2018-12-05 Thread Slava Shwartsman
Author: slavash Date: Wed Dec 5 13:48:10 2018 New Revision: 341569 URL: https://svnweb.freebsd.org/changeset/base/341569 Log: mlx5ib: Fix null pointer dereference in mlx5_ib_create_srq Although "create_srq_user" does overwrite "in.pas" on some paths, it also contains at least one

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

2018-12-05 Thread Slava Shwartsman
Author: slavash Date: Wed Dec 5 13:47:41 2018 New Revision: 341568 URL: https://svnweb.freebsd.org/changeset/base/341568 Log: mlx5ib: Fix sign extension in mlx5_ib_query_device "fw_rev_min(dev->mdev)" with type "unsigned short" (16 bits, unsigned) is promoted in "fw_rev_min(dev->mdev)

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

2018-12-05 Thread Slava Shwartsman
Author: slavash Date: Wed Dec 5 13:46:09 2018 New Revision: 341565 URL: https://svnweb.freebsd.org/changeset/base/341565 Log: mlx5: Fix wrong size allocation for QoS ETC TC register The driver allocates wrong size (due to wrong struct name) when issuing a query/set request to NIC's

svn commit: r341566 - in head/sys/dev/mlx5: . mlx5_core

2018-12-05 Thread Slava Shwartsman
Author: slavash Date: Wed Dec 5 13:46:39 2018 New Revision: 341566 URL: https://svnweb.freebsd.org/changeset/base/341566 Log: mlx5: Fixes to allow command polling mode to exist alongside event mode. A command is either polling or event driven and the mode cannot change during execution

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

2018-12-05 Thread Slava Shwartsman
Author: slavash Date: Wed Dec 5 13:45:37 2018 New Revision: 341564 URL: https://svnweb.freebsd.org/changeset/base/341564 Log: mlx5: Add software tx_jumbo_packets counter This counter will represent transmitted packets which has more than 1518 octets. The NIC has multiple hardware

svn commit: r341563 - in head/sys/dev/mlx5: . mlx5_core

2018-12-05 Thread Slava Shwartsman
Author: slavash Date: Wed Dec 5 13:45:08 2018 New Revision: 341563 URL: https://svnweb.freebsd.org/changeset/base/341563 Log: mlx5: Implement support for configuring PCIe packet write ordering via a sysctl. Submitted by: hselasky@ Approved by:hselasky (mentor) MFC after: 1

svn commit: r341562 - in head/sys/dev/mlx5: . mlx5_core

2018-12-05 Thread Slava Shwartsman
Author: slavash Date: Wed Dec 5 13:44:38 2018 New Revision: 341562 URL: https://svnweb.freebsd.org/changeset/base/341562 Log: mlx5: Extend vector argument to u64. Else the MLX5_TRIGGERED_CMD_COMP flag will be masked away. Submitted by: hselasky@ Approved by:hselasky (mentor)

svn commit: r341560 - in head/sys/dev/mlx5: . mlx5_core

2018-12-05 Thread Slava Shwartsman
Author: slavash Date: Wed Dec 5 13:43:37 2018 New Revision: 341560 URL: https://svnweb.freebsd.org/changeset/base/341560 Log: mlx5: Fix use-after-free in self-healing flow When the mlx5 health mechanism detects a problem while the driver is in the middle of init_one or remove_one, the

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

2018-12-05 Thread Slava Shwartsman
Author: slavash Date: Wed Dec 5 13:44:08 2018 New Revision: 341561 URL: https://svnweb.freebsd.org/changeset/base/341561 Log: mlx5: Add global control to disable firmware reset, for all mlx5 devices. Submitted by: kib@ Approved by:hselasky (mentor) MFC after: 1 week

svn commit: r341559 - in head/sys/dev/mlx5: mlx5_core mlx5_en

2018-12-05 Thread Slava Shwartsman
Author: slavash Date: Wed Dec 5 13:43:07 2018 New Revision: 341559 URL: https://svnweb.freebsd.org/changeset/base/341559 Log: mlx5: Move hw.mlx5 node definition to mlx5_core. Submitted by: kib@ Approved by:hselasky (mentor) MFC after: 1 week Sponsored by: Mellanox

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

2018-12-05 Thread Slava Shwartsman
Author: slavash Date: Wed Dec 5 13:41:37 2018 New Revision: 341556 URL: https://svnweb.freebsd.org/changeset/base/341556 Log: mlx5: Fix for potential memory leaks. Make sure allocated data gets freed in error cases. Submitted by: hselasky@ Approved by:hselasky (mentor) MFC

svn commit: r341557 - in head/sys/dev/mlx5: . mlx5_ib

2018-12-05 Thread Slava Shwartsman
Author: slavash Date: Wed Dec 5 13:42:06 2018 New Revision: 341557 URL: https://svnweb.freebsd.org/changeset/base/341557 Log: mlx5: Add SRQ fixes from Linux Combine multiple fixes from Linux to SRQ. Linux commits: c73b791 IB/mlx5: Assign SRQ type earlier 0fd27a8 IB/mlx5: Fix

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

2018-12-05 Thread Slava Shwartsman
Author: slavash Date: Wed Dec 5 13:42:36 2018 New Revision: 341558 URL: https://svnweb.freebsd.org/changeset/base/341558 Log: mlx5: Convert some spaces into tabs and use device_printf() instead of printf(). Submitted by: hselasky@ Approved by:hselasky (mentor) MFC after: 1

svn commit: r341555 - in head/sys/dev/mlx5: mlx5_core mlx5_en

2018-12-05 Thread Slava Shwartsman
Author: slavash Date: Wed Dec 5 13:41:06 2018 New Revision: 341555 URL: https://svnweb.freebsd.org/changeset/base/341555 Log: mlx5: Discard unused return values. Submitted by: hselasky@ Approved by:hselasky (mentor) MFC after: 1 week Sponsored by: Mellanox Technologies

svn commit: r341554 - in head/sys/dev/mlx5: mlx5_core mlx5_ib

2018-12-05 Thread Slava Shwartsman
Author: slavash Date: Wed Dec 5 13:40:36 2018 New Revision: 341554 URL: https://svnweb.freebsd.org/changeset/base/341554 Log: mlx5: Raise fatal IB event when sys error occurs All other mlx5_events report the port number as 1 based, which is how FW reports it in the port event EQE.

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

2018-12-05 Thread Slava Shwartsman
Author: slavash Date: Wed Dec 5 13:40:05 2018 New Revision: 341553 URL: https://svnweb.freebsd.org/changeset/base/341553 Log: mlx5: Fix integer overflow while resizing CQ The user can provide very large cqe_size which will cause to integer overflow. Linux commit:

svn commit: r341552 - head/sys/dev/mlx4/mlx4_en

2018-12-05 Thread Slava Shwartsman
Author: slavash Date: Wed Dec 5 13:39:35 2018 New Revision: 341552 URL: https://svnweb.freebsd.org/changeset/base/341552 Log: mlx4en: Optimise reception of small packets. Copy small packets like TCP ACKs into a new mbuf reusing the existing mbuf to receive a new ethernet frame. This

svn commit: r341551 - head/sys/dev/mlx4/mlx4_core

2018-12-05 Thread Slava Shwartsman
Author: slavash Date: Wed Dec 5 13:39:05 2018 New Revision: 341551 URL: https://svnweb.freebsd.org/changeset/base/341551 Log: mlx4: Make sure default VNET is set when adding a new interface. Adding an interface might be done outside the device_attach() routine and will then cause a

svn commit: r341550 - head/sys/dev/mlx4/mlx4_en

2018-12-05 Thread Slava Shwartsman
Author: slavash Date: Wed Dec 5 13:38:35 2018 New Revision: 341550 URL: https://svnweb.freebsd.org/changeset/base/341550 Log: mlx4en: Remove duplicate statistics variable assignment. The "priv->pkstats.rx_dropped" is written twice in a row. Submitted by: hselasky@ Approved by:

svn commit: r341548 - in head/sys/dev/mlx4: . mlx4_core mlx4_en

2018-12-05 Thread Slava Shwartsman
Author: slavash Date: Wed Dec 5 13:32:15 2018 New Revision: 341548 URL: https://svnweb.freebsd.org/changeset/base/341548 Log: mlx4en: Add support for netdump. Implement the needed callback functions and support for polling the driver. Differential Revision:

svn commit: r341543 - head/sys/dev/mlx4/mlx4_core

2018-12-05 Thread Slava Shwartsman
Author: slavash Date: Wed Dec 5 13:29:46 2018 New Revision: 341543 URL: https://svnweb.freebsd.org/changeset/base/341543 Log: mlx4: Zero initialize device capabilities to avoid use of uninitialized fields. Submitted by: hselasky@ Approved by:hselasky (mentor) MFC after: 1

svn commit: r341542 - head/sys/dev/mlx4/mlx4_core

2018-12-05 Thread Slava Shwartsman
Author: slavash Date: Wed Dec 5 13:29:16 2018 New Revision: 341542 URL: https://svnweb.freebsd.org/changeset/base/341542 Log: mlx4core: Avoid multiplication overflow by casting multiplication. Submitted by: hselasky@ Approved by:hselasky (mentor) MFC after: 1 week

svn commit: r341549 - head/sys/dev/mlx4/mlx4_en

2018-12-05 Thread Slava Shwartsman
Author: slavash Date: Wed Dec 5 13:32:46 2018 New Revision: 341549 URL: https://svnweb.freebsd.org/changeset/base/341549 Log: mlx4en: Add support for receiving all data using one or more MCLBYTES sized mbufs. Also when the MTU is greater than MCLBYTES. Submitted by: hselasky@

svn commit: r341536 - head/sys/ofed/drivers/infiniband/ulp/ipoib

2018-12-05 Thread Slava Shwartsman
Author: slavash Date: Wed Dec 5 13:26:17 2018 New Revision: 341536 URL: https://svnweb.freebsd.org/changeset/base/341536 Log: ipoib: Don't do a light flush when MTU is unchanged. When changing the MTU of ibX network interfaces, check that the MTU was really changed before requesting an

svn commit: r341546 - head/sys/dev/mlx4/mlx4_core

2018-12-05 Thread Slava Shwartsman
Author: slavash Date: Wed Dec 5 13:31:14 2018 New Revision: 341546 URL: https://svnweb.freebsd.org/changeset/base/341546 Log: mlx4en: Add driver version to sysctl desc Approved by:hselasky (mentor) MFC after: 1 week Sponsored by: Mellanox Technologies Modified:

svn commit: r341545 - in head/sys/dev/mlx4: . mlx4_core

2018-12-05 Thread Slava Shwartsman
Author: slavash Date: Wed Dec 5 13:30:48 2018 New Revision: 341545 URL: https://svnweb.freebsd.org/changeset/base/341545 Log: mlx4: Add board identifier and firmware version to sysctl In last mlx4 update (r325841) we lost the sysctl to show the firmware version for mlx4 devices. Add

svn commit: r341547 - head/sys/dev/mlx4/mlx4_en

2018-12-05 Thread Slava Shwartsman
Author: slavash Date: Wed Dec 5 13:31:45 2018 New Revision: 341547 URL: https://svnweb.freebsd.org/changeset/base/341547 Log: mlx4en: Remove the DRBR and associated logic in the transmit path. The hardware queues are deep enough currently and using the DRBR and associated callbacks

svn commit: r341544 - head/sys/dev/mlx4/mlx4_core

2018-12-05 Thread Slava Shwartsman
Author: slavash Date: Wed Dec 5 13:30:16 2018 New Revision: 341544 URL: https://svnweb.freebsd.org/changeset/base/341544 Log: mlx4core: Add checks for invalid port numbers. Submitted by: hselasky@ Approved by:hselasky (mentor) MFC after: 1 week Sponsored by: Mellanox

svn commit: r341540 - head/contrib/ofed/libibverbs

2018-12-05 Thread Slava Shwartsman
Author: slavash Date: Wed Dec 5 13:28:17 2018 New Revision: 341540 URL: https://svnweb.freebsd.org/changeset/base/341540 Log: libibverbs: Fix memory leak in ibv_read_sysfs_file(). Testing packetdrill using valgrind resulted in finding a memory leak in ibv_read_sysfs_file(). The attached

svn commit: r341541 - head/contrib/ofed/opensm/opensm

2018-12-05 Thread Slava Shwartsman
Author: slavash Date: Wed Dec 5 13:28:46 2018 New Revision: 341541 URL: https://svnweb.freebsd.org/changeset/base/341541 Log: opensm: Use precision specifier for scanf If user input a string larger than the length of buffer, the stack memory will be corrupted. Approved by:

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

2018-12-05 Thread Slava Shwartsman
Author: slavash Date: Wed Dec 5 13:23:44 2018 New Revision: 341531 URL: https://svnweb.freebsd.org/changeset/base/341531 Log: ibcore: Add missing unref of netdevice. Submitted by: hselasky@ Approved by:hselasky (mentor) MFC after: 1 week Sponsored by: Mellanox

svn commit: r341539 - head/sys/contrib/rdma/krping

2018-12-05 Thread Slava Shwartsman
Author: slavash Date: Wed Dec 5 13:27:48 2018 New Revision: 341539 URL: https://svnweb.freebsd.org/changeset/base/341539 Log: krping: Fix for memory leak in error case. Submitted by: hselasky@ Approved by:hselasky (mentor) MFC after: 1 week Sponsored by: Mellanox

svn commit: r341538 - head/sys/ofed/drivers/infiniband/ulp/ipoib

2018-12-05 Thread Slava Shwartsman
Author: slavash Date: Wed Dec 5 13:27:17 2018 New Revision: 341538 URL: https://svnweb.freebsd.org/changeset/base/341538 Log: ipoib: Notify on modify QP failure only when relevant Modify QP can fail and it can be acceptable, like when moving from RST to ERR state, all the rest are not

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

2018-12-05 Thread Slava Shwartsman
Author: slavash Date: Wed Dec 5 13:23:14 2018 New Revision: 341530 URL: https://svnweb.freebsd.org/changeset/base/341530 Log: ibcore: Fix loopback with rdma-cm. Trying to validate loopback fails because rtalloc1() resolves system local addresses to the loopback network interface, lo0.

svn commit: r341537 - head/sys/ofed/drivers/infiniband/ulp/ipoib

2018-12-05 Thread Slava Shwartsman
Author: slavash Date: Wed Dec 5 13:26:47 2018 New Revision: 341537 URL: https://svnweb.freebsd.org/changeset/base/341537 Log: ipoib: increase the non-cm queue length When a packet needs fragmentation, it might generate more than 3 fragments. With the queue length 3, all fragments are

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

2018-12-05 Thread Slava Shwartsman
Author: slavash Date: Wed Dec 5 13:22:43 2018 New Revision: 341529 URL: https://svnweb.freebsd.org/changeset/base/341529 Log: ibcore: Make sure all VNETs are scanned for VLAN interfaces. The master network interface and the VLANs may reside in different VNETs. Make sure that all VNETs

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

2018-12-05 Thread Slava Shwartsman
Author: slavash Date: Wed Dec 5 13:25:13 2018 New Revision: 341534 URL: https://svnweb.freebsd.org/changeset/base/341534 Log: ibcore: Fix clearing of bound device interface. Binding to a loopback device is not allowed. Make sure the destination device address is global by clearing the

svn commit: r341535 - head/sys/ofed/drivers/infiniband/ulp/ipoib

2018-12-05 Thread Slava Shwartsman
Author: slavash Date: Wed Dec 5 13:25:47 2018 New Revision: 341535 URL: https://svnweb.freebsd.org/changeset/base/341535 Log: ipoib: correct setting MTU from inside ipoib(4). It is not enough to set ifnet->if_mtu to change the interface MTU. System saves the MTU for route in the radix

svn commit: r341533 - in head/sys: compat/linuxkpi/common/include/linux ofed/drivers/infiniband/core

2018-12-05 Thread Slava Shwartsman
Author: slavash Date: Wed Dec 5 13:24:43 2018 New Revision: 341533 URL: https://svnweb.freebsd.org/changeset/base/341533 Log: ibcore: ip6_dev_find() needs to know the scope ID. Else the wrong network device can be returned for link-local addresses. Submitted by: hselasky@

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

2018-12-05 Thread Slava Shwartsman
Author: slavash Date: Wed Dec 5 13:24:12 2018 New Revision: 341532 URL: https://svnweb.freebsd.org/changeset/base/341532 Log: ibcore: Fix sleeping in atomic when RoCE is used A couple of places in the CM do spin_lock_irq(_id_priv->lock); ... if

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

2018-12-05 Thread Slava Shwartsman
Author: slavash Date: Wed Dec 5 13:22:07 2018 New Revision: 341528 URL: https://svnweb.freebsd.org/changeset/base/341528 Log: ibcore: Always check return value from ib_init_ah_from_wc(). This prevents code from accepting RoCEv1 connections when only ROCEv2 is enabled and vice versa.

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

2018-12-05 Thread Slava Shwartsman
Author: slavash Date: Wed Dec 5 13:20:51 2018 New Revision: 341526 URL: https://svnweb.freebsd.org/changeset/base/341526 Log: ibcore: Fix an array index check The array ib_mad_mgmt_class_table.method_table has MAX_MGMT_CLASS (80) elements. Hence compare the array index with that value

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

2018-12-05 Thread Slava Shwartsman
Author: slavash Date: Wed Dec 5 13:21:20 2018 New Revision: 341527 URL: https://svnweb.freebsd.org/changeset/base/341527 Log: ibcore: Add missing check for failure. Submitted by: hselasky@ Approved by:hselasky (mentor) MFC after: 1 week Sponsored by: Mellanox

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

2018-12-05 Thread Slava Shwartsman
Author: slavash Date: Wed Dec 5 13:20:22 2018 New Revision: 341525 URL: https://svnweb.freebsd.org/changeset/base/341525 Log: ibcore: Check ib_find_pkey() return value. Linux commit: d3a2418ee36a59bc02e9d454723f3175dcf4bfd9 Submitted by: hselasky@ Approved by:hselasky

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

2018-12-05 Thread Slava Shwartsman
Author: slavash Date: Wed Dec 5 13:19:21 2018 New Revision: 341523 URL: https://svnweb.freebsd.org/changeset/base/341523 Log: ibcore: Don't access invalid port. The port number in the listen_id_priv has been observed to be zero which means no port has been selected. The current code

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

2018-12-05 Thread Slava Shwartsman
Author: slavash Date: Wed Dec 5 13:19:52 2018 New Revision: 341524 URL: https://svnweb.freebsd.org/changeset/base/341524 Log: ibcore: Add support for IB_SPEED_HDR in sysfs rate printout. Submitted by: hselasky@ Approved by:hselasky (mentor) MFC after: 1 week Sponsored by:

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

2018-12-05 Thread Slava Shwartsman
Author: slavash Date: Wed Dec 5 13:18:50 2018 New Revision: 341522 URL: https://svnweb.freebsd.org/changeset/base/341522 Log: ibcore: Discard unused error codes. Submitted by: hselasky@ Approved by:hselasky (mentor) MFC after: 1 week Sponsored by: Mellanox Technologies

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

2018-12-05 Thread Slava Shwartsman
Author: slavash Date: Wed Dec 5 13:18:20 2018 New Revision: 341521 URL: https://svnweb.freebsd.org/changeset/base/341521 Log: ibcore: Make sure GID index variable gets initialized. Submitted by: hselasky@ Approved by:hselasky (mentor) MFC after: 1 week Sponsored by:

svn commit: r341520 - head/sys/compat/linuxkpi/common/include/linux

2018-12-05 Thread Slava Shwartsman
Author: slavash Date: Wed Dec 5 13:17:45 2018 New Revision: 341520 URL: https://svnweb.freebsd.org/changeset/base/341520 Log: linuxkpi: Really check if PCI is offline Currently we always return false if for PCI offline query. Try to read PCI config, if the return value if 0x

svn commit: r341519 - head/sys/compat/linuxkpi/common/include/linux

2018-12-05 Thread Slava Shwartsman
Author: slavash Date: Wed Dec 5 13:17:15 2018 New Revision: 341519 URL: https://svnweb.freebsd.org/changeset/base/341519 Log: linuxkpi: properly implement netif_carrier_ok(). Submitted by: kib@ Approved by:hselasky (mentor) MFC after: 1 week Sponsored by: Mellanox

svn commit: r341518 - in head/sys/compat/linuxkpi/common: include/linux src

2018-12-05 Thread Slava Shwartsman
Author: slavash Date: Wed Dec 5 13:16:39 2018 New Revision: 341518 URL: https://svnweb.freebsd.org/changeset/base/341518 Log: linuxkpi: Fix for use-after-free when tearing down character devices. Make sure we hold a reference on the character device for every opened file to prevent the

  1   2   >