Lines Matching refs:ifindex
119 (valsize != offsetofend(struct bpf_devmap_val, ifindex) && in dev_map_init_map()
564 static inline bool is_ifindex_excluded(int *excluded, int num_excluded, int ifindex) in is_ifindex_excluded() argument
567 if (ifindex == excluded[num_excluded]) in is_ifindex_excluded()
584 indexes[n++] = upper->ifindex; in get_upper_ifindexes()
603 excluded_devices[num_excluded++] = dev_rx->ifindex; in dev_map_enqueue_multi()
617 if (is_ifindex_excluded(excluded_devices, num_excluded, dst->dev->ifindex)) in dev_map_enqueue_multi()
641 dst->dev->ifindex)) in dev_map_enqueue_multi()
725 excluded_devices[num_excluded++] = dev->ifindex; in dev_map_redirect_multi()
735 if (is_ifindex_excluded(excluded_devices, num_excluded, dst->dev->ifindex)) in dev_map_redirect_multi()
759 dst->dev->ifindex)) in dev_map_redirect_multi()
862 dev->dev = dev_get_by_index(net, val->ifindex); in __dev_map_alloc_node()
884 dev->val.ifindex = val->ifindex; in __dev_map_alloc_node()
914 if (!val.ifindex) { in __dev_map_update_elem()
956 if (unlikely(map_flags > BPF_EXIST || !val.ifindex)) in __dev_map_hash_update_elem()
1003 static int dev_map_redirect(struct bpf_map *map, u32 ifindex, u64 flags) in dev_map_redirect() argument
1005 return __bpf_xdp_redirect_map(map, ifindex, flags, in dev_map_redirect()
1010 static int dev_hash_map_redirect(struct bpf_map *map, u32 ifindex, u64 flags) in dev_hash_map_redirect() argument
1012 return __bpf_xdp_redirect_map(map, ifindex, flags, in dev_hash_map_redirect()