Home
last modified time | relevance | path

Searched refs:ifindex (Results 1 – 2 of 2) sorted by relevance

/kernel/bpf/
Ddevmap.c503 return dev ? &dev->ifindex : NULL; in dev_map_lookup_elem()
512 return dev ? &dev->ifindex : NULL; in dev_map_hash_lookup_elem()
588 u32 ifindex, in __dev_map_alloc_node() argument
612 dev->dev = dev_get_by_index(net, ifindex); in __dev_map_alloc_node()
630 u32 ifindex = *(u32 *)value; in __dev_map_update_elem() local
640 if (!ifindex) { in __dev_map_update_elem()
643 dev = __dev_map_alloc_node(net, dtab, ifindex, i); in __dev_map_update_elem()
671 u32 ifindex = *(u32 *)value; in __dev_map_hash_update_elem() local
676 if (unlikely(map_flags > BPF_EXIST || !ifindex)) in __dev_map_hash_update_elem()
685 dev = __dev_map_alloc_node(net, dtab, ifindex, idx); in __dev_map_hash_update_elem()
Doffload.c279 args->info->ifindex = aux->offload->netdev->ifindex; in bpf_prog_offload_info_fill_ns()
284 args->info->ifindex = 0; in bpf_prog_offload_info_fill_ns()
310 if (!info->ifindex) in bpf_prog_offload_info_fill()
506 args->info->ifindex = args->offmap->netdev->ifindex; in bpf_map_offload_info_fill_ns()
511 args->info->ifindex = 0; in bpf_map_offload_info_fill_ns()
533 if (!info->ifindex) in bpf_map_offload_info_fill()