Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 88513
b: refs/heads/master
c: b846f25
h: refs/heads/master
i:
  88511: 8d5ba7b
v: v3
  • Loading branch information
Eli Cohen authored and Roland Dreier committed Apr 17, 2008
1 parent a51bb79 commit 328c499
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d84e0b28d3a0b41fc574ea50d60522ae0fba75f4
refs/heads/master: b846f25aa2a353355aec5202fe4dbdc6674dfc64
1 change: 1 addition & 0 deletions trunk/drivers/infiniband/core/uverbs_cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1065,6 +1065,7 @@ ssize_t ib_uverbs_create_qp(struct ib_uverbs_file *file,
attr.srq = srq;
attr.sq_sig_type = cmd.sq_sig_all ? IB_SIGNAL_ALL_WR : IB_SIGNAL_REQ_WR;
attr.qp_type = cmd.qp_type;
attr.create_flags = 0;

attr.cap.max_send_wr = cmd.max_send_wr;
attr.cap.max_recv_wr = cmd.max_recv_wr;
Expand Down
3 changes: 3 additions & 0 deletions trunk/drivers/infiniband/hw/amso1100/c2_provider.c
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,9 @@ static struct ib_qp *c2_create_qp(struct ib_pd *pd,

pr_debug("%s:%u\n", __func__, __LINE__);

if (init_attr->create_flags)
return ERR_PTR(-EINVAL);

switch (init_attr->qp_type) {
case IB_QPT_RC:
qp = kzalloc(sizeof(*qp), GFP_KERNEL);
Expand Down
3 changes: 3 additions & 0 deletions trunk/drivers/infiniband/hw/ehca/ehca_qp.c
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,9 @@ static struct ehca_qp *internal_create_qp(
u32 swqe_size = 0, rwqe_size = 0, ib_qp_num;
unsigned long flags;

if (init_attr->create_flags)
return ERR_PTR(-EINVAL);

memset(&parms, 0, sizeof(parms));
qp_type = init_attr->qp_type;

Expand Down
5 changes: 5 additions & 0 deletions trunk/drivers/infiniband/hw/ipath/ipath_qp.c
Original file line number Diff line number Diff line change
Expand Up @@ -747,6 +747,11 @@ struct ib_qp *ipath_create_qp(struct ib_pd *ibpd,
size_t sz;
struct ib_qp *ret;

if (init_attr->create_flags) {
ret = ERR_PTR(-EINVAL);
goto bail;
}

if (init_attr->cap.max_send_sge > ib_ipath_max_sges ||
init_attr->cap.max_send_wr > ib_ipath_max_qp_wrs) {
ret = ERR_PTR(-EINVAL);
Expand Down
3 changes: 3 additions & 0 deletions trunk/drivers/infiniband/hw/mlx4/qp.c
Original file line number Diff line number Diff line change
Expand Up @@ -673,6 +673,9 @@ struct ib_qp *mlx4_ib_create_qp(struct ib_pd *pd,
struct mlx4_ib_qp *qp;
int err;

if (init_attr->create_flags)
return ERR_PTR(-EINVAL);

switch (init_attr->qp_type) {
case IB_QPT_RC:
case IB_QPT_UC:
Expand Down
3 changes: 3 additions & 0 deletions trunk/drivers/infiniband/hw/mthca/mthca_provider.c
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,9 @@ static struct ib_qp *mthca_create_qp(struct ib_pd *pd,
struct mthca_qp *qp;
int err;

if (init_attr->create_flags)
return ERR_PTR(-EINVAL);

switch (init_attr->qp_type) {
case IB_QPT_RC:
case IB_QPT_UC:
Expand Down
3 changes: 3 additions & 0 deletions trunk/drivers/infiniband/hw/nes/nes_verbs.c
Original file line number Diff line number Diff line change
Expand Up @@ -1252,6 +1252,9 @@ static struct ib_qp *nes_create_qp(struct ib_pd *ibpd,
u8 rq_encoded_size;
/* int counter; */

if (init_attr->create_flags)
return ERR_PTR(-EINVAL);

atomic_inc(&qps_created);
switch (init_attr->qp_type) {
case IB_QPT_RC:
Expand Down
5 changes: 5 additions & 0 deletions trunk/include/rdma/ib_verbs.h
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,10 @@ enum ib_qp_type {
IB_QPT_RAW_ETY
};

enum ib_qp_create_flags {
IB_QP_CREATE_IPOIB_UD_LSO = 1 << 0,
};

struct ib_qp_init_attr {
void (*event_handler)(struct ib_event *, void *);
void *qp_context;
Expand All @@ -504,6 +508,7 @@ struct ib_qp_init_attr {
struct ib_qp_cap cap;
enum ib_sig_type sq_sig_type;
enum ib_qp_type qp_type;
enum ib_qp_create_flags create_flags;
u8 port_num; /* special QP types only */
};

Expand Down

0 comments on commit 328c499

Please sign in to comment.