RE: [openib-general] Re: Re[PATCH] Opensm - fix forosm_sa_portinfo_record.c

2006-01-11 Thread Hal Rosenstock
On Wed, 2006-01-11 at 02:01, Yael Kalka wrote:
> Hi Hal,
> You are correct.

Thanks. Applied.

> Thanks,
> Yael
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Hal Rosenstock
> Sent: Monday, January 09, 2006 5:39 PM
> To: Yael Kalka
> Cc: openib-general@openib.org
> Subject: [openib-general] Re: Re[PATCH] Opensm - fix
> forosm_sa_portinfo_record.c
> 
> 
> Hi Yael,
> 
> On Mon, 2006-01-09 at 07:29, Yael Kalka wrote:
> > Hi Hal,
> > 
> > During some tests we've notices that not all compmask fields are
> > properly checked and compared in the portInfo record query.
> > Attached is a patch with the missing checks, and addition of some
> > set/get relevant functions added to the ib_types.h as well.
> 
> Just a couple of minor (nit) comments below.
> 
> -- Hal
> 
> > Thanks,
> > Yael
> > 
> > Signed-off-by:  Yael Kalka <[EMAIL PROTECTED]>
> > 
> > Index: include/iba/ib_types.h
> > ===
> > --- include/iba/ib_types.h  (revision 4809)
> > +++ include/iba/ib_types.h  (working copy)
> > @@ -3960,6 +3960,33 @@ ib_port_info_get_vl_cap(
> >  *
> >  * SEE ALSO
> >  */
> > +/f* IBA Base: Types/ib_port_info_get_init_type
> > +* NAME
> > +*  ib_port_info_get_init_type
> > +*
> > +* DESCRIPTION
> > +*  Gets the VL Capability of a port.
>^
>init type
> > +*
> > +* SYNOPSIS
> > +*/
> > +static inline uint8_t
> > +ib_port_info_get_init_type(
> > +   IN const ib_port_info_t* const p_pi)
> > +{
> > +   return(p_pi->vl_cap & 0x0F);
> 
> Should this be:
>   return (uint8_t) (p_pi->vl_cap & 0x0F);
> 
> > +}
> > +/*
> > +* PARAMETERS
> > +*  p_pi
> > +*  [in] Pointer to a PortInfo attribute.
> > +*
> > +* RETURN VALUES
> > +*  InitType field
> > +*
> > +* NOTES
> > +*
> > +* SEE ALSO
> > +*/
> 
> [snip...]
> 
> -- Hal
> 
> ___
> openib-general mailing list
> openib-general@openib.org
> http://openib.org/mailman/listinfo/openib-general
> 
> To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

___
openib-general mailing list
openib-general@openib.org
http://openib.org/mailman/listinfo/openib-general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general


RE: [openib-general] Re: Re[PATCH] Opensm - fix forosm_sa_portinfo_record.c

2006-01-10 Thread Yael Kalka
Hi Hal,
You are correct.
Thanks,
Yael

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Hal Rosenstock
Sent: Monday, January 09, 2006 5:39 PM
To: Yael Kalka
Cc: openib-general@openib.org
Subject: [openib-general] Re: Re[PATCH] Opensm - fix
forosm_sa_portinfo_record.c


Hi Yael,

On Mon, 2006-01-09 at 07:29, Yael Kalka wrote:
> Hi Hal,
> 
> During some tests we've notices that not all compmask fields are
> properly checked and compared in the portInfo record query.
> Attached is a patch with the missing checks, and addition of some
> set/get relevant functions added to the ib_types.h as well.

Just a couple of minor (nit) comments below.

-- Hal

> Thanks,
> Yael
> 
> Signed-off-by:  Yael Kalka <[EMAIL PROTECTED]>
> 
> Index: include/iba/ib_types.h
> ===
> --- include/iba/ib_types.h(revision 4809)
> +++ include/iba/ib_types.h(working copy)
> @@ -3960,6 +3960,33 @@ ib_port_info_get_vl_cap(
>  *
>  * SEE ALSO
>  */
> +/f* IBA Base: Types/ib_port_info_get_init_type
> +* NAME
> +*ib_port_info_get_init_type
> +*
> +* DESCRIPTION
> +*Gets the VL Capability of a port.
   ^
   init type
> +*
> +* SYNOPSIS
> +*/
> +static inline uint8_t
> +ib_port_info_get_init_type(
> + IN const ib_port_info_t* const p_pi)
> +{
> + return(p_pi->vl_cap & 0x0F);

Should this be:
return (uint8_t) (p_pi->vl_cap & 0x0F);

> +}
> +/*
> +* PARAMETERS
> +*p_pi
> +*[in] Pointer to a PortInfo attribute.
> +*
> +* RETURN VALUES
> +*InitType field
> +*
> +* NOTES
> +*
> +* SEE ALSO
> +*/

[snip...]

-- Hal

___
openib-general mailing list
openib-general@openib.org
http://openib.org/mailman/listinfo/openib-general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general
___
openib-general mailing list
openib-general@openib.org
http://openib.org/mailman/listinfo/openib-general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general