summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/hfi1/sdma.h
diff options
context:
space:
mode:
authorMichael J. Ruhl <michael.j.ruhl@intel.com>2018-09-10 09:39:20 -0700
committerJason Gunthorpe <jgg@mellanox.com>2018-09-11 10:05:17 -0600
commit3ca633f1ff7b1c1e8653181352485889b5636a12 (patch)
treee059fdf147952822880305ee76808017555e0c5c /drivers/infiniband/hw/hfi1/sdma.h
parent28a9a9e83ceae2cee25b9af9ad20d53aaa9ab951 (diff)
downloadlinux-stable-3ca633f1ff7b1c1e8653181352485889b5636a12.tar.gz
linux-stable-3ca633f1ff7b1c1e8653181352485889b5636a12.tar.bz2
linux-stable-3ca633f1ff7b1c1e8653181352485889b5636a12.zip
IB/hfi1: Right size user_sdma sequence numbers and related variables
Hardware limits the maximum number of packets to u16 packets. Match that size for all relevant sequence numbers in the user_sdma engine. Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com> Signed-off-by: Michael J. Ruhl <michael.j.ruhl@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/sdma.h')
-rw-r--r--drivers/infiniband/hw/hfi1/sdma.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/hfi1/sdma.h b/drivers/infiniband/hw/hfi1/sdma.h
index d2da2e651600..c076eef081e8 100644
--- a/drivers/infiniband/hw/hfi1/sdma.h
+++ b/drivers/infiniband/hw/hfi1/sdma.h
@@ -849,7 +849,7 @@ int sdma_send_txreq(struct sdma_engine *sde,
int sdma_send_txlist(struct sdma_engine *sde,
struct iowait *wait,
struct list_head *tx_list,
- u32 *count);
+ u16 *count_out);
int sdma_ahg_alloc(struct sdma_engine *sde);
void sdma_ahg_free(struct sdma_engine *sde, int ahg_index);