IB/hfi1: Add a function to read next expected psn from hardware flow
authorKaike Wan <kaike.wan@intel.com>
Mon, 18 Mar 2019 16:58:40 +0000 (09:58 -0700)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 3 Apr 2019 18:27:30 +0000 (15:27 -0300)
commit6a40693a884dacae68c1771d369ad3be0594ba1c
tree881fb2598bae20a3e7035d389f984a04b078410d
parentf6f3f532556e4fcaa2d259fd04a800bfb4f9670d
IB/hfi1: Add a function to read next expected psn from hardware flow

This patch adds a function to read next expected KDETH PSN from hardware
flow to simplify the code.

Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Reviewed-by: Michael J. Ruhl <michael.j.ruhl@intel.com>
Signed-off-by: Kaike Wan <kaike.wan@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hfi1/tid_rdma.c