Lines Matching defs:ifindex
8570 void bpf_program__set_ifindex(struct bpf_program *prog, __u32 ifindex)
8572 prog->prog_ifindex = ifindex;
9703 int bpf_map__set_ifindex(struct bpf_map *map, __u32 ifindex)
9707 map->map_ifindex = ifindex;
11956 struct bpf_link *bpf_program__attach_xdp(const struct bpf_program *prog, int ifindex)
11959 return bpf_program_attach_fd(prog, ifindex, "xdp", NULL);
11963 bpf_program__attach_tcx(const struct bpf_program *prog, int ifindex,
11977 if (!ifindex) {
11978 pr_warn("prog '%s': target netdevice ifindex cannot be zero\n",
11994 return bpf_program_attach_fd(prog, ifindex, "tcx", &link_create_opts);