aboutsummaryrefslogtreecommitdiff
path: root/contrib/ofed/infiniband-diags
Commit message (Collapse)AuthorAgeFilesLines
* ibstat: Include prototype for sysctlbyname().Hans Petter Selasky2021-05-271-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 MFC after: 1 week Sponsored by: Mellanox Technologies // NVIDIA Networking
* 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
* Fix Coverity issues in OFEDEric van Gyzen2020-07-156-4/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* 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
* Rework ofed build.Konstantin Belousov2018-06-1623-193/+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
* Correctly prefix the infiniband include directory for buildworld. This fixesHans Petter Selasky2017-12-051-1/+1
| | | | | | | | | | | 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
* Remove no longer needed TESTBUILD defines from OFED Makefiles.Hans Petter Selasky2017-11-136-24/+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-0282-0/+22837
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