LCOV - code coverage report
Current view: top level - disco/net/mlx5 - fd_mlx5.h (source / functions) Hit Total Coverage
Test: cov.lcov Lines: 1 1 100.0 %
Date: 2026-09-17 04:28:31 Functions: 0 0 -

          Line data    Source code
       1             : #ifndef HEADER_fd_src_disco_net_mlx5_fd_mlx5_h
       2             : #define HEADER_fd_src_disco_net_mlx5_fd_mlx5_h
       3             : 
       4             : #if defined(__linux__)
       5             : 
       6             : #include "../../../util/bits/fd_bits.h"
       7             : 
       8           3 : #define FD_MLX5_RDMA_NAME_MAX (64UL)
       9             : 
      10             : FD_PROTOTYPES_BEGIN
      11             : 
      12             : /* fd_mlx5_rdma_dev_find maps interface_name or one of its bond members
      13             :    to exactly one Linux RDMA device and port.  It returns 1 on success.
      14             :    On failure, it returns 0 and sets errno to ENOENT when no port matches,
      15             :    EEXIST when multiple ports match, or the relevant system error.  It
      16             :    clears rdma_name and rdma_port on failure. */
      17             : int
      18             : fd_mlx5_rdma_dev_find( char         rdma_name[ FD_MLX5_RDMA_NAME_MAX ],
      19             :                        uint *       rdma_port,
      20             :                        char const * interface_name );
      21             : 
      22             : int
      23             : fd_mlx5_uverbs_avail( void );
      24             : 
      25             : FD_PROTOTYPES_END
      26             : 
      27             : #endif /* defined(__linux__) */
      28             : 
      29             : #endif /* HEADER_fd_src_disco_net_mlx5_fd_mlx5_h */

Generated by: LCOV version 1.14