IBV_CREATE_WQ - Online Linux Manual PageSection : 3
Updated : 2016-07-27
Source : libibverbs
Note : Libibverbs Programmer's Manual
NAMEibv_create_wq, ibv_destroy_wq − create or destroy a Work Queue (WQ).
SYNOPSIS#include <infiniband/verbs.h>
struct ibv_wq *ibv_create_wq(struct ibv_context *context,
struct ibv_wq_init_attr *wq_init_attr);
int ibv_destroy_wq(struct ibv_wq *wq);
DESCRIPTIONibv_create_wq() creates a WQ associated with the ibv_context context. The argument wq_init_attr is an ibv_wq_init_attr struct, as defined in <infiniband/verbs.h>. struct ibv_wq_init_attr {
void *wq_context; /* Associated context of the WQ */
enum ibv_wq_type wq_type; /* WQ type */
uint32_t max_wr; /* Requested max number of outstanding WRs in the WQ */
uint32_t max_sge; /* Requested max number of scatter/gather (s/g) elements per WR in the WQ */
struct ibv_pd *pd; /* PD to be associated with the WQ */
struct ibv_cq *cq; /* CQ to be associated with the WQ */
uint32_t comp_mask; /* Identifies valid fields. Use ibv_wq_init_attr_mask */
uint32_t create_flags /* Creation flags for this WQ, use enum ibv_wq_flags */
};
enum ibv_wq_flags {
IBV_WQ_FLAGS_CVLAN_STRIPPING = 1 << 0, /* CVLAN field will be stripped from incoming packets */
IBV_WQ_FLAGS_SCATTER_FCS = 1 << 1, /* FCS field will be scattered to host memory */
IBV_WQ_FLAGS_DELAY_DROP = 1 << 2, /* Packets won't be dropped immediately if no receive WQEs */
IBV_WQ_FLAGS_PCI_WRITE_END_PADDING = 1 << 3, /* Incoming packets will be padded to cacheline size */
IBV_WQ_FLAGS_RESERVED = 1 << 4,
};
The function ibv_create_wq() will update the wq_init_attr->max_wr and wq_init_attr->max_sge fields with the actual WQ values of the WQ that was created; the values will be greater than or equal to the values requested. ibv_destroy_wq() destroys the WQ wq.
RETURN VALUEibv_create_wq() returns a pointer to the created WQ, or NULL if the request fails. ibv_destroy_wq() returns 0 on success, or the value of errno on failure (which indicates the failure reason).
SEE ALSOibv_modify_wq(3),
AUTHORSYishai Hadas <yishaih@mellanox.com> 0
Johanes Gumabo
Data Size : 7,167 byte
man-ibv_create_wq.3Build : 2024-12-29, 07:25 :
Visitor Screen : x
Visitor Counter ( page / site ) : 5 / 255,981
Visitor ID : :
Visitor IP : 18.221.217.100 :
Visitor Provider : AMAZON-02 :
Provider Position ( lat x lon ) : 39.962500 x -83.006100 : x
Provider Accuracy Radius ( km ) : 1000 :
Provider City : Columbus :
Provider Province : Ohio , : ,
Provider Country : United States :
Provider Continent : North America :
Visitor Recorder : Version :
Visitor Recorder : Library :
Online Linux Manual Page : Version : Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.29
Online Linux Manual Page : Library : lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page : Library : lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base : Version : Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base : Library : lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36
Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.
ERROR : Need New Coding : (rof_TP|38|i___bv_create_wq.3|74|EOF|Yishai Hadas
)