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 $@