This reverts the commit:

commit 7fc6cd3037f07190e483a047f17d37b6bebbb2b3
Author: Smith, Stan <[email protected]>
Date:   Fri May 21 10:49:27 2010 -0700

    ib_types.h add debug assert

    Add a debug assert to catch incorrect MAD attr offset size.
    This proved to be useful in catching incorrect struct sizes as MAD attrs 
need to be a multiple of 8 bytes.

Since not all SA attributes should be multiple of 8 bytes (specifically
InformInfo).

The issue was discovered by Hal Rosenstock.

Signed-off-by: Sasha Khapyorsky <[email protected]>
---
 opensm/include/iba/ib_types.h |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/opensm/include/iba/ib_types.h b/opensm/include/iba/ib_types.h
index 203c319..e1bc102 100644
--- a/opensm/include/iba/ib_types.h
+++ b/opensm/include/iba/ib_types.h
@@ -4395,7 +4395,6 @@ static inline uint32_t OSM_API ib_get_attr_size(IN const 
ib_net16_t attr_offset)
 
 static inline ib_net16_t OSM_API ib_get_attr_offset(IN const uint32_t 
attr_size)
 {
-       CL_ASSERT((attr_size & 0x07) == 0);
        return (cl_hton16((uint16_t) (attr_size >> 3)));
 }
 
-- 
1.7.0.4

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to