aboutsummaryrefslogtreecommitdiff
path: root/contrib/ofed
Commit message (Collapse)AuthorAgeFilesLines
* 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-32/+93
| | | | | | | | 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-021411-371227/+240547
| | | | | | | | | | | | | | | | | | | | | | | | | 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
* libcxgb4: Use memcpy instead of copying WRs 8B at a time in the userspaceNavdeep Parhar2017-05-271-23/+33
| | | | | | | | | | RDMA library for cxgbe(4). MFC after: 3 days Sponsored by: Chelsio Communications Notes: svn path=/head/; revision=318973
* cxgbe/iw_cxgbe: Report accurate page_size_cap in ib_query_device.Navdeep Parhar2017-04-141-1/+1
| | | | | | | | MFC after: 3 days Sponsored by: Chelsio Communications Notes: svn path=/head/; revision=316937
* Fix build with LLD by removing duplicate symbols already in IBVERBS_1.0.Bryan Drewery2017-04-101-6/+0
| | | | | | | | | | Reviewed by: emaste MFC after: 2 weeks Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D10352 Notes: svn path=/head/; revision=316690
* Renumber copyright clause 4Warner Losh2017-02-281-1/+1
| | | | | | | | | | | | Renumber cluase 4 to 3, per what everybody else did when BSD granted them permission to remove clause 3. My insistance on keeping the same numbering for legal reasons is too pedantic, so give up on that point. Submitted by: Jan Schaumann <jschauma@stevens.edu> Pull Request: https://github.com/freebsd/freebsd/pull/96 Notes: svn path=/head/; revision=314436
* Add support for RDMA from userspace with T6 cards.Navdeep Parhar2017-02-237-64/+20653
| | | | | | | | Submitted by: Krishnamraju Eraparaju @ Chelsio Sponsored by: Chelsio Communications Notes: svn path=/head/; revision=314176
* When MAKEOBJDIRPREFIX points to a case-insensitive file system, theMarcel Moolenaar2016-09-241-1/+1
| | | | | | | | | | | | | | | | | build can break when different source files create the same target files (case-insensitivity speaking). This is the case for object files compiled with -fpic and shared libraries. The former uses an extension of ".So", and the latter an extension ".so". Rename shared object files from *.So to *.pico to match what NetBSD does. Missed in r306297 MFC after: 1 month Sponsored by: Bracket Computing Differential Revision: https://reviews.freebsd.org/D7906 Notes: svn path=/head/; revision=306300
* cxgbe/iw_cxgbe: Various fixes to the iWARP driver.Navdeep Parhar2016-08-261-10/+6
| | | | | | | | | | | | | | | - Return appropriate error code instead of ENOMEM when sosend() fails in send_mpa_req. - Fix for problematic race during destroy_qp. - Abortive close in the failure of send_mpa_reject() instead of normal close. - Remove the unnecessary doorbell flowcontrol logic. Submitted by: Krishnamraju Eraparaju at Chelsio MFC after: 1 month Sponsored by: Chelsio communications Notes: svn path=/head/; revision=304854
* Remove last traces of _WITH_GETLINEBaptiste Daroussin2016-07-301-1/+0
| | | | Notes: svn path=/head/; revision=303528
* Make GCC happy by removing empty #elif.Bryan Drewery2016-03-251-1/+1
| | | | | | | Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=297266
* Fix off-by-one found by GCC 5.3.2.Bryan Drewery2016-03-241-2/+2
| | | | | | | | | This was fixed during refactoring in the upstream infiniband-diags 1.5.3. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=297251
* iw_cxgbe/libcxgb4: Pull in many applicable fixes from the upstream LinuxNavdeep Parhar2016-03-216-15/+35
| | | | | | | | | | | | | | iWARP driver and userspace library to the FreeBSD iw_cxgbe and libcxgb4. This commit includes internal changesets 6785 8111 8149 8478 8617 8648 8650 9110 9143 9440 9511 9894 10164 10261 10450 10980 10981 10982 11730 11792 12218 12220 12222 12223 12225 12226 12227 12228 12229 12654. Submitted by: Krishnamraju Eraparaju @ Chelsio Sponsored by: Chelsio Communications Notes: svn path=/head/; revision=297124
* DIRDEPS_BUILD: Connect ofed.Bryan Drewery2016-03-0430-0/+636
| | | | | | | Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=296403
* Update libsdp to the latest 1.1.108-0.17.ga6958ef.Bryan Drewery2016-03-0414-379/+1106
| | | | | | | | | | | | | | | | | The only relevant change here is the support for IPv6 in the config file. The previous version of this supported IPv6 but not in the config. The change for that ended up removing __sdp_sockaddr_to_sdp which the IPV4 config code required; the IPv6 fix resolved the lack of that symbol. Note that the ChangeLog was lacking entries for which we already had the changes for, which itself was an upstream bug. Obtained from: https://www.openfabrics.org/downloads/libsdp/libsdp-1.1.108-0.17.ga6958ef.tar.gz Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=296402
* Fix missing symbol program_invocation_short_name.Bryan Drewery2016-03-041-1/+8
| | | | | | | | | This fixes runtime when logging is enabled. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=296401
* Fix over/under-linking in contrib/ofed.Bryan Drewery2016-03-0421-11/+30
| | | | | | | Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=296398
* Use LIBADD instead of LDADD.Hans Petter Selasky2016-02-023-6/+3
| | | | | | | Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=295146
* Use LIBADD instead of LDADD in rping's Makefile and add libcxgb4 (theNavdeep Parhar2016-01-261-2/+3
| | | | | | | | | | | userspace iWARP library for cxgbe) to the list of libraries. rping using the libcxgb4 + iw_cxgbe combo was tested with T5 hardware. Obtained from: Chelsio Communications Notes: svn path=/head/; revision=294756
* Convert contrib/ofed libraries to LIBADD.Bryan Drewery2015-12-1017-30/+21
| | | | | | | Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=292037
* Fix LDADD/DPADD that should be LIBADD.Bryan Drewery2015-12-041-1/+2
| | | | | | | Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=291738
* Define BINDIR for some test utilities.Hans Petter Selasky2015-03-192-0/+4
| | | | | | | | MFC after: 3 days Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=280264
* Don't call abort on usage errors; print out the usage message insteadEnji Cooper2015-01-161-2/+3
| | | | | | | | | PR: 196793 MFC after: 3 days Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=277272
* Fix compilation for 32-bit architectures.Hans Petter Selasky2015-01-151-9/+9
| | | | | | | | | PR: 196580 Sponsored by: Mellanox Technologies MFC after: 3 days Notes: svn path=/head/; revision=277212