[ofa-general] [PATCH 11/11]: mlx4_core use fixed CQ moderation paramters
Eli Cohen
eli at mellanox.co.il
Mon Sep 24 05:42:07 PDT 2007
From: Michael S. Tsirkin <mst at mellanox.co.il>
Subject: IB/ipoib: support for sending gather skbs
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-24 13:08:55.000000000 +0200
+++ ofa_1_3_dev_kernel/drivers/net/mlx4/cq.c 2007-09-24 13:12:42.000000000 +0200
@@ -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