Commit 41294e6
r8169: improve rtl8169_start_xmit
Improve the following in rtl8169_start_xmit:
- tp->cur_tx can be accessed in parallel by rtl_tx(), therefore
annotate the race by using WRITE_ONCE
- avoid checking stop_queue a second time by moving the doorbell check
- netif_stop_queue() uses atomic operation set_bit() that includes a
full memory barrier on some platforms, therefore use
smp_mb__after_atomic to avoid overhead
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Link: https://lore.kernel.org/r/80085451-3eaf-507a-c7c0-08d607c46fbc@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>1 parent 0064c5c commit 41294e6
1 file changed
+6
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4226 | 4226 | | |
4227 | 4227 | | |
4228 | 4228 | | |
4229 | | - | |
| 4229 | + | |
4230 | 4230 | | |
4231 | 4231 | | |
4232 | 4232 | | |
| |||
4235 | 4235 | | |
4236 | 4236 | | |
4237 | 4237 | | |
4238 | | - | |
4239 | | - | |
4240 | | - | |
4241 | | - | |
4242 | | - | |
4243 | | - | |
4244 | | - | |
4245 | 4238 | | |
4246 | 4239 | | |
4247 | 4240 | | |
4248 | 4241 | | |
4249 | 4242 | | |
4250 | 4243 | | |
4251 | 4244 | | |
4252 | | - | |
| 4245 | + | |
4253 | 4246 | | |
4254 | 4247 | | |
| 4248 | + | |
4255 | 4249 | | |
4256 | 4250 | | |
| 4251 | + | |
| 4252 | + | |
| 4253 | + | |
4257 | 4254 | | |
4258 | 4255 | | |
4259 | 4256 | | |
| |||
0 commit comments