From bc7b7106899eae19801b39472fcac581c41396de Mon Sep 17 00:00:00 2001 From: Paul Chaignon Date: Sat, 2 Sep 2023 00:11:23 +0200 Subject: sys/linux: support multi-progs for BPF_PROG_DETACH Commit [1] upstream, and subsequent patches, extended the BPF_PROG_DETACH command to support a new multi-prog object in the BPF subsystem. It now supports the same fields as its BPF_PROG_ATTACH, with one exception, replace_bpf_fd, which must stay NULL. The reference to the relative object is supported, as well as the expected revision number and a set of flags. 1 - 053c8e1f235dc ("bpf: Add generic attach/detach/query API for multi-progs") Signed-off-by: Paul Chaignon --- sys/linux/test/bpf_cgroup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/linux/test') diff --git a/sys/linux/test/bpf_cgroup b/sys/linux/test/bpf_cgroup index f8c772c4e..9693dde69 100644 --- a/sys/linux/test/bpf_cgroup +++ b/sys/linux/test/bpf_cgroup @@ -18,7 +18,7 @@ r5 = write$tcp_congestion(r0, &AUTO='reno\x00', AUTO) # EPERM # Detach the BPF program. -r6 = bpf$BPF_PROG_DETACH(AUTO, &AUTO={@cgroup=r3, r2, 0x12, 0x0}, AUTO) +r6 = bpf$BPF_PROG_DETACH(AUTO, &AUTO={@cgroup=r3, r2, 0x12, 0x0, 0x0, @prog_id=0x0, 0x0}, AUTO) # It should work again. -- cgit mrf-deployment