[ofa-general] [PATCH] ib/core: Add creation flags to create QP
Eli Cohen
eli at mellanox.co.il
Thu Jan 10 08:01:39 PST 2008
Add creation flags to create QP
This allows the verbs consumer to pass flags to the low level
drivers so they can act accordingly.
Signed-off-by: Eli Cohen <eli at mellanox.co.il>
---
In the case of LSO for example, the mlx4 layer needs to know that so it
can allocate space in the QP send queue buffer to hold the headers.
include/rdma/ib_verbs.h | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/include/rdma/ib_verbs.h b/include/rdma/ib_verbs.h
index 11f3960..6d766d9 100644
--- a/include/rdma/ib_verbs.h
+++ b/include/rdma/ib_verbs.h
@@ -486,6 +486,10 @@ enum ib_qp_type {
IB_QPT_RAW_ETY
};
+enum qp_create_flags {
+ QP_CREATE_LSO = 1 << 0,
+};
+
struct ib_qp_init_attr {
void (*event_handler)(struct ib_event *, void *);
void *qp_context;
@@ -496,6 +500,7 @@ struct ib_qp_init_attr {
enum ib_sig_type sq_sig_type;
enum ib_qp_type qp_type;
u8 port_num; /* special QP types only */
+ enum qp_create_flags create_flags;
};
enum ib_rnr_timeout {
--
1.5.3.8
More information about the general
mailing list