diff options
author | Hiatt, Don | 2017-06-08 19:37:49 +0200 |
---|---|---|
committer | Doug Ledford | 2017-08-08 20:50:25 +0200 |
commit | 7db20ecd1d9700e2c240dee505162eb56ab55b5b (patch) | |
tree | 0e4d235e6c552bb8f9c708503d9aba0a102a7b93 /drivers/infiniband/sw | |
parent | IB/core: Change port_attr.sm_lid from 16 to 32 bits (diff) | |
download | kernel-qcow2-linux-7db20ecd1d9700e2c240dee505162eb56ab55b5b.tar.gz kernel-qcow2-linux-7db20ecd1d9700e2c240dee505162eb56ab55b5b.tar.xz kernel-qcow2-linux-7db20ecd1d9700e2c240dee505162eb56ab55b5b.zip |
IB/core: Change wc.slid from 16 to 32 bits
slid field in struct ib_wc is increased to 32 bits.
This enables core components to use larger LIDs if needed.
The user ABI is unchanged and return 16 bit values when queried.
Signed-off-by: Dasaratharaman Chandramouli <dasaratharaman.chandramouli@intel.com>
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Don Hiatt <don.hiatt@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/sw')
-rw-r--r-- | drivers/infiniband/sw/rdmavt/cq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/sw/rdmavt/cq.c b/drivers/infiniband/sw/rdmavt/cq.c index 0ae2ff8cf81e..0335a3df74d5 100644 --- a/drivers/infiniband/sw/rdmavt/cq.c +++ b/drivers/infiniband/sw/rdmavt/cq.c @@ -107,7 +107,7 @@ void rvt_cq_enter(struct rvt_cq *cq, struct ib_wc *entry, bool solicited) wc->uqueue[head].src_qp = entry->src_qp; wc->uqueue[head].wc_flags = entry->wc_flags; wc->uqueue[head].pkey_index = entry->pkey_index; - wc->uqueue[head].slid = entry->slid; + wc->uqueue[head].slid = ib_slid_cpu16(entry->slid); wc->uqueue[head].sl = entry->sl; wc->uqueue[head].dlid_path_bits = entry->dlid_path_bits; wc->uqueue[head].port_num = entry->port_num; |