mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
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 <[email protected]>. Signed-off-by: Or Gerlitz <[email protected]> Reviewed-by: Sean Hefty <[email protected]> Signed-off-by: Roland Dreier <[email protected]>
This commit is contained in:
parent
3eae7c9f97
commit
d927d505c5
6 changed files with 7 additions and 6 deletions
|
|
@ -518,6 +518,7 @@ enum ib_wc_flags {
|
|||
IB_WC_GRH = 1,
|
||||
IB_WC_WITH_IMM = (1<<1),
|
||||
IB_WC_WITH_INVALIDATE = (1<<2),
|
||||
IB_WC_IP_CSUM_OK = (1<<3),
|
||||
};
|
||||
|
||||
struct ib_wc {
|
||||
|
|
@ -538,7 +539,6 @@ struct ib_wc {
|
|||
u8 sl;
|
||||
u8 dlid_path_bits;
|
||||
u8 port_num; /* valid only for DR SMPs on switches */
|
||||
int csum_ok;
|
||||
};
|
||||
|
||||
enum ib_cq_notify_flags {
|
||||
|
|
|
|||
Loading…
Reference in a new issue