IB/mlx4: Enable send of RoCE QP1 packets with IP/UDP headers
authorMoni Shoua <monis@mellanox.com>
Thu, 14 Jan 2016 15:50:41 +0000 (17:50 +0200)
committerDoug Ledford <dledford@redhat.com>
Tue, 19 Jan 2016 20:35:01 +0000 (15:35 -0500)
commit3ef967a4affeef7bb3b7713dcfed6518b99737c6
tree0c05ff19aa4db0b0016bb7f0fdcd0bfc5fd36261
parent71a39bbbfc5931310073ecbbdbe6d0fa92501fe4
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>
drivers/infiniband/core/ud_header.c
drivers/infiniband/hw/mlx4/qp.c
include/rdma/ib_pack.h