aboutsummaryrefslogtreecommitdiffstats
path: root/include/rdma
diff options
context:
space:
mode:
authorMoni Shoua <monis@mellanox.com>2016-01-14 10:50:41 -0500
committerDoug Ledford <dledford@redhat.com>2016-01-19 15:35:01 -0500
commit3ef967a4affeef7bb3b7713dcfed6518b99737c6 (patch)
tree0c05ff19aa4db0b0016bb7f0fdcd0bfc5fd36261 /include/rdma
parent71a39bbbfc5931310073ecbbdbe6d0fa92501fe4 (diff)
IB/mlx4: Enable send of RoCE QP1 packets with IP/UDP headers
RoCEv2 packets are sent over IP/UDP protocols. The mlx4 driver uses a type of RAW QP to send packets for QP1 and therefore needs to build the network headers below BTH in software. This patch adds option to build QP1 packets with IP and UDP headers if RoCEv2 is requested. Signed-off-by: Moni Shoua <monis@mellanox.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'include/rdma')
-rw-r--r--include/rdma/ib_pack.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/rdma/ib_pack.h b/include/rdma/ib_pack.h
index a1930819b97e..0f3daae44bf9 100644
--- a/include/rdma/ib_pack.h
+++ b/include/rdma/ib_pack.h
@@ -234,7 +234,7 @@ struct ib_unpacked_ip4 {
234 __be16 frag_off; 234 __be16 frag_off;
235 u8 ttl; 235 u8 ttl;
236 u8 protocol; 236 u8 protocol;
237 __be16 check; 237 __sum16 check;
238 __be32 saddr; 238 __be32 saddr;
239 __be32 daddr; 239 __be32 daddr;
240}; 240};
@@ -280,7 +280,7 @@ void ib_unpack(const struct ib_field *desc,
280 void *buf, 280 void *buf,
281 void *structure); 281 void *structure);
282 282
283__be16 ib_ud_ip4_csum(struct ib_ud_header *header); 283__sum16 ib_ud_ip4_csum(struct ib_ud_header *header);
284 284
285int ib_ud_header_init(int payload_bytes, 285int ib_ud_header_init(int payload_bytes,
286 int lrh_present, 286 int lrh_present,