summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband
diff options
context:
space:
mode:
authorAditya Sarwade <asarwade@vmware.com>2017-08-30 00:51:29 +0200
committerDoug Ledford <dledford@redhat.com>2017-08-31 14:35:08 +0200
commit72f9b089ecd2cc2194d27cbb14fd80a0b1472e89 (patch)
treefaf4dcc21a971f63acf130cc57c2e230dfcb54b3 /drivers/infiniband
parentIB/core: Add might_sleep() annotation to ib_init_ah_from_wc() (diff)
downloadlinux-72f9b089ecd2cc2194d27cbb14fd80a0b1472e89.tar.xz
linux-72f9b089ecd2cc2194d27cbb14fd80a0b1472e89.zip
RDMA/vmw_pvrdma: Report network header type in WC
We should report the network header type in the work completion so that the kernel can infer the right RoCE type headers. Reviewed-by: Bryan Tan <bryantan@vmware.com> Signed-off-by: Aditya Sarwade <asarwade@vmware.com> Signed-off-by: Adit Ranadive <aditr@vmware.com> Reviewed-by: Yuval Shaia <yuval.shaia@oracle.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r--drivers/infiniband/hw/vmw_pvrdma/pvrdma_cq.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/vmw_pvrdma/pvrdma_cq.c b/drivers/infiniband/hw/vmw_pvrdma/pvrdma_cq.c
index 90aa326fd7c0..8a12dc73b68e 100644
--- a/drivers/infiniband/hw/vmw_pvrdma/pvrdma_cq.c
+++ b/drivers/infiniband/hw/vmw_pvrdma/pvrdma_cq.c
@@ -389,6 +389,7 @@ retry:
wc->dlid_path_bits = cqe->dlid_path_bits;
wc->port_num = cqe->port_num;
wc->vendor_err = cqe->vendor_err;
+ wc->network_hdr_type = cqe->network_hdr_type;
/* Update shared ring state */
pvrdma_idx_ring_inc(&cq->ring_state->rx.cons_head, cq->ibcq.cqe);