diff -Nru libibverbs-1.1.8/debian/changelog libibverbs-1.1.8/debian/changelog --- libibverbs-1.1.8/debian/changelog 2014-08-08 08:59:18.000000000 -0300 +++ libibverbs-1.1.8/debian/changelog 2015-05-07 16:26:04.000000000 -0300 @@ -1,3 +1,9 @@ +libibverbs (1.1.8-1ubuntu2) wily; urgency=medium + + * Add checksum offload support capability (LP: #1409904) + + -- Rafael David Tinoco (Inaddy) Wed, 29 Apr 2015 21:07:34 -0300 + libibverbs (1.1.8-1ubuntu1) utopic; urgency=medium * Merge with Debian; remaining changes: diff -Nru libibverbs-1.1.8/debian/patches/Add-checksum-offload-support-capability.patch libibverbs-1.1.8/debian/patches/Add-checksum-offload-support-capability.patch --- libibverbs-1.1.8/debian/patches/Add-checksum-offload-support-capability.patch 1969-12-31 21:00:00.000000000 -0300 +++ libibverbs-1.1.8/debian/patches/Add-checksum-offload-support-capability.patch 2015-05-07 16:25:09.000000000 -0300 @@ -0,0 +1,49 @@ +Description: Add checksum offload support capability flag + +Add a device capability flag IB_DEVICE_IP_SUM to denote checksum offload +support. Devices should set this flag if they support insertion of IP, TCP +and UDP checksums on outgoing IP packets sent over IB UD or ETH RAW_PACKET QPs. + +In addition add a send flag IBV_SEND_IP_CSUM to utilize this capability. + +Signed-off-by: Eyal Perry +Signed-off-by: Moshe Lazer +Signed-off-by: Or Gerlitz + +Origin: https://patchwork.kernel.org/patch/5572101/ +Bug-Ubuntu: https://launchpad.net/bugs/1409904 +Last-Update: 2015-02-09 + +--- libibverbs-1.1.8.orig/include/infiniband/verbs.h ++++ libibverbs-1.1.8/include/infiniband/verbs.h +@@ -115,6 +115,7 @@ enum ibv_device_cap_flags { + IBV_DEVICE_RC_RNR_NAK_GEN = 1 << 12, + IBV_DEVICE_SRQ_RESIZE = 1 << 13, + IBV_DEVICE_N_NOTIFY_CQ = 1 << 14, ++ IBV_DEVICE_IP_CSUM = 1 << 18, + IBV_DEVICE_XRC = 1 << 20, + IBV_DEVICE_MANAGED_FLOW_STEERING = 1 << 29 + }; +@@ -627,7 +628,8 @@ enum ibv_send_flags { + IBV_SEND_FENCE = 1 << 0, + IBV_SEND_SIGNALED = 1 << 1, + IBV_SEND_SOLICITED = 1 << 2, +- IBV_SEND_INLINE = 1 << 3 ++ IBV_SEND_INLINE = 1 << 3, ++ IBV_SEND_IP_CSUM = 1 << 4 + }; + + struct ibv_sge { +--- libibverbs-1.1.8.orig/man/ibv_post_send.3 ++++ libibverbs-1.1.8/man/ibv_post_send.3 +@@ -98,6 +98,10 @@ The attribute send_flags describes the p + .TP + .B IBV_SEND_INLINE \fR Send data in given gather list as inline data + in a send WQE. Valid only for Send and RDMA Write. The L_Key will not be checked. ++.TP ++.B IBV_SEND_IP_CSUM \fR Offload the IP and TCP/UDP checksum calculation. ++Valid only for QPs with Transport Service Type \fBIBV_QPT_UD\fR or \fBIBV_QPT_RAW_PACKET\fR. ++This feature supported only when \fBIBV_DEVICE_IP_CSUM\fR the flag is set in the device capability flags. + .SH "RETURN VALUE" + .B ibv_post_send() + returns 0 on success, or the value of errno on failure (which indicates the failure reason). diff -Nru libibverbs-1.1.8/debian/patches/series libibverbs-1.1.8/debian/patches/series --- libibverbs-1.1.8/debian/patches/series 1969-12-31 21:00:00.000000000 -0300 +++ libibverbs-1.1.8/debian/patches/series 2015-05-07 16:25:09.000000000 -0300 @@ -0,0 +1 @@ +Add-checksum-offload-support-capability.patch