aboutsummaryrefslogtreecommitdiff
path: root/contrib/ofed
Commit message (Collapse)AuthorAgeFilesLines
* irdma(4): Upgrade to 1.2.36-kBartosz Sobczak2024-02-2110-335/+96
| | | | | | | | | | | | | | | | | | | Update Intel irdma driver to version 1.2.36-k. Notable changes: - Start using ib_sge directly instead of irdma_sge - Turn off flush completion generator for libirdma - Minor formatting changes Signed-off-by: Bartosz Sobczak <bartosz.sobczak@intel.com> Signed-off-by: Eric Joyner <erj@FreeBSD.org> Reviewed by: erj@ Sponsored by: Intel Corporation Differential Revision: https://reviews.freebsd.org/D43567 (cherry picked from commit 5b5f7d0e77a9eee73eb5d596f43aef4e1a3674d8)
* ofed: use ANSI C functions definitions in opensm/sm.cKonstantin Belousov2024-01-021-50/+21
| | | | (cherry picked from commit bf7830d79dd02a84225c93130c2dce68e0a541d6)
* irdma(4): remove artificial completion generatorBartosz Sobczak2023-09-222-168/+1
| | | | | | | | | | | | | | | | Removing artificial completion generator as there had been no indication of the code being required for E810 cards. Further more it was found that the code may have unpleasant side effects on user experience when using ucmatose tool. Signed-off-by: Bartosz Sobczak <bartosz.sobczak@intel.com> Signed-off-by: Eric Joyner <erj@FreeBSD.org> Reviewed by: erj@ Sponsored by: Intel Corporation Differential Revision: https://reviews.freebsd.org/D41593 (cherry picked from commit ffafa6a4d157e49e6b12567958c4ab0c9151c080)
* irdma(4): upgrade to 1.2.17-kBartosz Sobczak2023-09-2214-150/+94
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Update Intel irdma driver to version 1.2.17-k Notable changes: - pf-reset handling improvements, including fixes in communication with if_ice(4) - avoid racing when handling various events - adding sw stats sysctls - hand over pe_criterr handling from ice(4) to irdma(4) - debug prints adjustments - fix crash after changes in irdma_add_mqh_ifa_cb Additional fixes in stable/13 but not in original cherry-picked commit: - code appearance improvements - bug fixes in fbsd_kcompat.c - avoid waiting procedures under lock in irdma_add_mqh_ifa_cb - busy wait for manage_qhash - stats don't need to be RDTUN, RD is enough Signed-off-by: Bartosz Sobczak <bartosz.sobczak@intel.com> Signed-off-by: Eric Joyner <erj@FreeBSD.org> Reviewed by: erj@ Sponsored by: Intel Corporation Differential Revision: https://reviews.freebsd.org/D41425 (cherry picked from commit 01fbb86991d524288a785b544c29d9c5ea1b61fb)
* irdma(4): Upgrade the driver to 1.1.11-kBartosz Sobczak2023-09-2210-29/+41
| | | | | | | | | | | | | | | | | | | | | | | | Summary of changes: - postpone mtu size assignment during load to avoid race condition - refactor some of the debug prints - add request reset handler - refactor flush scheduler to increase efficiency and avoid racing - put correct vlan_tag for UD traffic with PFC - suspend QP before going to ERROR state to avoid CQP timout - fix arithmetic error on irdma_debug_bugf - allow debug flag to be settable during driver load - introduce meaningful default values for DCQCN algorithm - interrupt naming convention improvements - skip unsignaled completions in poll_cmpl Signed-off-by: Bartosz Sobczak bartosz.sobczak@intel.com Signed-off-by: Eric Joyner <erj@FreeBSD.org> Reviewed by: hselasky@ Sponsored by: Intel Corporation Differential Revision: https://reviews.freebsd.org/D39173 (cherry picked from commit 35105900c65bb5adcde05d37ae34ad006970d4f9)
* opensm libopensm: remove non-existent symbols from the version mapKonstantin Belousov2023-08-101-2/+0
| | | | (cherry picked from commit 21d6c29f344d587a99314f9cd960cc008cb3dec4)
* opensm libvendor: remove non-existent symbols from the version mapKonstantin Belousov2023-08-101-2/+0
| | | | (cherry picked from commit 6fdf714d5d18f5d6d3f2ae3889a788a3ebead5cc)
* opensm libosmcomp: remove non-existent symbols from the version mapKonstantin Belousov2023-08-101-3/+0
| | | | (cherry picked from commit 67c5de2dcacc7642f4648f9ec25eb10dd7387de1)
* librmdacm: rdma_get_local_addr and rdma_get_peer_addr are not exportedKonstantin Belousov2023-08-101-2/+0
| | | | (cherry picked from commit e5cf232b3f2484601b2a30f71dcbe9861e22370e)
* librdmacm: remove rsocket symbols from the map fileKonstantin Belousov2023-08-101-27/+0
| | | | (cherry picked from commit 9a7eba89f972e0dac0f53d0d442328248eb949ec)
* libibverbs: remove nonexistent symbols from the linker mapKonstantin Belousov2023-08-101-3/+0
| | | | (cherry picked from commit dd0f2d02c683c6ee885dda8ed323a1586c409967)
* irdma(4): remove 14-current specific codeBartosz Sobczak2023-02-081-2/+0
| | | | | | | This is a direct commit to the stable/13 branch. Signed-off-by: Bartosz Sobczak <bartosz.sobczak@intel.com> Signed-off-by: Eric Joyner <erj@FreeBSD.org>
* irdma(4): Add code for compilation on stable/13 branchBartosz Sobczak2023-02-081-0/+3
| | | | | | | | | | | | | | | | | | | | Current content of the irdma(4) driver consists only of code that is compilable on current 14-CURRENT branch which makes it impossible to merge into stable/13 branch because of missing dependencies in the ofed tree. This patch adds missing code that allows for merging into stable branch. Once it is there, code relating only to version 14 or higher should be removed. Signed-off-by: Eric Joyner <erj@FreeBSD.org> Reviewed by: erj@ MFC after: 1 day Sponsored by: Intel Corporation Differential Revision: https://reviews.freebsd.org/D38170 (cherry picked from commit a527c18cd7ba5d4afacbfb85817ca7b8b2487b52)
* irdma(4): Upgrade driver to 1.1.5-kBartosz Sobczak2023-02-0812-753/+1039
| | | | | | | | | | | | | | | | | | | | | | | | | | | This is to upgrade current irdma driver version (in support of RDMA on Intel(R) Ethernet Controller E810) to 1.1.5-k change summary: - refactor defines for hardware registers - rereg_mr verb added in libirdma - fix print warning during compilation - rt_ros2priority macro fix - irdma.4 validated with mandoc - fixing nd6_resolve usage - added libirdma_query_device - sysctl for irdma version - aeq_alloc_db fix - dwork_flush protected with qp refcount - PFC fixes Signed-off-by: Eric Joyner <erj@FreeBSD.org> Reviewed by: erj@ Relnotes: yes Sponsored by: Intel Corporation Differential Revision: https://reviews.freebsd.org/D36944 (cherry picked from commit 777e472cd86b9394d07bf96c19dbafc2e1ff4fdc)
* irdma: Add RDMA driver for Intel(R) Ethernet Controller E810Bartosz Sobczak2023-02-0814-0/+6516
| | | | | | | | | | | | | | | | | | | | This is an initial commit for RDMA FreeBSD driver for Intel(R) Ethernet Controller E810, called irdma. Supporting both RoCEv2 and iWARP protocols in per-PF manner, RoCEv2 being the default. Testing has been done using krping tool, perftest, ucmatose, rping, ud_pingpong, rc_pingpong and others. Signed-off-by: Eric Joyner <erj@FreeBSD.org> Reviewed by: #manpages (pauamma_gundo.com) [documentation] Relnotes: yes Sponsored by: Intel Corporation Differential Revision: https://reviews.freebsd.org/D34690 (cherry picked from commit cdcd52d41e246ba1c0fcfad0769bd691487355ef) (cherry picked from commit e602a30bb9fc7ee041a0e629d0fd2db7933ffa32) (cherry picked from commit a6e275af46644af1de365a1edf19742bfa28bb69)
* ofed: allow using IPv6 address in rc_pingpong serverPiotr Kubaj2022-11-025-5/+5
| | | | | | | | | | | | | | | | Summary: The current OFED code allows binding server to IPv6 address. It was added back in https://github.com/linux-rdma/rdma-core/commit/91fc39561d04903cd5b1665d9215a184baa66ba9 Sponsored by: Intel Corporation MFC after: 3 days Reviewers: hselasky Subscribers: imp Differential Revision: https://reviews.freebsd.org/D37196 (cherry picked from commit 35c87c070a2d04f06c56578b0a4b2e9c13f62be5)
* Make CPU_SET macros compliant with other implementationsStefan Eßer2022-01-141-2/+1
| | | | (cherry picked from commit e2650af157bc7489deaf2c9054995f0f88a6e5da)
* ibstat: Include prototype for sysctlbyname().Hans Petter Selasky2021-07-101-0/+1
| | | | | | | | | | | | Fixes the following compile warning: implicit declaration of function 'sysctlbyname' is invalid in C99 [-Wimplicit-function-declaration] Found by: J87 Differential Revision: https://reviews.freebsd.org/D30484 Sponsored by: Mellanox Technologies // NVIDIA Networking (cherry picked from commit 16fa3dcba027d13dcda9ee78e6057e3e5a79f80c)
* infiniband-diags: Fix memory leak in dump_multicast_tablesEric van Gyzen2020-08-311-0/+1
| | | | | | | | | | | | | | Coverity detected leak. Submitted by: bret_ketchum@dell.com Reported by: Coverity Reviewed by: hselasky, kib MFC after: 2 weeks Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D26228 Notes: svn path=/head/; revision=364998
* opensm: Fix a possible dereference of a NULL pointerEric van Gyzen2020-08-311-0/+16
| | | | | | | | | | | Reported by: Coverity Reviewed by: hselasky, kib MFC after: 2 weeks Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D26233 Notes: svn path=/head/; revision=364991
* Fix style in r363220Eric van Gyzen2020-07-155-5/+5
| | | | | | | | | | | | | Apply the style change Kostik suggested in the review. Reported by: kib MFC after: 2 weeks X-MFC with: r363220 Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D25676 Notes: svn path=/head/; revision=363221
* Fix Coverity issues in OFEDEric van Gyzen2020-07-1518-23/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | read_ibdiag_config NULL deref read_ibdiag_config mem leak ib_mad_inv_field_str Missing comma in a string array initialization print_node_header NULL deref diff_node_ports copy-paste error ibportstate.c main() missing break in switch set_thresholds NULL ptr deref dump_unicast_tables leaks mapnd umad_cm_attr_str dead code __ibv_close_device close(-1) check return value of listen() mlx5 bitmap.h - bad bit shift - UB get_dst_addr check return value of inet_pton osm_perfmgr_init check return value of cl_spinlock_init osm_port_new memory leak on error path sa_mad_ctrl_rcv_callback missing break in switch case I did not include CID numbers because these were found by an internal run at Isilon. Reviewed by: cem kib MFC after: 2 weeks Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D25676 Notes: svn path=/head/; revision=363220
* Add ConnectX-6 DX HCA ID to libmlx5.Hans Petter Selasky2019-05-081-0/+2
| | | | | | | | | | | | In addition, add "ConnectX family mlx5Gen Virtual Function" device ID. Every new HCA VF will be identified with this device ID. Submitted by: slavash@ MFC after: 3 days Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=347311
* Add support for 200Gbit speeds to libibverbs.Hans Petter Selasky2019-05-083-1/+23
| | | | | | | | | Submitted by: slavash@ MFC after: 3 days Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=347302
* libcxgb4: Don't spam stderr. Write combining is not enabled by defaultNavdeep Parhar2019-02-271-2/+0
| | | | | | | by the FreeBSD driver. Notes: svn path=/head/; revision=344617
* opensm: Use precision specifier for scanfSlava Shwartsman2018-12-051-1/+1
| | | | | | | | | | | | If user input a string larger than the length of buffer, the stack memory will be corrupted. Approved by: hselasky (mentor) MFC after: 1 week Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=341541
* libibverbs: Fix memory leak in ibv_read_sysfs_file().Slava Shwartsman2018-12-051-5/+6
| | | | | | | | | | | | | Testing packetdrill using valgrind resulted in finding a memory leak in ibv_read_sysfs_file(). The attached patch fixes it. Submitted by: tuexen@ Approved by: hselasky (mentor) MFC after: 1 week Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=341540
* rping(1): Make sure the socket address defaults to something reasonableNavdeep Parhar2018-10-291-1/+5
| | | | | | | | | | | | | when running as the server. Submitted by: Krishnamraju Eraparaju @ Chelsio Reviewed by: hselasky@, np@ MFC after: 1 month Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D17707 Notes: svn path=/head/; revision=339886
* Remove __DATE__ and __TIME__ from ibdiag_common.c, replacing withGlen Barber2018-09-131-2/+1
| | | | | | | | | | | the hard-coded string "not available" to ensure reproducible builds. Discussed with: emaste Approved by: re (rgrimes) Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=338653
* Add udma_barrier definitions for RISC-VLi-Wen Hsu2018-07-221-0/+8
| | | | | | | | Reviewed by: kib Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=336620
* Use unspecified address family when connecting as a client inHans Petter Selasky2018-07-185-5/+5
| | | | | | | | | | | | | libibverbs example utilities. This allows connecting to both IPv4 and IPv6 and reverts some FreeBSD only patches. MFC after: 1 week Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=336453
* Add ability to parse sysfs paths under FreeBSD in libibumad.Hans Petter Selasky2018-07-183-15/+43
| | | | | | | | | | | Add the ability to to parse sysfs paths to sysctl nodes by replacing '/' with '.' Submitted by: slavash@ MFC after: 1 week Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=336452
* Fix false positive on failureSlava Shwartsman2018-06-171-3/+5
| | | | | | | | | | | | | | | When running mckey, errors may happen in the init/connect stage. When leaving multicast groups, we override this value. Fix that by saving the return value from rdma_leave_multicast to different parameter, and only in case of failure in rdma_leave_multicast override it. MFC after: 1 week Approved by: hselasky (mentor), kib (mentor) Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=335282
* Rework ofed build.Konstantin Belousov2018-06-1659-1056/+0
| | | | | | | | | | | | | | Aligns the build with the FreeBSD traditional approach to not build in contrib/, and to track inter-dependencies between libraries. With help from: bdrewery Reviewed by: bdrewery, hselasky Sponsored by: Mellanox Technologies MFC after: 2 weeks Differential revision: https://reviews.freebsd.org/D15648 Notes: svn path=/head/; revision=335253
* MFV r333789: libpcap 1.9.0 (pre-release)Hans Petter Selasky2018-05-281-1/+2
| | | | | | | | MFC after: 1 month Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=334277
* libibumad/umad.c: In get_port, ignore sysctl get rate errorsSlava Shwartsman2018-04-301-2/+7
| | | | | | | | | | | | | | | | | This can cause ibpanic in ibstat when width is not set properly as can occur when Ethernet port is connected to InfiniBand fabric. ibpanic: [8167] main: stat of IB device 'mlx5_0' failed: m With this change, Rate is displayed as 0 with ibstat for this scenario. MFC after: 3 days Approved by: hselasky (mentor), kib (mentor) Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=333115
* Remove the "load drivers" logic from libibverbs.Hans Petter Selasky2018-04-221-263/+0
| | | | | | | | | | | The "load drivers" logic in the libibverbs configuration file is relevant for Linux only. MFC after: 3 days Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=332869
* ofed: Define barriers for mips and arm.Konstantin Belousov2017-12-111-0/+16
| | | | | | | | | | | | | | | I used the strongest barriers available on the architectures, so if the future analysis show that it is excessive, the barriers could be relaxed. Still, it is unlikely that it is meaningful to run IB on 32bit ARM or current MIPS machines, so the change is to make WITH_OFED to pass tinderbox. Sponsored by: Mellanox Technologies Reviewed by: hselasky Differential revision: https://reviews.freebsd.org/D13329 Notes: svn path=/head/; revision=326765
* ofed: Remove duplicated symbols from the version file.Konstantin Belousov2017-12-111-4/+0
| | | | | | | | | | | | | ld.bfd accepts multiple listing of the same symbol in the version script. lld is stricter and errors out. Since arm64 and sometimes amd64 use lld, we should correct this cosmetic issue. Sponsored by: Mellanox Technologies Reviewed by: hselasky Differential revision: https://reviews.freebsd.org/D13329 Notes: svn path=/head/; revision=326764
* Correctly define the unordered_map namespace in ofed/libibnetdisc .Hans Petter Selasky2017-12-082-4/+9
| | | | | | | | | | | This should fix ofed/libibnetdisc compilation with C-compilers different from clang and GCC v4.2.1. Submitted by: kib Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=326716
* Correctly prefix the infiniband include directory for buildworld. This fixesHans Petter Selasky2017-12-056-6/+6
| | | | | | | | | | | the OFED buildworld target, WITH_OFED=YES, when the include files are not already installed locally, but only in the temporary object directory. Found by: kib Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=326563
* Simplify the build dependencies when building the OFED libraries.Hans Petter Selasky2017-11-247-42/+64
| | | | | | | | Suggested by: bdrewery@ Sponsored by: Mellanox Technologies Notes: svn path=/projects/bsd_rdma_4_9/; revision=326146
* There is no need to depend on libthr.Hans Petter Selasky2017-11-191-1/+1
| | | | | | | | Suggested by: bdrewery@ Sponsored by: Mellanox Technologies Notes: svn path=/projects/bsd_rdma_4_9/; revision=325998
* Fix compilation of libibnetdisc using in-base GCC v4.2.1.Hans Petter Selasky2017-11-171-1/+7
| | | | | | | Sponsored by: Mellanox Technologies Notes: svn path=/projects/bsd_rdma_4_9/; revision=325935
* Fix compilation for libsysdecode.Hans Petter Selasky2017-11-163-5/+11
| | | | | | | | | | | Don't install the ib_user_mad.h header file into user-space, because it conflicts with umad.h from libibumad.h when building libsysdecode. Sponsored by: Mellanox Technologies Notes: svn path=/projects/bsd_rdma_4_9/; revision=325896
* Remove conflicting uint definition.Hans Petter Selasky2017-11-161-2/+0
| | | | | | | | | Already defined by sys/types.h Sponsored by: Mellanox Technologies Notes: svn path=/projects/bsd_rdma_4_9/; revision=325895
* Fix OFED library dependencies.Hans Petter Selasky2017-11-137-7/+7
| | | | | | | Sponsored by: Mellanox Technologies Notes: svn path=/projects/bsd_rdma_4_9/; revision=325763
* Remove no longer needed TESTBUILD defines from OFED Makefiles.Hans Petter Selasky2017-11-1318-76/+0
| | | | | | | Sponsored by: Mellanox Technologies Notes: svn path=/projects/bsd_rdma_4_9/; revision=325762
* Update the iw_cxgbe bits in the projects branch.Navdeep Parhar2017-11-075-30/+91
| | | | | | | | Submitted by: Krishnamraju Eraparaju @ Chelsio Sponsored by: Chelsio Communications Notes: svn path=/projects/bsd_rdma_4_9/; revision=325522
* OFED user-space import and update for use with Linux-4.9 compatible RDMAHans Petter Selasky2017-08-021179-267306/+136626
| | | | | | | | | | | | | | | | | | | | | | | | | kernel APIs. List of sources used: 1) rdma-core was cloned from "https://github.com/linux-rdma/rdma-core.git" Top commit d65138ef93af30b3ea249f3a84aa6a24ba7f8a75 2) OpenSM was cloned from git://git.openfabrics.org/~halr/opensm.git Top commit 85f841cf209f791c89a075048a907020e924528d 3) libibmad was cloned from "git://git.openfabrics.org/~iraweiny/libibmad.git" Tag 1.3.13 with some additional patches from Mellanox. 4) infiniband-diags was cloned from "git://git.openfabrics.org/~iraweiny/infiniband-diags.git" Tag 1.6.7 with some additional patches from Mellanox. Added the required Makefiles for building and installing. Sponsored by: Mellanox Technologies Notes: svn path=/projects/bsd_rdma_4_9/; revision=321936