File: 6962baf519ab44a4635fd03f70c3033b30b7467e

package info (click to toggle)
rdma-core 56.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 17,196 kB
  • sloc: ansic: 171,361; python: 13,724; sh: 2,774; perl: 1,465; makefile: 73
file content (76 lines) | stat: -rw-r--r-- 1,643 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
.\" Automatically generated by Pandoc 2.9.2.1
.\"
.TH "mlx4dv_set_context_attr" "3" "" "" ""
.hy
.SH NAME
.PP
mlx4dv_set_context_attr - Set context attributes
.SH SYNOPSIS
.IP
.nf
\f[C]
#include <infiniband/mlx4dv.h>

int mlx4dv_set_context_attr(struct ibv_context *context,
                            enum mlx4dv_set_ctx_attr_type attr_type,
                            void *attr);
\f[R]
.fi
.SH DESCRIPTION
.PP
mlx4dv_set_context_attr gives the ability to set vendor specific
attributes on the RDMA context.
.SH ARGUMENTS
.TP
\f[I]context\f[R]
RDMA device context to work on.
.TP
\f[I]attr_type\f[R]
The type of the provided attribute.
.TP
\f[I]attr\f[R]
Pointer to the attribute to be set.
## attr_type
.IP
.nf
\f[C]
enum mlx4dv_set_ctx_attr_type {
    /* Attribute type uint8_t */
    MLX4DV_SET_CTX_ATTR_LOG_WQS_RANGE_SZ    = 0,
    MLX4DV_SET_CTX_ATTR_BUF_ALLOCATORS  = 1,
};
\f[R]
.fi
.TP
\f[I]MLX4DV_SET_CTX_ATTR_LOG_WQS_RANGE_SZ\f[R]
Change the LOG WQs Range size for RSS
.TP
\f[I]MLX4DV_SET_CTX_ATTR_BUF_ALLOCATORS\f[R]
Provide an external buffer allocator
.IP
.nf
\f[C]
struct mlx4dv_ctx_allocators {
    void *(*alloc)(size_t size, void *priv_data);
    void (*free)(void *ptr, void *priv_data);
    void *data;
};
\f[R]
.fi
.TP
\f[I]alloc\f[R]
Function used for buffer allocation instead of libmlx4 internal method
.TP
\f[I]free\f[R]
Function used to free buffers allocated by alloc function
.TP
\f[I]data\f[R]
Metadata that can be used by alloc and free functions
.SH RETURN VALUE
.PP
Returns 0 on success, or the value of errno on failure (which indicates
the failure reason).
.PP
#AUTHOR
.PP
Majd Dibbiny <majd@mellanox.com>