[ofa-general] [PATCH 17 of 17] mlx4: config coalscing params as default
Eli Cohen
eli at mellanox.co.il
Tue Sep 11 08:55:11 PDT 2007
From: Michael S. Tsirkin <mst at mellanox.co.il>
Enable interrupt coalescing for CQs in mlx4.
Signed-off-by: Michael S. Tsirkin <mst at dev.mellanox.co.il>
---
Index: ofa_1_3_dev_kernel/drivers/net/mlx4/cq.c
===================================================================
--- ofa_1_3_dev_kernel.orig/drivers/net/mlx4/cq.c 2007-09-11 21:15:30.000000000 +0300
+++ ofa_1_3_dev_kernel/drivers/net/mlx4/cq.c 2007-09-11 21:15:31.000000000 +0300
@@ -43,6 +43,14 @@
#include "mlx4.h"
#include "icm.h"
+static int cq_max_count = 16;
+static int cq_period = 10;
+
+module_param(cq_max_count, int, 0444);
+MODULE_PARM_DESC(cq_max_count, "number of CQEs to generate event");
+module_param(cq_period, int, 0444);
+MODULE_PARM_DESC(cq_period, "time in usec for CQ event generation");
+
#define MLX4_CQ_STATUS_OK ( 0 << 28)
#define MLX4_CQ_STATUS_OVERFLOW ( 9 << 28)
#define MLX4_CQ_STATUS_WRITE_FAIL (10 << 28)
More information about the general
mailing list