summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/erdma/erdma_verbs.h
diff options
context:
space:
mode:
authorCheng Xu <chengyou@linux.alibaba.com>2022-11-16 10:31:06 +0800
committerJason Gunthorpe <jgg@nvidia.com>2022-11-24 14:58:52 -0400
commit54d8fffc2a500953ba90ff9462ae06bb05ca2354 (patch)
tree53207772da80bfd406711eab165484d91548534e /drivers/infiniband/hw/erdma/erdma_verbs.h
parent35765dccaf3485575a4420da529c72484c980345 (diff)
downloadlinux-stable-54d8fffc2a500953ba90ff9462ae06bb05ca2354.tar.gz
linux-stable-54d8fffc2a500953ba90ff9462ae06bb05ca2354.tar.bz2
linux-stable-54d8fffc2a500953ba90ff9462ae06bb05ca2354.zip
RDMA/erdma: Implement the lifecycle of reflushing work for each QP
Each QP has a work for reflushing purpose. In the work, driver will report the latest pi to hardware. Link: https://lore.kernel.org/r/20221116023107.82835-3-chengyou@linux.alibaba.com Signed-off-by: Cheng Xu <chengyou@linux.alibaba.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'drivers/infiniband/hw/erdma/erdma_verbs.h')
-rw-r--r--drivers/infiniband/hw/erdma/erdma_verbs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/erdma/erdma_verbs.h b/drivers/infiniband/hw/erdma/erdma_verbs.h
index a5574f0252bb..9f341d032069 100644
--- a/drivers/infiniband/hw/erdma/erdma_verbs.h
+++ b/drivers/infiniband/hw/erdma/erdma_verbs.h
@@ -197,6 +197,8 @@ struct erdma_qp {
struct erdma_cep *cep;
struct rw_semaphore state_lock;
+ struct delayed_work reflush_dwork;
+
union {
struct erdma_kqp kern_qp;
struct erdma_uqp user_qp;