staging/rdma/hfi1: use u8 for vl/sl
authorMike Marciniszyn <mike.marciniszyn@intel.com>
Sun, 14 Feb 2016 20:45:27 +0000 (12:45 -0800)
committerDoug Ledford <dledford@redhat.com>
Fri, 11 Mar 2016 01:38:13 +0000 (20:38 -0500)
The use should match the universal container size.

Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/staging/rdma/hfi1/verbs.c

index 229dde5fbde61c2340684f0320e1543dd8a39bbb..a4f8b26f76fb41d552e11480e7181a2134fb1c2a 100644 (file)
@@ -809,7 +809,7 @@ int hfi1_verbs_send_pio(struct rvt_qp *qp, struct hfi1_pkt_state *ps,
        struct hfi1_pportdata *ppd = ps->ppd;
        u32 *hdr = (u32 *)&ps->s_txreq->phdr.hdr;
        u64 pbc_flags = 0;
-       u32 sc5;
+       u8 sc5;
        unsigned long flags = 0;
        struct send_context *sc;
        struct pio_buf *pbuf;
@@ -825,7 +825,7 @@ int hfi1_verbs_send_pio(struct rvt_qp *qp, struct hfi1_pkt_state *ps,
                goto bail;
        }
        if (likely(pbc == 0)) {
-               u32 vl = sc_to_vlt(dd_from_ibdev(qp->ibqp.device), sc5);
+               u8 vl = sc_to_vlt(dd_from_ibdev(qp->ibqp.device), sc5);
                /* set PBC_DC_INFO bit (aka SC[4]) in pbc_flags */
                pbc_flags |= (!!(sc5 & 0x10)) << PBC_DC_INFO_SHIFT;
                pbc = create_pbc(ppd, pbc_flags, qp->srate_mbps, vl, plen);