Lines Matching refs:bpf_dtab_netdev
65 struct bpf_dtab_netdev { struct
76 struct bpf_dtab_netdev __rcu **netdev_map; /* DEVMAP type only */ argument
149 sizeof(struct bpf_dtab_netdev *), in dev_map_init_map()
207 struct bpf_dtab_netdev *dev; in dev_map_free()
225 struct bpf_dtab_netdev *dev; in dev_map_free()
268 struct bpf_dtab_netdev *dev; in __dev_map_hash_lookup_elem()
283 struct bpf_dtab_netdev *dev, *next_dev; in dev_map_hash_get_next_key()
297 struct bpf_dtab_netdev, index_hlist); in dev_map_hash_get_next_key()
312 struct bpf_dtab_netdev, in dev_map_hash_get_next_key()
429 struct bpf_dtab_netdev *obj; in __dev_map_lookup_elem()
489 static u32 dev_map_bpf_prog_run_skb(struct sk_buff *skb, struct bpf_dtab_netdev *dst) in dev_map_bpf_prog_run_skb()
526 int dev_map_enqueue(struct bpf_dtab_netdev *dst, struct xdp_frame *xdpf, in dev_map_enqueue()
534 static bool is_valid_dst(struct bpf_dtab_netdev *obj, struct xdp_frame *xdpf) in is_valid_dst()
552 static int dev_map_enqueue_clone(struct bpf_dtab_netdev *obj, in dev_map_enqueue_clone()
596 struct bpf_dtab_netdev *dst, *last_dst = NULL; in dev_map_enqueue_multi()
666 int dev_map_generic_redirect(struct bpf_dtab_netdev *dst, struct sk_buff *skb, in dev_map_generic_redirect()
688 static int dev_map_redirect_clone(struct bpf_dtab_netdev *dst, in dev_map_redirect_clone()
713 struct bpf_dtab_netdev *dst, *last_dst = NULL; in dev_map_redirect_multi()
786 struct bpf_dtab_netdev *obj = __dev_map_lookup_elem(map, *(u32 *)key); in dev_map_lookup_elem()
793 struct bpf_dtab_netdev *obj = __dev_map_hash_lookup_elem(map, in dev_map_hash_lookup_elem()
800 struct bpf_dtab_netdev *dev; in __dev_map_entry_free()
802 dev = container_of(rcu, struct bpf_dtab_netdev, rcu); in __dev_map_entry_free()
812 struct bpf_dtab_netdev *old_dev; in dev_map_delete_elem()
829 struct bpf_dtab_netdev *old_dev; in dev_map_hash_delete_elem()
848 static struct bpf_dtab_netdev *__dev_map_alloc_node(struct net *net, in __dev_map_alloc_node()
854 struct bpf_dtab_netdev *dev; in __dev_map_alloc_node()
900 struct bpf_dtab_netdev *dev, *old_dev; in __dev_map_update_elem()
949 struct bpf_dtab_netdev *dev, *old_dev; in __dev_map_hash_update_elem()
1027 usage += (u64)map->max_entries * sizeof(struct bpf_dtab_netdev *); in dev_map_mem_usage()
1029 (u64)sizeof(struct bpf_dtab_netdev); in dev_map_mem_usage()
1070 struct bpf_dtab_netdev *dev; in dev_map_hash_remove_netdev()
1122 struct bpf_dtab_netdev *dev, *odev; in dev_map_notification()
1152 BUILD_BUG_ON(offsetof(struct bpf_dtab_netdev, dev) != in dev_map_init()