Page MenuHomeFreeBSD

D61715.1795148639.diff
No OneTemporary

Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None

D61715.1795148639.diff

diff --git a/sys/dev/iavf/if_iavf_iflib.c b/sys/dev/iavf/if_iavf_iflib.c
--- a/sys/dev/iavf/if_iavf_iflib.c
+++ b/sys/dev/iavf/if_iavf_iflib.c
@@ -2539,14 +2539,14 @@
void
iavf_init_tx_cidx(struct iavf_vsi *vsi)
{
- if_softc_ctx_t scctx = vsi->shared;
struct iavf_tx_queue *tx_que;
int i;
for (i = 0, tx_que = vsi->tx_queues; i < vsi->num_tx_queues; i++, tx_que++) {
struct tx_ring *txr = &tx_que->txr;
- txr->tx_cidx_processed = scctx->isc_ntxd[0] - 1;
+ /* Next descriptor to complete (the head), not the last one. */
+ txr->tx_cidx_processed = 0;
}
}
diff --git a/sys/dev/ixl/ixl_txrx.c b/sys/dev/ixl/ixl_txrx.c
--- a/sys/dev/ixl/ixl_txrx.c
+++ b/sys/dev/ixl/ixl_txrx.c
@@ -795,14 +795,14 @@
void
ixl_init_tx_cidx(struct ixl_vsi *vsi)
{
- if_softc_ctx_t scctx = vsi->shared;
struct ixl_tx_queue *tx_que;
int i;
-
+
for (i = 0, tx_que = vsi->tx_queues; i < vsi->num_tx_queues; i++, tx_que++) {
struct tx_ring *txr = &tx_que->txr;
- txr->tx_cidx_processed = scctx->isc_ntxd[0] - 1;
+ /* Next descriptor to complete (the head), not the last one. */
+ txr->tx_cidx_processed = 0;
}
}

File Metadata

Mime Type
text/plain
Expires
Fri, Nov 20, 4:23 AM (11 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41854804
Default Alt Text
D61715.1795148639.diff (1 KB)

Event Timeline