]> git.baikalelectronics.ru Git - kernel.git/commit
xdp: add tracepoint for devmap like cpumap have
authorJesper Dangaard Brouer <brouer@redhat.com>
Thu, 24 May 2018 14:45:57 +0000 (16:45 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 25 May 2018 01:36:15 +0000 (18:36 -0700)
commit96d3e6e2f72cdd2f1140ab54a7484c291057244e
tree444ebbb5e686501073401c5836712b819ef03e10
parent05c93db28266c3b2ca8f00e79de0c780ad79c5f8
xdp: add tracepoint for devmap like cpumap have

Notice how this allow us get XDP statistic without affecting the XDP
performance, as tracepoint is no-longer activated on a per packet basis.

V5: Spotted by John Fastabend.
 Fix 'sent' also counted 'drops' in this patch, a later patch corrected
 this, but it was a mistake in this intermediate step.

Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
include/linux/bpf.h
include/trace/events/xdp.h
kernel/bpf/devmap.c
net/core/filter.c