aboutsummaryrefslogtreecommitdiffstats
path: root/tools/bpf/bpftool/prog.c
diff options
context:
space:
mode:
authorHeiner Kallweit <[email protected]>2020-11-11 21:56:29 +0000
committerJakub Kicinski <[email protected]>2020-11-14 00:29:07 +0000
commitca1ab89cd2d654661f559bd83ad9fc7323cb6c86 (patch)
tree44ec58b5f5767af3a429cf61950d2e44378303c6 /tools/bpf/bpftool/prog.c
parentr8169: use READ_ONCE in rtl_tx_slots_avail (diff)
downloadkernel-ca1ab89cd2d654661f559bd83ad9fc7323cb6c86.tar.gz
kernel-ca1ab89cd2d654661f559bd83ad9fc7323cb6c86.zip
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/bpf/bpftool/prog.c')
0 files changed, 0 insertions, 0 deletions