diff options
author | 2020-11-14 21:49:53 +0100 | |
---|---|---|
committer | 2020-11-16 07:54:07 -0800 | |
commit | 41294e6a434d4f19e957c55b275ea0324f275009 (patch) | |
tree | 518242e3dcf467be259832e50b63b9cc2822ccd5 /drivers/net/phy | |
parent | net: xfrm: use core API for updating/providing stats (diff) | |
download | wireguard-linux-41294e6a434d4f19e957c55b275ea0324f275009.tar.xz wireguard-linux-41294e6a434d4f19e957c55b275ea0324f275009.zip |
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>
Diffstat (limited to 'drivers/net/phy')
0 files changed, 0 insertions, 0 deletions