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

2019-09-03 Thread Slava Shwartsman
On 16-Apr-19 17:39, Andrey V. Elsukov wrote: On 05.12.2018 17:25, Slava Shwartsman wrote: 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

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

2019-06-04 Thread Slava Shwartsman
Author: slavash Date: Tue Jun 4 06:21:31 2019 New Revision: 348601 URL: https://svnweb.freebsd.org/changeset/base/348601 Log: Fix prio vs. nonprio tagged traffic in RDMACM In current RDMACM implementation RDMACM server will not find a GID index when the request was prio-tagged and the

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

2019-05-01 Thread Slava Shwartsman
On 01-May-19 19:45, John Baldwin wrote: On 5/1/19 1:05 AM, Slava Shwartsman wrote: On 01-May-19 10:28, Slava Shwartsman wrote: On 01-May-19 10:09, Slava Shwartsman wrote: On 30-Apr-19 00:14, John Baldwin wrote: On 4/25/19 12:10 AM, Slava Shwartsman wrote: On 17-Apr-19 00:28, John

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

2019-05-01 Thread Slava Shwartsman
On 01-May-19 10:28, Slava Shwartsman wrote: On 01-May-19 10:09, Slava Shwartsman wrote: On 30-Apr-19 00:14, John Baldwin wrote: On 4/25/19 12:10 AM, Slava Shwartsman wrote: On 17-Apr-19 00:28, John Baldwin wrote: On 4/16/19 8:32 AM, Hans Petter Selasky wrote: On 4/16/19 4:39 PM

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

2019-05-01 Thread Slava Shwartsman
On 30-Apr-19 00:14, John Baldwin wrote: On 4/25/19 12:10 AM, Slava Shwartsman wrote: On 17-Apr-19 00:28, John Baldwin wrote: On 4/16/19 8:32 AM, Hans Petter Selasky wrote: On 4/16/19 4:39 PM, Andrey V. Elsukov wrote: On 05.12.2018 17:25, Slava Shwartsman wrote: Author: slavash Date

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

2019-05-01 Thread Slava Shwartsman
On 01-May-19 10:09, Slava Shwartsman wrote: On 30-Apr-19 00:14, John Baldwin wrote: On 4/25/19 12:10 AM, Slava Shwartsman wrote: On 17-Apr-19 00:28, John Baldwin wrote: On 4/16/19 8:32 AM, Hans Petter Selasky wrote: On 4/16/19 4:39 PM, Andrey V. Elsukov wrote: On 05.12.2018 17:25

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

2019-04-25 Thread Slava Shwartsman
On 17-Apr-19 00:28, John Baldwin wrote: On 4/16/19 8:32 AM, Hans Petter Selasky wrote: On 4/16/19 4:39 PM, Andrey V. Elsukov wrote: On 05.12.2018 17:25, Slava Shwartsman wrote: Author: slavash Date: Wed Dec 5 14:25:03 2018 New Revision: 341586 URL: https://svnweb.freebsd.org/changeset

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

2019-04-16 Thread Slava Shwartsman
On 16-Apr-19 17:39, Andrey V. Elsukov wrote: On 05.12.2018 17:25, Slava Shwartsman wrote: 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

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

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

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

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

2018-10-22 Thread Slava Shwartsman
Author: slavash Date: Mon Oct 22 10:38:38 2018 New Revision: 339584 URL: https://svnweb.freebsd.org/changeset/base/339584 Log: mlx5: Notify user that the ConnectX-6 shutdown its port due to power limitation If power exceed the slot limit, or slot limit is unknown the ConnectX-6 firmware

svn commit: r338942 - head/sys/dev/pci

2018-09-26 Thread Slava Shwartsman
Author: slavash Date: Wed Sep 26 13:16:55 2018 New Revision: 338942 URL: https://svnweb.freebsd.org/changeset/base/338942 Log: Add PCIV_INVALID definition From PCI Spec rev 2.2, 6.2.1. Device Identification: Vendor ID This field identifies the manufacturer of the device. Valid vendor

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

2018-09-06 Thread Slava Shwartsman
Author: slavash Date: Thu Sep 6 12:26:57 2018 New Revision: 338491 URL: https://svnweb.freebsd.org/changeset/base/338491 Log: ibcore: Fix endless loop in searching for matching VLAN device In r337943 ifnet's if_pcp was set to the PCP value in use instead of IFNET_PCP_NONE. Current

svn commit: r335282 - head/contrib/ofed/librdmacm/examples

2018-06-17 Thread Slava Shwartsman
Author: slavash Date: Sun Jun 17 07:08:47 2018 New Revision: 335282 URL: https://svnweb.freebsd.org/changeset/base/335282 Log: Fix false positive on failure When running mckey, errors may happen in the init/connect stage. When leaving multicast groups, we override this value. Fix

svn commit: r334318 - head/contrib/tcpdump

2018-05-29 Thread Slava Shwartsman
Author: slavash Date: Tue May 29 10:29:04 2018 New Revision: 334318 URL: https://svnweb.freebsd.org/changeset/base/334318 Log: MFV r333668: Vendor import two upstream commits: c1bb8784abd3ca978e376b0d10e324db0491237b 9c4af7213cc2543a1f5586d8f2c19f86aa0cbe72 When using tcpdump -I

svn commit: r333115 - head/contrib/ofed/libibumad

2018-04-30 Thread Slava Shwartsman
Author: slavash Date: Mon Apr 30 15:23:45 2018 New Revision: 333115 URL: https://svnweb.freebsd.org/changeset/base/333115 Log: libibumad/umad.c: In get_port, ignore sysctl get rate errors This can cause ibpanic in ibstat when width is not set properly as can occur when Ethernet port is

svn commit: r330652 - head/share/misc

2018-03-08 Thread Slava Shwartsman
urd [label="Stephen Hurd\nsh...@freebsd.org\n2017/09 simon [label="Simon L. Nielsen\nsi...@freebsd.org\n2006/03/07"] sjg [label="Simon J. Gerraty\n...@freebsd.org\n2012/10/23"] skra [label="Svatopluk Kraus\ns...@freebsd.org\n2015/10/28"] +slavash [label="Sla