Lines Matching defs:ifindex
9015 void bpf_program__set_ifindex(struct bpf_program *prog, __u32 ifindex)
9017 prog->prog_ifindex = ifindex;
10159 int bpf_map__set_ifindex(struct bpf_map *map, __u32 ifindex)
10163 map->map_ifindex = ifindex;
12436 struct bpf_link *bpf_program__attach_xdp(const struct bpf_program *prog, int ifindex)
12439 return bpf_program_attach_fd(prog, ifindex, "xdp", NULL);
12443 bpf_program__attach_tcx(const struct bpf_program *prog, int ifindex,
12457 if (!ifindex) {
12458 pr_warn("prog '%s': target netdevice ifindex cannot be zero\n",
12474 return bpf_program_attach_fd(prog, ifindex, "tcx", &link_create_opts);
12478 bpf_program__attach_netkit(const struct bpf_program *prog, int ifindex,
12492 if (!ifindex) {
12493 pr_warn("prog '%s': target netdevice ifindex cannot be zero\n",
12508 return bpf_program_attach_fd(prog, ifindex, "netkit", &link_create_opts);