[ofa-general] [PATCH 5/10] IB/mlx4: Add QP flags

Eli Cohen eli at dev.mellanox.co.il
Mon Mar 17 08:24:00 PDT 2008


>From c0f184afbced888b2812d67cbffb0d1e4af04ef2 Mon Sep 17 00:00:00 2001
From: Eli Cohen <eli at mellanox.co.il>
Date: Thu, 28 Feb 2008 18:08:45 +0200
Subject: [PATCH] IB/mlx4: Add QP flags

This patch adds a flag filed to mlx4_ib_qp. These flags can be used to save
flags derived from create flags passed at QP creation and be used
afterwards. This patch also adds the MLX4_QP_LSO flag.

Signed-off-by: Eli Cohen <eli at mellanox.co.il>
---
 drivers/infiniband/hw/mlx4/mlx4_ib.h |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/drivers/infiniband/hw/mlx4/mlx4_ib.h b/drivers/infiniband/hw/mlx4/mlx4_ib.h
index 3726e45..0d7ccbc 100644
--- a/drivers/infiniband/hw/mlx4/mlx4_ib.h
+++ b/drivers/infiniband/hw/mlx4/mlx4_ib.h
@@ -110,6 +110,10 @@ struct mlx4_ib_wq {
 	unsigned		tail;
 };
 
+enum qp_flags {
+	MLX4_QP_LSO = 1 << 0
+};
+
 struct mlx4_ib_qp {
 	struct ib_qp		ibqp;
 	struct mlx4_qp		mqp;
@@ -135,6 +139,7 @@ struct mlx4_ib_qp {
 	u8			resp_depth;
 	u8			sq_no_prefetch;
 	u8			state;
+	u32			flags;
 };
 
 struct mlx4_ib_srq {
-- 
1.5.4.4






More information about the general mailing list