aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw
diff options
context:
space:
mode:
authorAditya Sarwade <asarwade@vmware.com>2017-08-29 15:51:29 -0700
committerDoug Ledford <dledford@redhat.com>2017-08-31 08:35:08 -0400
commit72f9b089ecd2cc2194d27cbb14fd80a0b1472e89 (patch)
treefaf4dcc21a971f63acf130cc57c2e230dfcb54b3 /drivers/infiniband/hw
parentIB/core: Add might_sleep() annotation to ib_init_ah_from_wc() (diff)
downloadlinux-dev-72f9b089ecd2cc2194d27cbb14fd80a0b1472e89.tar.xz
linux-dev-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/hw')
-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);