[ofa-general] [PATCH] opensm/include/iba/ib_types.h: update Notice DataDetails for Trap 144 to 1.2.1

Hal Rosenstock hrosenstock at xsigo.com
Wed Mar 12 11:13:10 PDT 2008


On Wed, 2008-03-12 at 10:23 -0700, Ira Weiny wrote:
> Sasha,
> 
> I don't know if this is how you would like to define the masks or not.
> 
> Let me know,
> Ira
> 
> 
> >From c5c6b2f6bd3e889a4eb6fa462507fcbf25a433e9 Mon Sep 17 00:00:00 2001
> From: Ira K. Weiny <weiny2 at llnl.gov>
> Date: Mon, 10 Mar 2008 11:19:29 -0700
> Subject: [PATCH] opensm/include/iba/ib_types.h: update Notice DataDetails for Trap 144 to 1.2.1
> 
> 
> Signed-off-by: Ira K. Weiny <weiny2 at llnl.gov>
> ---
>  opensm/include/iba/ib_types.h |   16 +++++++++++++---
>  1 files changed, 13 insertions(+), 3 deletions(-)
> 
> diff --git a/opensm/include/iba/ib_types.h b/opensm/include/iba/ib_types.h
> index 649ef1c..a026ac7 100644
> --- a/opensm/include/iba/ib_types.h
> +++ b/opensm/include/iba/ib_types.h
> @@ -7143,9 +7143,11 @@ typedef struct _ib_mad_notice_attr	// Total Size calc  Accumulated
>  
>  		struct _ntc_144 {
>  			ib_net16_t pad1;
> -			ib_net16_t lid;	// lid where capability mask changed
> -			ib_net16_t pad2;
> -			ib_net32_t new_cap_mask;	// new capability mask
> +			ib_net16_t lid;             // lid where change occured
> +			uint8_t    pad2;            // reserved
> +			uint8_t    local_changes;   // 7b reserved 1b local changes
> +			ib_net32_t new_cap_mask;    // new capability mask
> +			ib_net16_t change_flgs;     // 13b reserved 3b change flags

Should this be padded out as in the 1.2.1 spec ?

-- Hal

>  		} PACK_SUFFIX ntc_144;
>  
>  		struct _ntc_145 {
> @@ -7205,6 +7207,14 @@ typedef struct _ib_mad_notice_attr	// Total Size calc  Accumulated
>  } PACK_SUFFIX ib_mad_notice_attr_t;
>  #include <complib/cl_packoff.h>
>  
> +/**
> + * Trap 144 masks
> + */
> +#define TRAP_144_MASK_OTHER_LOCAL_CHANGES      0x01
> +#define TRAP_144_MASK_LINK_SPEED_ENABLE_CHANGE (CL_HTON16(0x0004))
> +#define TRAP_144_MASK_LINK_WIDTH_ENABLE_CHANGE (CL_HTON16(0x0002))
> +#define TRAP_144_MASK_NODE_DESCRIPTION_CHANGE  (CL_HTON16(0x0001))

> +
>  /****f* IBA Base: Types/ib_notice_is_generic
>  * NAME
>  *	ib_notice_is_generic



More information about the general mailing list