Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177721836
D61715.1795130204.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
D61715.1795130204.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 19, 11:16 PM (6 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41854804
Default Alt Text
D61715.1795130204.diff (1 KB)
Attached To
Mode
D61715: ixl/iavf: Start the head write-back completion index at the head
Attached
Detach File
Event Timeline