[ofa-general] OFED SRP Frame/MTU tunning

Hal Rosenstock halr at voltaire.com
Fri Jun 15 09:54:55 PDT 2007


On Fri, 2007-06-15 at 10:33, chas williams - CONTRACTOR wrote:
> 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.

If you are running OpenSM, you don't need this if you set enable_quirks
in opensm.opts.

-- Hal

> 
> --- 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);
>  }
>  
> _______________________________________________
> general mailing list
> general at lists.openfabrics.org
> http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general
> 
> To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general




More information about the general mailing list