mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-10-28 11:25:21 +01:00
enic: Clean the completion ring matching each queue
The transmit stop loop cleaned the receive completion ring, and the receive stop loop cleaned the transmit completion ring. Use enic_cq_wq() for transmit queues and enic_cq_rq() for receive queues, matching the queue indices used by the remaining ring bookkeeping. MFC after: 2 weeks Sponsored by: BBOX.io
This commit is contained in:
1 parent
90ad63b540
commit
be36ceea1b
1 file changed
+2
-2
@@ -945,7 +945,7 @@ enic_stop(if_ctx_t ctx)
|
||||
for (index = 0; index < scctx->isc_ntxqsets; index++) {
|
||||
enic_stop_wq(enic, index);
|
||||
vnic_wq_clean(&enic->wq[index]);
|
||||
vnic_cq_clean(&enic->cq[enic_cq_rq(enic, index)]);
|
||||
vnic_cq_clean(&enic->cq[enic_cq_wq(enic, index)]);
|
||||
|
||||
wq = &softc->enic.wq[index];
|
||||
wq->ring.desc_avail = wq->ring.desc_count - 1;
|
||||
@@ -961,7 +961,7 @@ enic_stop(if_ctx_t ctx)
|
||||
for (index = 0; index < scctx->isc_nrxqsets; index++) {
|
||||
enic_stop_rq(enic, index);
|
||||
vnic_rq_clean(&enic->rq[index]);
|
||||
vnic_cq_clean(&enic->cq[enic_cq_wq(enic, index)]);
|
||||
vnic_cq_clean(&enic->cq[enic_cq_rq(enic, index)]);
|
||||
|
||||
rq = &softc->enic.rq[index];
|
||||
cq_rq = enic_cq_rq(&softc->enic, index);
|
||||
|
||||
Reference in new issue
Block a user