[ofa-general][PATCH 3/3] mlx4: Reserve FEXCH per port

oren at mellanox.co.il oren at mellanox.co.il
Mon Sep 22 07:34:29 PDT 2008


mlx4_core: Double the amount of reserved QPs for FEXCH

Needs to be per-port

Signed-off-by: Oren Duer <oren at mellanox.co.il>

Index: ofed_kernel-2.6.18-EL5.1/drivers/net/mlx4/main.c
===================================================================
--- ofed_kernel-2.6.18-EL5.1.orig/drivers/net/mlx4/main.c	2008-09-04 13:41:36.000000000 +0300
+++ ofed_kernel-2.6.18-EL5.1/drivers/net/mlx4/main.c	2008-09-04 13:42:11.126779000 +0300
@@ -76,12 +76,12 @@ static char mlx4_version[] __devinitdata
 	DRV_VERSION " (" DRV_RELDATE ")\n";
 
 static struct mlx4_profile default_profile = {
-	.num_qp		= 1 << 17,
+	.num_qp		= 1 << 18,
 	.num_srq	= 1 << 16,
 	.rdmarc_per_qp	= 1 << 4,
 	.num_cq		= 1 << 16,
 	.num_mcg	= 1 << 13,
-	.num_mpt	= 1 << 18,
+	.num_mpt	= 1 << 19,
 	.num_mtt	= 1 << 20,
 };
 
Index: ofed_kernel-2.6.18-EL5.1/include/linux/mlx4/device.h
===================================================================
--- ofed_kernel-2.6.18-EL5.1.orig/include/linux/mlx4/device.h	2008-09-03 17:56:42.000000000 +0300
+++ ofed_kernel-2.6.18-EL5.1/include/linux/mlx4/device.h	2008-09-04 13:46:07.224047000 +0300
@@ -159,7 +159,7 @@ enum mlx4_port_type {
 };
 
 enum {
-	MLX4_NUM_FEXCH          = 64 * 1024,
+	MLX4_NUM_FEXCH          = MLX4_MAX_PORTS * 64 * 1024,
 };
 
 enum mlx4_special_vlan_idx {



More information about the general mailing list