aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/bpf/bpf_prog_linfo.c
diff options
context:
space:
mode:
authorHangbin Liu <[email protected]>2021-05-28 02:43:56 +0000
committerDaniel Borkmann <[email protected]>2021-05-28 20:14:18 +0000
commite8e0f0f484780d7b90a63ea50020ac4bb027178d (patch)
tree6c5c94ea17f63ff9a1b5738d042b0103ec34d19a /tools/lib/bpf/bpf_prog_linfo.c
parentbpf, docs: Add llvm_reloc.rst to explain llvm bpf relocations (diff)
downloadkernel-e8e0f0f484780d7b90a63ea50020ac4bb027178d.tar.gz
kernel-e8e0f0f484780d7b90a63ea50020ac4bb027178d.zip
bpf, devmap: Remove drops variable from bq_xmit_all()
As Colin pointed out, the first drops assignment after declaration will be overwritten by the second drops assignment before using, which makes it useless. Since the drops variable will be used only once. Just remove it and use "cnt - sent" in trace_xdp_devmap_xmit(). Fixes: cb261b594b41 ("bpf: Run devmap xdp_prog on flush instead of bulk enqueue") Reported-by: Colin Ian King <[email protected]> Signed-off-by: Hangbin Liu <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Acked-by: John Fastabend <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/lib/bpf/bpf_prog_linfo.c')
0 files changed, 0 insertions, 0 deletions