Message ID | 20101025161730.GA9335@mtldesk30 (mailing list archive) |
---|---|
State | Accepted, archived |
Headers | show |
diff --git a/drivers/infiniband/core/ud_header.c b/drivers/infiniband/core/ud_header.c index 7e5d224..bb7e192 100644 --- a/drivers/infiniband/core/ud_header.c +++ b/drivers/infiniband/core/ud_header.c @@ -241,7 +241,7 @@ void ib_ud_header_init(int payload_bytes, packet_length = (IB_LRH_BYTES + IB_BTH_BYTES + IB_DETH_BYTES + - grh_present ? IB_GRH_BYTES : 0 + + (grh_present ? IB_GRH_BYTES : 0) + payload_bytes + 4 + /* ICRC */ 3) / 4; /* round up */