diff options
author | Sebastian Sanchez <sebastian.sanchez@intel.com> | 2018-02-01 10:46:31 -0800 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2018-02-01 15:43:29 -0700 |
commit | bdaf96f6500880401fe692cd0bf57afb596b135c (patch) | |
tree | b5117c177ea94b87fc5c531a1b3693bb69485868 /drivers/infiniband/hw/hfi1/verbs.h | |
parent | 6d6b8848c882b22e3170cc9f217101773e8bd8d2 (diff) | |
download | linux-stable-bdaf96f6500880401fe692cd0bf57afb596b135c.tar.gz linux-stable-bdaf96f6500880401fe692cd0bf57afb596b135c.tar.bz2 linux-stable-bdaf96f6500880401fe692cd0bf57afb596b135c.zip |
IB/hfi1: Look up ibport using a pointer in receive path
In the receive path, hfi1_ibport is looked up by indexing into an
array. A profile shows this to be expensive. The receive context
data has a pointer to the ibport data, use that pointer instead.
Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Sebastian Sanchez <sebastian.sanchez@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/hw/hfi1/verbs.h')
-rw-r--r-- | drivers/infiniband/hw/hfi1/verbs.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/hfi1/verbs.h b/drivers/infiniband/hw/hfi1/verbs.h index ffc933ea146f..4ea040df334b 100644 --- a/drivers/infiniband/hw/hfi1/verbs.h +++ b/drivers/infiniband/hw/hfi1/verbs.h @@ -358,8 +358,7 @@ void hfi1_do_send(struct rvt_qp *qp, bool in_thread); void hfi1_send_complete(struct rvt_qp *qp, struct rvt_swqe *wqe, enum ib_wc_status status); -void hfi1_send_rc_ack(struct hfi1_ctxtdata *rcd, struct rvt_qp *qp, - bool is_fecn); +void hfi1_send_rc_ack(struct hfi1_packet *packet, bool is_fecn); int hfi1_make_rc_req(struct rvt_qp *qp, struct hfi1_pkt_state *ps); |