]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: xsk: Don't call worker_pkt_dump() for stats test
authorMaciej Fijalkowski <maciej.fijalkowski@intel.com>
Mon, 29 Mar 2021 22:43:00 +0000 (00:43 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 30 Mar 2021 16:24:38 +0000 (09:24 -0700)
commit466e30ed3a09f0006e775e0ad7a1ce11d18da150
tree795a292bd3d7e5afc891a77e4e4c7a9d19828695
parent36746de1c9d159377aa5c3a2eb1d831ba31154a8
selftests: xsk: Don't call worker_pkt_dump() for stats test

For TEST_TYPE_STATS, worker_pkt_validate() that places frames onto
pkt_buf is not called. Therefore, when dump mode is set, don't call
worker_pkt_dump() for mentioned test type, so that it won't crash on
pkt_buf() access.

Signed-off-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20210329224316.17793-2-maciej.fijalkowski@intel.com
tools/testing/selftests/bpf/xdpxceiver.c