aboutsummaryrefslogtreecommitdiff
path: root/contrib/ofed/librdmacm
Commit message (Collapse)AuthorAgeFilesLines
* Cleanup pthread locks in ofed RDMA verbsSean Lim2023-09-191-1/+2
| | | | | | | | | | | | | On FreeBSD, pthread mutex, cond, and spinlocks allocate memory. On Linux-based systems, these calls do not allocate memory. So there was a safe assumption that the ofed RDMA verb calls do not need to explicitly destroy the pthread locks. This assumption is false on FreeBSD. So let us rearrange the code to cleanup the pthread locks. Reviewed by: delphij MFC after: 2 weeks Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D41105
* librmdacm: rdma_get_local_addr and rdma_get_peer_addr are not exportedKonstantin Belousov2023-08-031-2/+0
| | | | | | | they are static inline, remove them from the version script. Sponsored by: NVidia networking MFC after: 1 week
* librdmacm: remove rsocket symbols from the map fileKonstantin Belousov2023-08-031-27/+0
| | | | | | | rsocket support was never compiled on FreeBSD at all. Sponsored by: NVidia networking MFC after: 1 week
* Fix Coverity issues in OFEDEric van Gyzen2020-07-151-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* 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
* 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-167-117/+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
* 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
* Fix OFED library dependencies.Hans Petter Selasky2017-11-131-1/+1
| | | | | | | 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-131-4/+0
| | | | | | | Sponsored by: Mellanox Technologies Notes: svn path=/projects/bsd_rdma_4_9/; revision=325762
* OFED user-space import and update for use with Linux-4.9 compatible RDMAHans Petter Selasky2017-08-02127-44151/+16601
| | | | | | | | | | | | | | | | | | | | | | | | | 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
* 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
* Define BINDIR for some test utilities.Hans Petter Selasky2015-03-191-0/+2
| | | | | | | | MFC after: 3 days Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=280264
* Add missing libraries when linking.Hans Petter Selasky2014-11-304-0/+4
| | | | | | | | MFC after: 3 days Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=275328
* Fix previous change to this file (r273811).Navdeep Parhar2014-11-121-4/+5
| | | | | | | | | This has been submitted upstream and should show up there soon. Submitted by: Hariprasad at Chelsio dot com Notes: svn path=/head/; revision=274450
* rping: make sure that the CQ event thread can never poll a CQ after itNavdeep Parhar2014-10-291-7/+13
| | | | | | | | | | has been destroyed. Submitted by: Hariprasad at Chelsio dot com Sponsored by: Chelsio Communications Notes: svn path=/head/; revision=273811
* Make some infiniband example utilities easily buildable:Hans Petter Selasky2014-10-287-2/+55
| | | | | | | | | | | | - Add new Makefiles. - Add more include directories when building. - Fixed a printf() formatting string. MFC after: 3 days Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=273774
* - Merge in OFED 1.5.3 from projects/ofed/headJeff Roberson2011-03-2162-0/+49190
Notes: svn path=/head/; revision=219820