diff options
author | Matteo Croce | 2018-12-01 01:23:05 +0100 |
---|---|---|
committer | Alexei Starovoitov | 2018-12-01 07:06:41 +0100 |
commit | d606ee5c1d9a9bc4d1bba3c36fae615447f9851c (patch) | |
tree | 23e38205c206765e3920061f596c2e9bd241860f /Kbuild | |
parent | Merge branch 'improve-test-coverage-sparc' (diff) | |
download | kernel-qcow2-linux-d606ee5c1d9a9bc4d1bba3c36fae615447f9851c.tar.gz kernel-qcow2-linux-d606ee5c1d9a9bc4d1bba3c36fae615447f9851c.tar.xz kernel-qcow2-linux-d606ee5c1d9a9bc4d1bba3c36fae615447f9851c.zip |
samples: bpf: improve xdp1 example
Store only the total packet count for every protocol, instead of the
whole per-cpu array.
Use bpf_map_get_next_key() to iterate the map, instead of looking up
all the protocols.
Signed-off-by: Matteo Croce <mcroce@redhat.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'Kbuild')
0 files changed, 0 insertions, 0 deletions