Commit 3454667
xdp: tx_loop: change MAX_TIMEOUTS to 1 (#8775)
Once upon a time we used to spin without sleeping, and we flushed
batches after 500 empty spins on the receive channel. Then we added
sleeping to save CPU but kept MAX_TIMEOUTS too high.
When load is relatively low - like during banking - this can lead to a
non-full batch to be held for up to 500ms, which can cause slots to be
skipped.
Fix by bringing MAX_TIMEOUTS to 1 which means that during banking we'll
hold shreds for up to 1ms.
(cherry picked from commit f1f797e)
Co-authored-by: Alessandro Decina <[email protected]>
1 parent 57843a0 commit 3454667
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
| 121 | + | |
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| |||
0 commit comments