Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 54386
b: refs/heads/master
c: 1860cdf
h: refs/heads/master
v: v3
  • Loading branch information
Steve Wise authored and Roland Dreier committed May 1, 2007
1 parent a9d318b commit a4e9275
Show file tree
Hide file tree
Showing 3 changed files with 5 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: 4a97d47ef7946cf31b76945c3199b0b5cad6a8ed
refs/heads/master: 1860cdf802310e4a988e0b8fca41cc97da36f779
1 change: 1 addition & 0 deletions trunk/drivers/infiniband/hw/cxgb3/cxio_wr.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
#include "firmware_exports.h"

#define T3_MAX_SGE 4
#define T3_MAX_INLINE 64

#define Q_EMPTY(rptr,wptr) ((rptr)==(wptr))
#define Q_FULL(rptr,wptr,size_log2) ( (((wptr)-(rptr))>>(size_log2)) && \
Expand Down
3 changes: 3 additions & 0 deletions trunk/drivers/infiniband/hw/cxgb3/iwch_provider.c
Original file line number Diff line number Diff line change
Expand Up @@ -780,6 +780,9 @@ static struct ib_qp *iwch_create_qp(struct ib_pd *pd,
if (rqsize > T3_MAX_RQ_SIZE)
return ERR_PTR(-EINVAL);

if (attrs->cap.max_inline_data > T3_MAX_INLINE)
return ERR_PTR(-EINVAL);

/*
* NOTE: The SQ and total WQ sizes don't need to be
* a power of two. However, all the code assumes
Expand Down

0 comments on commit a4e9275

Please sign in to comment.