diff options
author | Sean Hefty <sean.hefty@intel.com> | 2011-05-23 19:31:36 -0400 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2011-10-13 12:13:26 -0400 |
commit | 96104eda01695a26da2c8f7423ec0ba3509c8c97 (patch) | |
tree | 04e38bfe564245ebd9a62738d54a111b2d24da4a /drivers/infiniband/ulp/ipoib/ipoib_cm.c | |
parent | 59991f94eb32e954aa767f659eb642461e9e8b37 (diff) |
RDMA/core: Add SRQ type field
Currently, there is only a single ("basic") type of SRQ, but with XRC
support we will add a second. Prepare for this by defining an SRQ type
and setting all current users to IB_SRQT_BASIC.
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband/ulp/ipoib/ipoib_cm.c')
-rw-r--r-- | drivers/infiniband/ulp/ipoib/ipoib_cm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/ulp/ipoib/ipoib_cm.c b/drivers/infiniband/ulp/ipoib/ipoib_cm.c index 39913a065f99..ef003cc54a43 100644 --- a/drivers/infiniband/ulp/ipoib/ipoib_cm.c +++ b/drivers/infiniband/ulp/ipoib/ipoib_cm.c | |||
@@ -1496,6 +1496,7 @@ static void ipoib_cm_create_srq(struct net_device *dev, int max_sge) | |||
1496 | { | 1496 | { |
1497 | struct ipoib_dev_priv *priv = netdev_priv(dev); | 1497 | struct ipoib_dev_priv *priv = netdev_priv(dev); |
1498 | struct ib_srq_init_attr srq_init_attr = { | 1498 | struct ib_srq_init_attr srq_init_attr = { |
1499 | .srq_type = IB_SRQT_BASIC, | ||
1499 | .attr = { | 1500 | .attr = { |
1500 | .max_wr = ipoib_recvq_size, | 1501 | .max_wr = ipoib_recvq_size, |
1501 | .max_sge = max_sge | 1502 | .max_sge = max_sge |