aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoland Dreier <rolandd@cisco.com>2007-04-19 11:36:38 -0700
committerRoland Dreier <rolandd@cisco.com>2007-04-19 11:36:38 -0700
commit2a253a467932de6b93831980b5f794563f993ff1 (patch)
tree81b96234f5418104d0acfb75d35787e0614753f8
parentc2ca3b896e284e5fa70343829a7da8b112b4256c (diff)
downloadlibmlx4-2a253a467932de6b93831980b5f794563f993ff1.tar.gz
Trivial whitespace fixes
Signed-off-by: Roland Dreier <rolandd@cisco.com>
-rw-r--r--src/cq.c6
-rw-r--r--src/qp.c14
-rw-r--r--src/verbs.c22
-rw-r--r--src/wqe.h4
4 files changed, 23 insertions, 23 deletions
diff --git a/src/cq.c b/src/cq.c
index 1e88af8..de7e791 100644
--- a/src/cq.c
+++ b/src/cq.c
@@ -307,9 +307,9 @@ static int mlx4_poll_one(struct mlx4_cq *cq,
break;
}
- wc->slid = ntohs(cqe->rlid);
- wc->sl = cqe->sl >> 4;
- wc->src_qp = ntohl(cqe->g_mlpath_rqpn) & 0xffffff;
+ wc->slid = ntohs(cqe->rlid);
+ wc->sl = cqe->sl >> 4;
+ wc->src_qp = ntohl(cqe->g_mlpath_rqpn) & 0xffffff;
wc->dlid_path_bits = (ntohl(cqe->g_mlpath_rqpn) >> 24) & 0x7f;
wc->pkey_index = ntohl(cqe->immed_rss_invalid) >> 16;
wc->wc_flags |= ntohs(cqe->g_mlpath_rqpn) & 0x80000000 ?
diff --git a/src/qp.c b/src/qp.c
index 81fe191..d4cf962 100644
--- a/src/qp.c
+++ b/src/qp.c
@@ -67,10 +67,10 @@ static void *get_send_wqe(struct mlx4_qp *qp, int n)
void mlx4_init_qp_indices(struct mlx4_qp *qp)
{
- qp->sq.head = 0;
- qp->sq.tail = 0;
- qp->rq.head = 0;
- qp->rq.tail = 0;
+ qp->sq.head = 0;
+ qp->sq.tail = 0;
+ qp->rq.head = 0;
+ qp->rq.tail = 0;
}
static inline int wq_overflow(struct mlx4_wq *wq, int nreq, struct mlx4_cq *cq)
@@ -334,9 +334,9 @@ int mlx4_alloc_qp_buf(struct ibv_pd *pd, struct ibv_qp_cap *cap,
int max_sq_sge;
int i;
- qp->rq.max_gs = cap->max_recv_sge;
- qp->sq.max_gs = cap->max_send_sge;
- max_sq_sge = align(cap->max_inline_data + sizeof (struct mlx4_wqe_inline_seg),
+ qp->rq.max_gs = cap->max_recv_sge;
+ qp->sq.max_gs = cap->max_send_sge;
+ max_sq_sge = align(cap->max_inline_data + sizeof (struct mlx4_wqe_inline_seg),
sizeof (struct mlx4_wqe_data_seg)) / sizeof (struct mlx4_wqe_data_seg);
if (max_sq_sge < cap->max_send_sge)
max_sq_sge = cap->max_send_sge;
diff --git a/src/verbs.c b/src/verbs.c
index 88cba44..fa9674b 100644
--- a/src/verbs.c
+++ b/src/verbs.c
@@ -78,7 +78,7 @@ struct ibv_pd *mlx4_alloc_pd(struct ibv_context *context)
{
struct ibv_alloc_pd cmd;
struct mlx4_alloc_pd_resp resp;
- struct mlx4_pd *pd;
+ struct mlx4_pd *pd;
pd = malloc(sizeof *pd);
if (!pd)
@@ -166,8 +166,8 @@ struct ibv_cq *mlx4_create_cq(struct ibv_context *context, int cqe,
{
struct mlx4_create_cq cmd;
struct mlx4_create_cq_resp resp;
- struct mlx4_cq *cq;
- int ret;
+ struct mlx4_cq *cq;
+ int ret;
/* Sanity check CQ size before proceeding */
if (cqe > 0x3fffff)
@@ -267,8 +267,8 @@ struct ibv_srq *mlx4_create_srq(struct ibv_pd *pd,
{
struct mlx4_create_srq cmd;
struct mlx4_create_srq_resp resp;
- struct mlx4_srq *srq;
- int ret;
+ struct mlx4_srq *srq;
+ int ret;
/* Sanity check SRQ size before proceeding */
if (attr->attr.max_wr > 1 << 16 || attr->attr.max_sge > 64)
@@ -357,8 +357,8 @@ struct ibv_qp *mlx4_create_qp(struct ibv_pd *pd, struct ibv_qp_init_attr *attr)
{
struct mlx4_create_qp cmd;
struct ibv_create_qp_resp resp;
- struct mlx4_qp *qp;
- int ret;
+ struct mlx4_qp *qp;
+ int ret;
/* Sanity check QP size before proceeding */
if (attr->cap.max_send_wr > 65536 ||
@@ -402,10 +402,10 @@ struct ibv_qp *mlx4_create_qp(struct ibv_pd *pd, struct ibv_qp_init_attr *attr)
if (ret)
goto err_destroy;
- qp->sq.max = attr->cap.max_send_wr;
- qp->rq.max = attr->cap.max_recv_wr;
- qp->sq.max_gs = attr->cap.max_send_sge;
- qp->rq.max_gs = attr->cap.max_recv_sge;
+ qp->sq.max = attr->cap.max_send_wr;
+ qp->rq.max = attr->cap.max_recv_wr;
+ qp->sq.max_gs = attr->cap.max_send_sge;
+ qp->rq.max_gs = attr->cap.max_recv_sge;
qp->max_inline_data = attr->cap.max_inline_data;
qp->doorbell_qpn = htonl(qp->ibv_qp.qp_num << 8);
diff --git a/src/wqe.h b/src/wqe.h
index ee649b9..5411fe2 100644
--- a/src/wqe.h
+++ b/src/wqe.h
@@ -38,9 +38,9 @@ enum {
};
enum {
- MLX4_WQE_CTRL_FENCE = 1 << 6,
+ MLX4_WQE_CTRL_FENCE = 1 << 6,
MLX4_WQE_CTRL_CQ_UPDATE = 3 << 2,
- MLX4_WQE_CTRL_SOLICIT = 1 << 1,
+ MLX4_WQE_CTRL_SOLICIT = 1 << 1,
};
enum {