1 // SPDX-License-Identifier: GPL-2.0
2 /* Converted from tools/testing/selftests/bpf/verifier/xdp.c */
5 #include <bpf/bpf_helpers.h>
9 __description("XDP, using ifindex from netdev")
11 __naked void xdp_using_ifindex_from_netdev(void)
15 r2 = *(u32*)(r1 + %[xdp_md_ingress_ifindex]); \
16 if r2 < 1 goto l0_%=; \
20 : __imm_const(xdp_md_ingress_ifindex, offsetof(struct xdp_md, ingress_ifindex))
24 char _license[] SEC("license") = "GPL";