Lines Matching refs:bpf_dtab_netdev
65 struct bpf_dtab_netdev { struct
76 struct bpf_dtab_netdev __rcu **netdev_map; /* DEVMAP type only */ argument
153 sizeof(struct bpf_dtab_netdev *), in dev_map_init_map()
218 struct bpf_dtab_netdev *dev; in dev_map_free()
236 struct bpf_dtab_netdev *dev; in dev_map_free()
279 struct bpf_dtab_netdev *dev; in __dev_map_hash_lookup_elem()
294 struct bpf_dtab_netdev *dev, *next_dev; in dev_map_hash_get_next_key()
308 struct bpf_dtab_netdev, index_hlist); in dev_map_hash_get_next_key()
323 struct bpf_dtab_netdev, in dev_map_hash_get_next_key()
442 struct bpf_dtab_netdev *obj; in __dev_map_lookup_elem()
503 static u32 dev_map_bpf_prog_run_skb(struct sk_buff *skb, struct bpf_dtab_netdev *dst) in dev_map_bpf_prog_run_skb()
540 int dev_map_enqueue(struct bpf_dtab_netdev *dst, struct xdp_frame *xdpf, in dev_map_enqueue()
548 static bool is_valid_dst(struct bpf_dtab_netdev *obj, struct xdp_frame *xdpf) in is_valid_dst()
566 static int dev_map_enqueue_clone(struct bpf_dtab_netdev *obj, in dev_map_enqueue_clone()
610 struct bpf_dtab_netdev *dst, *last_dst = NULL; in dev_map_enqueue_multi()
680 int dev_map_generic_redirect(struct bpf_dtab_netdev *dst, struct sk_buff *skb, in dev_map_generic_redirect()
702 static int dev_map_redirect_clone(struct bpf_dtab_netdev *dst, in dev_map_redirect_clone()
727 struct bpf_dtab_netdev *dst, *last_dst = NULL; in dev_map_redirect_multi()
797 struct bpf_dtab_netdev *obj = __dev_map_lookup_elem(map, *(u32 *)key); in dev_map_lookup_elem()
804 struct bpf_dtab_netdev *obj = __dev_map_hash_lookup_elem(map, in dev_map_hash_lookup_elem()
811 struct bpf_dtab_netdev *dev; in __dev_map_entry_free()
813 dev = container_of(rcu, struct bpf_dtab_netdev, rcu); in __dev_map_entry_free()
823 struct bpf_dtab_netdev *old_dev; in dev_map_delete_elem()
840 struct bpf_dtab_netdev *old_dev; in dev_map_hash_delete_elem()
859 static struct bpf_dtab_netdev *__dev_map_alloc_node(struct net *net, in __dev_map_alloc_node()
865 struct bpf_dtab_netdev *dev; in __dev_map_alloc_node()
911 struct bpf_dtab_netdev *dev, *old_dev; in __dev_map_update_elem()
960 struct bpf_dtab_netdev *dev, *old_dev; in __dev_map_hash_update_elem()
1038 usage += (u64)map->max_entries * sizeof(struct bpf_dtab_netdev *); in dev_map_mem_usage()
1040 (u64)sizeof(struct bpf_dtab_netdev); in dev_map_mem_usage()
1083 struct bpf_dtab_netdev *dev; in dev_map_hash_remove_netdev()
1135 struct bpf_dtab_netdev *dev, *odev; in dev_map_notification()
1163 BUILD_BUG_ON(offsetof(struct bpf_dtab_netdev, dev) != in dev_map_init()