summaryrefslogtreecommitdiff
path: root/samples/bpf/lwt_len_hist.sh
diff options
context:
space:
mode:
Diffstat (limited to 'samples/bpf/lwt_len_hist.sh')
-rwxr-xr-x[-rw-r--r--]samples/bpf/lwt_len_hist.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/samples/bpf/lwt_len_hist.sh b/samples/bpf/lwt_len_hist.sh
index 090b96eaf7f7..0eda9754f50b 100644..100755
--- a/samples/bpf/lwt_len_hist.sh
+++ b/samples/bpf/lwt_len_hist.sh
@@ -8,6 +8,8 @@ VETH1=tst_lwt1b
TRACE_ROOT=/sys/kernel/debug/tracing
function cleanup {
+ # To reset saved histogram, remove pinned map
+ rm /sys/fs/bpf/tc/globals/lwt_len_hist_map
ip route del 192.168.253.2/32 dev $VETH0 2> /dev/null
ip link del $VETH0 2> /dev/null
ip link del $VETH1 2> /dev/null