From 777e6a2a5d39ae1ae287957227bba726c908b542 Mon Sep 17 00:00:00 2001 From: William Findlay Date: Fri, 22 Oct 2021 14:01:29 -0400 Subject: [PATCH] xtask/codegen: generate bindings for BPF_RINGBUF types --- xtask/src/codegen/aya.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/xtask/src/codegen/aya.rs b/xtask/src/codegen/aya.rs index 33ef51af..4e7d0e9d 100644 --- a/xtask/src/codegen/aya.rs +++ b/xtask/src/codegen/aya.rs @@ -147,6 +147,8 @@ fn codegen_bindings(opts: &Options) -> Result<(), anyhow::Error> { "TC_H_MIN_PRIORITY", "TC_H_MIN_INGRESS", "TC_H_MIN_EGRESS", + // Ringbuf + "BPF_RINGBUF_.*", ]; let dir = PathBuf::from("aya"); @@ -193,7 +195,10 @@ fn codegen_bindings(opts: &Options) -> Result<(), anyhow::Error> { .allowlist_var(x) .constified_enum("BPF_F_.*") .constified_enum("BTF_KIND_.*") - .constified_enum("BTF_VAR_.*"); + .constified_enum("BTF_VAR_.*") + .constified_enum("IFLA_.*") + .constified_enum("TCA_.*") + .constified_enum("BPF_RINGBUF_.*"); } for x in &types {