aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/net/rds/ib.h
diff options
context:
space:
mode:
authorsantosh.shilimkar@oracle.com <santosh.shilimkar@oracle.com>2016-03-01 15:20:53 -0800
committerDavid S. Miller <davem@davemloft.net>2016-03-02 14:13:19 -0500
commitad6832f950d35df8c70b577993a24b31b34d88e4 (patch)
tree3e94b96cbfb3ce11f3eabece96d4e3564db71d09 /net/rds/ib.h
parentRDS: IB: add Fastreg MR (FRMR) detection support (diff)
downloadwireguard-linux-ad6832f950d35df8c70b577993a24b31b34d88e4.tar.xz
wireguard-linux-ad6832f950d35df8c70b577993a24b31b34d88e4.zip
RDS: IB: allocate extra space on queues for FRMR support
Fastreg MR(FRMR) memory registration and invalidation makes use of work request and completion queues for its operation. Patch allocates extra queue space towards these operation(s). Signed-off-by: Santosh Shilimkar <ssantosh@kernel.org> Signed-off-by: Santosh Shilimkar <santosh.shilimkar@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/rds/ib.h')
-rw-r--r--net/rds/ib.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/rds/ib.h b/net/rds/ib.h
index c5eddc2086ff..eeb0d6c85cb3 100644
--- a/net/rds/ib.h
+++ b/net/rds/ib.h
@@ -14,6 +14,7 @@
#define RDS_IB_DEFAULT_RECV_WR 1024
#define RDS_IB_DEFAULT_SEND_WR 256
+#define RDS_IB_DEFAULT_FR_WR 512
#define RDS_IB_DEFAULT_RETRY_COUNT 2
@@ -122,6 +123,9 @@ struct rds_ib_connection {
struct ib_wc i_send_wc[RDS_IB_WC_MAX];
struct ib_wc i_recv_wc[RDS_IB_WC_MAX];
+ /* To control the number of wrs from fastreg */
+ atomic_t i_fastreg_wrs;
+
/* interrupt handling */
struct tasklet_struct i_send_tasklet;
struct tasklet_struct i_recv_tasklet;