[openib-general] [PATCH] fix CA type name truncation

Hal Rosenstock halr at voltaire.com
Mon Jan 3 10:44:58 PST 2005


On Mon, 2005-01-03 at 13:36, Tom Duffy wrote:
> On Thu, 2004-12-23 at 13:46 -0800, Tom Duffy wrote:
> > Increase the size of ca_type to accommodate string printed out of ARBEL
> > in TAVOR compat mode.
> 
> Any reason not to take this patch?
> 
> > Index: gen2/trunk/src/userspace/include/umad.h
> > ===================================================================
> > --- gen2/trunk/src/userspace/include/umad.h	(revision 1376)
> > +++ gen2/trunk/src/userspace/include/umad.h	(working copy)
> > @@ -68,7 +68,7 @@
> >  	char ca_name[UMAD_CA_NAME_LEN];
> >  	int numports;
> >  	char fw_ver[20];
> > -	char ca_type[20];
> > +	char ca_type[40];
> >  	char hw_ver[20];
> >  	uint64_t node_guid;
> >  	uint64_t system_guid;

Thanks. I just integrated and tested this patch. BTW, this file is now
located at userspace/management/include.

-- Hal




More information about the general mailing list