aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/ulp/ipoib/ipoib.h
diff options
context:
space:
mode:
authorShirley Ma <xma@us.ibm.com>2006-04-10 12:43:58 -0400
committerRoland Dreier <rolandd@cisco.com>2006-04-10 12:43:58 -0400
commit0f4852513fb07405ce88da40d8c497060561246e (patch)
tree4221d43a7868b0431d7564601017d8f1449cd13d /drivers/infiniband/ulp/ipoib/ipoib.h
parentf2de3b06126ddb07d0e4617225d74dce0855add3 (diff)
IPoIB: Make send and receive queue sizes tunable
Make IPoIB's send and receive queue sizes tunable via module parameters ("send_queue_size" and "recv_queue_size"). This allows the queue sizes to be enlarged to fix disastrously bad performance on some platforms and workloads, without bloating memory usage when large queues aren't needed. Signed-off-by: Shirley Ma <xma@us.ibm.com> Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/ulp/ipoib/ipoib.h')
-rw-r--r--drivers/infiniband/ulp/ipoib/ipoib.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/infiniband/ulp/ipoib/ipoib.h b/drivers/infiniband/ulp/ipoib/ipoib.h
index 374109df7303..12a1e0572ef2 100644
--- a/drivers/infiniband/ulp/ipoib/ipoib.h
+++ b/drivers/infiniband/ulp/ipoib/ipoib.h
@@ -65,6 +65,8 @@ enum {
65 65
66 IPOIB_RX_RING_SIZE = 128, 66 IPOIB_RX_RING_SIZE = 128,
67 IPOIB_TX_RING_SIZE = 64, 67 IPOIB_TX_RING_SIZE = 64,
68 IPOIB_MAX_QUEUE_SIZE = 8192,
69 IPOIB_MIN_QUEUE_SIZE = 2,
68 70
69 IPOIB_NUM_WC = 4, 71 IPOIB_NUM_WC = 4,
70 72
@@ -332,6 +334,8 @@ static inline void ipoib_unregister_debugfs(void) { }
332#define ipoib_warn(priv, format, arg...) \ 334#define ipoib_warn(priv, format, arg...) \
333 ipoib_printk(KERN_WARNING, priv, format , ## arg) 335 ipoib_printk(KERN_WARNING, priv, format , ## arg)
334 336
337extern int ipoib_sendq_size;
338extern int ipoib_recvq_size;
335 339
336#ifdef CONFIG_INFINIBAND_IPOIB_DEBUG 340#ifdef CONFIG_INFINIBAND_IPOIB_DEBUG
337extern int ipoib_debug_level; 341extern int ipoib_debug_level;