IB/rdmavt, IB/hfi1: Create device dependent s_flags
Move some s_flags defines out of rdmavt and into hfi1 because they are hfi1 specific and therefore should remain in the driver instead of bubbling up to rdmavt. Document device specific ranges in rdmavt and remap those in hfi1. Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Signed-off-by: Mike Marciniszyn <mike.marciniszyn@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>
This commit is contained in:

gecommit door
Jason Gunthorpe

bovenliggende
32e3d97079
commit
2e2ba09e48
@@ -1007,7 +1007,7 @@ static int pio_wait(struct rvt_qp *qp,
|
||||
int was_empty;
|
||||
|
||||
dev->n_piowait += !!(flag & RVT_S_WAIT_PIO);
|
||||
dev->n_piodrain += !!(flag & RVT_S_WAIT_PIO_DRAIN);
|
||||
dev->n_piodrain += !!(flag & HFI1_S_WAIT_PIO_DRAIN);
|
||||
qp->s_flags |= flag;
|
||||
was_empty = list_empty(&sc->piowait);
|
||||
iowait_queue(ps->pkts_sent, &priv->s_iowait,
|
||||
@@ -1376,7 +1376,7 @@ int hfi1_verbs_send(struct rvt_qp *qp, struct hfi1_pkt_state *ps)
|
||||
return pio_wait(qp,
|
||||
ps->s_txreq->psc,
|
||||
ps,
|
||||
RVT_S_WAIT_PIO_DRAIN);
|
||||
HFI1_S_WAIT_PIO_DRAIN);
|
||||
return sr(qp, ps, 0);
|
||||
}
|
||||
|
||||
|
Verwijs in nieuw issue
Block a user