RDMA/ocrdma: Support RoCE-v2 in the RC path
authorDevesh Sharma <devesh.sharma@avagotech.com>
Thu, 28 Jan 2016 13:59:58 +0000 (08:59 -0500)
committerDoug Ledford <dledford@redhat.com>
Mon, 29 Feb 2016 22:12:10 +0000 (17:12 -0500)
commitbcf117e2cf6f451b46780e0660e9ae7ab33a33ea
tree15e742febea9836d3e9991c04a3986b9b3de656b
parent6b0626679d81626eac47cba7940f1435ec480b2e
RDMA/ocrdma: Support RoCE-v2 in the RC path

This patch implements following changes to support RoCE-v2
in the RC path:

* Get the GID-type for a given sgid.
* Based on the GID-type get IPv4/IPv6 L3-address
  and give those to underlying device.
* Resolve and provide network header type to device.

Signed-off-by: Somnath Kotur <somnath.kotur@avagotech.com>
Signed-off-by: Devesh Sharma <devesh.sharma@avagotech.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/ocrdma/ocrdma_hw.c
drivers/infiniband/hw/ocrdma/ocrdma_sli.h