android_kernel_lge_bullhead/include/rdma
Jason Gunthorpe e9a1e1cc1c RDMA/core: Fix incorrect structure packing for booleans
commit 55efcfcd7776165b294f8b5cd6e05ca00ec89b7c upstream.

The RDMA core uses ib_pack() to convert from unpacked CPU structs
to on-the-wire bitpacked structs.

This process requires that 1 bit fields are declared as u8 in the
unpacked struct, otherwise the packing process does not read the
value properly and the packed result is wired to 0. Several
places wrongly used int.

Crucially this means the kernel has never, set reversible
correctly in the path record request. It has always asked for
irreversible paths even if the ULP requests otherwise.

When the kernel is used with a SM that supports this feature, it
completely breaks communication management if reversible paths are
not properly requested.

The only reason this ever worked is because opensm ignores the
reversible bit.

Fixes: 1da177e4c3 ("Linux-2.6.12-rc2")
Signed-off-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Signed-off-by: Willy Tarreau <w@1wt.eu>
2017-06-08 00:47:02 +02:00
..
ib.h IB/security: Restrict use of the write() interface 2016-08-27 11:40:21 +02:00
ib_addr.h rdma/core: Fix sparse warnings 2012-01-04 09:17:45 -08:00
ib_cache.h IB/core: Add ib_find_exact_cached_pkey() 2012-09-30 20:33:30 -07:00
ib_cm.h IB/core: Move CM_xxx_ATTR_ID macros from cm_msgs.h to ib_cm.h 2012-07-08 18:05:06 -07:00
ib_fmr_pool.h RDMA: Improve include file coding style 2008-07-14 23:48:44 -07:00
ib_mad.h IB/core: Fix IB_SA_COMP_MASK macro 2012-05-18 17:16:11 -07:00
ib_marshall.h RDMA/cma: Export rdma cm interface to userspace 2006-12-12 11:50:22 -08:00
ib_pack.h IB/core: Add VLAN support for IBoE 2010-10-25 10:20:39 -07:00
ib_pma.h IB/pma: Add include file for IBA performance counters definitions 2011-07-18 21:04:35 -07:00
ib_sa.h RDMA/core: Fix incorrect structure packing for booleans 2017-06-08 00:47:02 +02:00
ib_smi.h IB: Remove __constant_{endian} uses 2009-01-17 17:11:57 -08:00
ib_umem.h IB: expand ib_umem_get() prototype 2008-04-29 08:06:12 -07:00
ib_verbs.h IB/core: Add "type 2" memory windows support 2013-02-21 11:51:45 -08:00
iw_cm.h RDMA/iwcm: Propagate ird/ord values upwards 2011-10-06 09:37:52 -07:00
rdma_cm.h RDMA/cma: Allow user to restrict listens to bound address family 2012-07-08 18:02:24 -07:00
rdma_cm_ib.h RDMA: Fix license text 2008-07-14 23:48:43 -07:00
rdma_netlink.h UAPI: (Scripted) Disintegrate include/rdma 2012-11-22 00:43:10 -08:00