Repository navigation
Commit ca1ab89
r8169: improve rtl_tx
We can simplify the for() condition and eliminate variable tx_left.
The change also considers that tp->cur_tx may be incremented by a
racing rtl8169_start_xmit().
In addition replace the write to tp->dirty_tx and the following
smp_mb() with an equivalent call to smp_store_mb(). This implicitly
adds a WRITE_ONCE() to the write.
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Link: https://lore.kernel.org/r/c2e19e5e-3d3f-d663-af32-13c3374f5def@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>1 parent 95f3c54 commit ca1ab89
1 file changed
Lines changed: 3 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4362 | 4362 | | |
4363 | 4363 | | |
4364 | 4364 | | |
4365 | | - | |
| 4365 | + | |
4366 | 4366 | | |
4367 | 4367 | | |
4368 | 4368 | | |
4369 | | - | |
| 4369 | + | |
4370 | 4370 | | |
4371 | 4371 | | |
4372 | 4372 | | |
| |||
4389 | 4389 | | |
4390 | 4390 | | |
4391 | 4391 | | |
4392 | | - | |
4393 | 4392 | | |
4394 | 4393 | | |
4395 | 4394 | | |
4396 | 4395 | | |
4397 | 4396 | | |
4398 | 4397 | | |
4399 | 4398 | | |
4400 | | - | |
| 4399 | + | |
4401 | 4400 | | |
4402 | 4401 | | |
4403 | 4402 | | |
| |||
0 commit comments