IB/core: Initialize UD header structure with IP and UDP headers
authorMoni Shoua <monis@mellanox.com>
Wed, 23 Dec 2015 12:56:56 +0000 (14:56 +0200)
committerDoug Ledford <dledford@redhat.com>
Wed, 23 Dec 2015 15:39:53 +0000 (10:39 -0500)
commit25f40220e56b507fce186985c0ed2967b7f04596
treefa7d032097203b089d308d4e9226453013da1d41
parent045959db65c67d7189dc89ecddb5fa10aafa449d
IB/core: Initialize UD header structure with IP and UDP headers

ib_ud_header_init() is used to format InfiniBand headers
in a buffer up to (but not with) BTH. For RoCE UDP ENCAP it is
required that this function would be able to build also IP and UDP
headers.

Signed-off-by: Moni Shoua <monis@mellanox.com>
Signed-off-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/ud_header.c
drivers/infiniband/hw/mlx4/qp.c
drivers/infiniband/hw/mthca/mthca_qp.c
include/rdma/ib_pack.h