[ofw] [PATCH] IPoIB - remove unused code

Alex Estrin alex.estrin at qlogic.com
Thu Nov 13 05:14:27 PST 2008


These functions are fixed and used in CM code.

Thanks,
Alex.

> -----Original Message-----
> From: ofw-bounces at lists.openfabrics.org 
> [mailto:ofw-bounces at lists.openfabrics.org] On Behalf Of Reuven Amitai
> Sent: Thursday, November 13, 2008 7:31 AM
> To: Tzachi Dar
> Cc: ofw at lists.openfabrics.org
> Subject: [ofw] [PATCH] IPoIB - remove unused code
> 
> Hi,
>  
> The patch remove unused functions. Please commit it to the 
> trunk, In case there will be another RC, please commit it 
> also to branch.
>  
> Thanks, Reuven.
>  
> >>>>>>>>>>>>>>>>>>>>>>>>
>  
> Index: ulp/ipoib/kernel/ipoib_xfr_mgr.h
> ===================================================================
> --- ulp/ipoib/kernel/ipoib_xfr_mgr.h (revision 1757)
> +++ ulp/ipoib/kernel/ipoib_xfr_mgr.h (working copy)
> @@ -89,43 +89,6 @@
>  #endif
>  
>  
> -/*
> - * Address accessors
> - */
> -
> -static inline uint8_t
> -ipoib_addr_get_flags(
> - IN  const ipoib_hw_addr_t* const  p_addr )
> -{
> - return (uint8_t)(cl_ntoh32( p_addr->flags_qpn ) >> 24);
> -}
> -
> -static inline void
> -ipoib_addr_set_flags(
> - IN    ipoib_hw_addr_t* const  p_addr,
> - IN  const uint8_t      flags )
> -{
> - p_addr->flags_qpn &= cl_ntoh32( 0xFFFFFF00 );
> - p_addr->flags_qpn |= cl_ntoh32( flags );
> -}
> -
> -static inline net32_t
> -ipoib_addr_get_qpn(
> - IN  const ipoib_hw_addr_t* const  p_addr )
> -{
> - return cl_ntoh32( cl_ntoh32( p_addr->flags_qpn ) >> 8 );
> -}
> -
> -static inline void
> -ipoib_addr_set_qpn(
> - IN    ipoib_hw_addr_t* const  p_addr,
> - IN  const net32_t      qpn )
> -{
> - p_addr->flags_qpn = cl_ntoh32( (cl_ntoh32(
> -  p_addr->flags_qpn ) & 0x000000FF ) | (cl_ntoh32( qpn ) << 8) );
> -}
> -
> -
>  /****f* IPOIB/ipoib_mac_from_sst_guid
>  * NAME
>  * ipoib_mac_from_sst_guid
> 
> 



More information about the ofw mailing list