]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6efa6478a05b429e1debe3e67eb5dbbb95a87398
treefa7d032097203b089d308d4e9226453013da1d41
parentb168a25da509cfbfc1b759ff1a6810591f2baabd
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