Skip to content

Commit

Permalink
Manually remove struct_ops progs
Browse files Browse the repository at this point in the history
  • Loading branch information
ccanel committed May 8, 2024
1 parent 606e294 commit d62aa3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ratemon/runtime/c/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,14 @@ 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
sudo rm -f /sys/fs/bpf/flow_to_win_scale
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 $@
Expand Down

0 comments on commit d62aa3b

Please sign in to comment.