[ofa-general] OFED SRP Frame/MTU tunning
chas williams - CONTRACTOR
chas at cmf.nrl.navy.mil
Fri Jun 15 07:33:29 PDT 2007
In message <46729984.3070101 at asc.hpc.mil>,MAHMOUD HANAFI writes:
>I would like to configure SRP to use frame size of 1k,it defaults to 2K. Is th
>is an options that can
>be set/configured?
apply this patch. i should have made this a per login item though.
--- a/drivers/infiniband/ulp/srp/ib_srp.c.orig 2006-12-21 14:15:33.728164124 -0500
+++ b/drivers/infiniband/ulp/srp/ib_srp.c 2006-12-21 15:26:44.234250010 -0500
@@ -83,6 +83,10 @@
MODULE_PARM_DESC(mellanox_workarounds,
"Enable workarounds for Mellanox SRP target bugs if != 0");
+static int tavor_quirk = 0;
+module_param_named(tavor_quirk, tavor_quirk, int, 0644);
+MODULE_PARM_DESC(tavor_quirk, "Tavor performance quirk: limit MTU to 1K if > 0");
+
static const u8 mellanox_oui[3] = { 0x00, 0x02, 0xc9 };
static void srp_add_one(struct ib_device *device);
@@ -256,8 +260,14 @@
target->status = status;
if (status)
printk(KERN_ERR PFX "Got failed path rec status %d\n", status);
- else
+ else {
target->path = *pathrec;
+ if (tavor_quirk) {
+ if (target->path.mtu > IB_MTU_1024)
+ target->path.mtu = IB_MTU_1024;
+ }
+ }
+
complete(&target->done);
}
More information about the general
mailing list