]> git.ipfire.org Git - thirdparty/knot-dns.git/commitdiff
libknot: rename XDP SEC macro name to 'xdp' (required by libbpf 1.0)
authorDaniel Salzman <daniel.salzman@nic.cz>
Thu, 25 Aug 2022 14:51:31 +0000 (16:51 +0200)
committerDaniel Salzman <daniel.salzman@nic.cz>
Sun, 4 Sep 2022 15:00:23 +0000 (17:00 +0200)
src/libknot/xdp/bpf-kernel.c

index 55077e82922fcf9fd355e5c5ad8dce454b6d9c2d..4c779ba3c5a0cb1a5fd04a387881dc2cec8180e7 100644 (file)
@@ -172,7 +172,7 @@ int process_l4(struct xdp_md *ctx, const struct pkt_desc *desc)
        return check_route(ctx, desc);
 }
 
-SEC("xdp_redirect_dns")
+SEC("xdp")
 int xdp_redirect_dns_func(struct xdp_md *ctx)
 {
        void *data = (void *)(long)ctx->data;