diff options
author | David S. Miller <davem@davemloft.net> | 2019-11-02 01:16:01 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-11-02 01:16:01 +0300 |
commit | aeb1b85c340c54dc1d68ff96b02d439d6a4f7150 (patch) | |
tree | b063451b5cf5c6ab727b3dfdf36f7763d4574f03 /tools | |
parent | d64479a3e3f9924074ca7b50bd72fa5211dca9c1 (diff) | |
parent | aefc3e723a78c2e429a64dadd7815ef2a4aecd44 (diff) | |
download | linux-aeb1b85c340c54dc1d68ff96b02d439d6a4f7150.tar.xz |
Merge branch 'fix-BPF-offload-related-bugs'
Jakub Kicinski says:
====================
fix BPF offload related bugs
test_offload.py catches some recently added bugs.
First of a bug in test_offload.py itself after recent changes
to netdevsim is fixed.
Second patch fixes a bug in cls_bpf, and last one addresses
a problem with the recently added XDP installation optimization.
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/testing/selftests/bpf/test_offload.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/testing/selftests/bpf/test_offload.py b/tools/testing/selftests/bpf/test_offload.py index 15a666329a34..1afa22c88e42 100755 --- a/tools/testing/selftests/bpf/test_offload.py +++ b/tools/testing/selftests/bpf/test_offload.py @@ -22,6 +22,7 @@ import os import pprint import random import re +import stat import string import struct import subprocess @@ -311,7 +312,11 @@ class DebugfsDir: for f in out.split(): if f == "ports": continue + p = os.path.join(path, f) + if not os.stat(p).st_mode & stat.S_IRUSR: + continue + if os.path.isfile(p): _, out = cmd('cat %s/%s' % (path, f)) dfs[f] = out.strip() |