Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F174335357
D60216.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
745 B
Referenced Files
None
Subscribers
None
D60216.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
@@ -2225,14 +2225,19 @@
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;
+ /*
+ * In head writeback mode the hardware reports the index of
+ * the next descriptor it will process. Start from 0, so
+ * that the first credits update does not count a descriptor
+ * that was never processed.
+ */
+ txr->tx_cidx_processed = 0;
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Oct 3, 12:04 PM (4 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40113551
Default Alt Text
D60216.diff (745 B)
Attached To
Mode
D60216: iavf: fix the first TX credits update in head writeback mode
Attached
Detach File
Event Timeline
Log In to Comment