From d62aa3bdb09fdb33ed29f4cb24b0f8e05b4de9a9 Mon Sep 17 00:00:00 2001 From: Christopher Canel Date: Wed, 8 May 2024 16:25:30 +0000 Subject: [PATCH] Manually remove struct_ops progs --- ratemon/runtime/c/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ratemon/runtime/c/Makefile b/ratemon/runtime/c/Makefile index ce272c4..dff4504 100644 --- a/ratemon/runtime/c/Makefile +++ b/ratemon/runtime/c/Makefile @@ -74,6 +74,7 @@ all: $(APPS) $(INTERPS) $(OUTPUT)/ratemon_tc.bpf.o clean: $(call msg,CLEAN) rm -rfv $(OUTPUT) $(APPS) + for id in `sudo bpftool struct_ops list | cut -d":" -f1`; do sudo bpftool struct_ops unregister id $id; done sudo tc filter del dev $(RM_IFACE) egress || true sudo tc qdisc del dev $(RM_IFACE) clsact || true sudo rm -f /sys/fs/bpf/flow_to_rwnd @@ -81,7 +82,6 @@ clean: sudo rm -f /sys/fs/bpf/tc/globals/flow_to_rwnd sudo rm -f /sys/fs/bpf/tc/globals/flow_to_win_scale - $(OUTPUT) $(OUTPUT)/libbpf $(BPFTOOL_OUTPUT): $(call msg,MKDIR,$@) mkdir -pv $@