[openib-general] [PATCH] vendor: identify rmpp mads

Sean Hefty mshefty at ichips.intel.com
Thu Mar 16 09:47:22 PST 2006


Ofer Gigi wrote:
> Same thing should be applied in the function below in
> /drivers/infiniband/core/mad.c
> 
> Thanks!
> Ofer 
> 
> static inline int is_rmpp_data(struct ib_mad *mad)
> {
>         /* check if has rmpp header */
>         if (mad->mad_hdr.mgmt_class != IB_MGMT_CLASS_SUBN_ADM && 
>             mad->mad_hdr.mgmt_class != IB_MCLASS_DEV_MGMT &&
>             (mad->mad_hdr.mgmt_class < IB_MGMT_CLASS_VENDOR_RANGE2_START
> ||
>              mad->mad_hdr.mgmt_class > IB_MGMT_CLASS_VENDOR_RANGE2_END))
>                 return 0;

Can you explain what is wrong with the existing RMPP checks?

- Sean



More information about the general mailing list