diff options
author | Prashant Bhole <bhole_prashant_q7@lab.ntt.co.jp> | 2018-05-31 07:42:39 +0300 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2018-06-02 07:13:56 +0300 |
commit | d825e12f084650649b61209d0cd514c0e57bb0de (patch) | |
tree | 6244d255ba0540e1c60e9f0aa4ce1e725a08648f /ipc | |
parent | a009f1f396d04a700971586ce8a142ea606cbb61 (diff) | |
download | linux-d825e12f084650649b61209d0cd514c0e57bb0de.tar.xz |
selftests/bpf: test_sockmap, fix data verification
When data verification is enabled, some tests fail because verification is done
incorrectly. Following changes fix it.
- Identify the size of data block to be verified
- Reset verification counter when data block size is reached
- Fixed the value printed in case of verfication failure
Fixes: 16962b2404ac ("bpf: sockmap, add selftests")
Acked-by: John Fastabend <john.fastabend@gmail.com>
Signed-off-by: Prashant Bhole <bhole_prashant_q7@lab.ntt.co.jp>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions