aboutsummaryrefslogtreecommitdiffstats
path: root/include/rdma/ib_verbs.h
diff options
context:
space:
mode:
authorOr Gerlitz <ogerlitz@mellanox.com>2012-01-11 12:03:51 -0500
committerRoland Dreier <roland@purestorage.com>2012-03-08 15:34:27 -0500
commitd927d505c59a0c7353343174e6225c43c61fba6d (patch)
tree8fe928291acb9c6975f7c03514566933edeef7d5 /include/rdma/ib_verbs.h
parent3eae7c9f97415ac1f5ab5db4eeb03cde689eb427 (diff)
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>
Diffstat (limited to 'include/rdma/ib_verbs.h')
-rw-r--r--include/rdma/ib_verbs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/rdma/ib_verbs.h b/include/rdma/ib_verbs.h
index ff22a73e0937..c3cca5a4dacd 100644
--- a/include/rdma/ib_verbs.h
+++ b/include/rdma/ib_verbs.h
@@ -518,6 +518,7 @@ enum ib_wc_flags {
518 IB_WC_GRH = 1, 518 IB_WC_GRH = 1,
519 IB_WC_WITH_IMM = (1<<1), 519 IB_WC_WITH_IMM = (1<<1),
520 IB_WC_WITH_INVALIDATE = (1<<2), 520 IB_WC_WITH_INVALIDATE = (1<<2),
521 IB_WC_IP_CSUM_OK = (1<<3),
521}; 522};
522 523
523struct ib_wc { 524struct ib_wc {
@@ -538,7 +539,6 @@ struct ib_wc {
538 u8 sl; 539 u8 sl;
539 u8 dlid_path_bits; 540 u8 dlid_path_bits;
540 u8 port_num; /* valid only for DR SMPs on switches */ 541 u8 port_num; /* valid only for DR SMPs on switches */
541 int csum_ok;
542}; 542};
543 543
544enum ib_cq_notify_flags { 544enum ib_cq_notify_flags {