IB: Change CQE "csum_ok" field to a bit flag
authorOr Gerlitz <ogerlitz@mellanox.com>
Wed, 11 Jan 2012 17:03:51 +0000 (19:03 +0200)
committerRoland Dreier <roland@purestorage.com>
Thu, 8 Mar 2012 20:34:27 +0000 (12:34 -0800)
commitd927d505c59a0c7353343174e6225c43c61fba6d
tree8fe928291acb9c6975f7c03514566933edeef7d5
parent3eae7c9f97415ac1f5ab5db4eeb03cde689eb427
IB: Change CQE "csum_ok" field to a bit flag

Use a bit in wc_flags rather then a whole integer to hold the
"checksum OK" flag.  By itself, this change doesn't reduce the size of
struct ib_wc on 64bit machines -- it stays on 56 bytes because of
padding.  However, it will allow to add more fields in the future
without enlarging the struct.  Also, it will let us have a unified
approach with future libibverbs checksum offload reporting, because a
bit flag doesn't break the library ABI.

This patch was suggested during conversation with Liran Liss
<liranl@mellanox.com>.

Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Reviewed-by: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/mlx4/cq.c
drivers/infiniband/hw/mthca/mthca_cq.c
drivers/infiniband/hw/qib/qib_rc.c
drivers/infiniband/hw/qib/qib_uc.c
drivers/infiniband/ulp/ipoib/ipoib_ib.c
include/rdma/ib_verbs.h