[ofw] [PATCH] IPoIB - remove unused code

Reuven Amitai reuven at mellanox.co.il
Thu Nov 13 04:30:36 PST 2008


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20081113/b510fddb/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: remove_dead_code.patch
Type: application/octet-stream
Size: 1161 bytes
Desc: remove_dead_code.patch
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20081113/b510fddb/attachment.obj>


More information about the ofw mailing list