Skip to content

Commit 0b8a8aa

Browse files
Dennis Dalessandrodledford
authored andcommitted
IB/rdmavt: Add the start of capability flags
Drivers will need a set of flags to dictate behavior to rdmavt. This patch adds a placeholder and a spot for it to live, as well as a few flags that will be used. Reviewed-by: Ira Weiny <[email protected]> Reviewed-by: Mike Marciniszyn <[email protected]> Signed-off-by: Dennis Dalessandro <[email protected]> Signed-off-by: Doug Ledford <[email protected]>
1 parent b534875 commit 0b8a8aa

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

include/rdma/rdma_vt.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,16 @@
5555

5656
#include "ib_verbs.h"
5757

58+
/*
59+
* For some of the IBTA objects there will likely be some
60+
* initializations required. We need flags to determine whether it is OK
61+
* for rdmavt to do this or not. This does not imply any functions of a
62+
* partiuclar IBTA object are overridden.
63+
*/
64+
#define RVT_FLAG_MR_INIT_DRIVER BIT(1)
65+
#define RVT_FLAG_QP_INIT_DRIVER BIT(2)
66+
#define RVT_FLAG_CQ_INIT_DRIVER BIT(3)
67+
5868
/*
5969
* For Memory Regions. This stuff should probably be moved into rdmavt/mr.h once
6070
* drivers no longer need access to the MR directly.
@@ -429,6 +439,8 @@ struct rvt_dev_info {
429439
/* Internal use */
430440
int n_pds_allocated;
431441
spinlock_t n_pds_lock; /* Protect pd allocated count */
442+
443+
int flags;
432444
};
433445

434446
static inline struct rvt_pd *ibpd_to_rvtpd(struct ib_pd *ibpd)

0 commit comments

Comments
 (0)