Lines Matching refs:bpf_dtab_netdev

67 struct bpf_dtab_netdev {  struct
78 struct bpf_dtab_netdev __rcu **netdev_map; /* DEVMAP type only */ argument
155 sizeof(struct bpf_dtab_netdev *), in dev_map_init_map()
220 struct bpf_dtab_netdev *dev; in dev_map_free()
238 struct bpf_dtab_netdev *dev; in dev_map_free()
281 struct bpf_dtab_netdev *dev; in __dev_map_hash_lookup_elem()
296 struct bpf_dtab_netdev *dev, *next_dev; in dev_map_hash_get_next_key()
310 struct bpf_dtab_netdev, index_hlist); in dev_map_hash_get_next_key()
325 struct bpf_dtab_netdev, in dev_map_hash_get_next_key()
448 struct bpf_dtab_netdev *obj; in __dev_map_lookup_elem()
515 static u32 dev_map_bpf_prog_run_skb(struct sk_buff *skb, struct bpf_dtab_netdev *dst) in dev_map_bpf_prog_run_skb()
552 int dev_map_enqueue(struct bpf_dtab_netdev *dst, struct xdp_frame *xdpf, in dev_map_enqueue()
560 static bool is_valid_dst(struct bpf_dtab_netdev *obj, struct xdp_frame *xdpf) in is_valid_dst()
578 static int dev_map_enqueue_clone(struct bpf_dtab_netdev *obj, in dev_map_enqueue_clone()
626 struct bpf_dtab_netdev *dst, *last_dst = NULL; in dev_map_enqueue_multi()
700 int dev_map_generic_redirect(struct bpf_dtab_netdev *dst, struct sk_buff *skb, in dev_map_generic_redirect()
722 static int dev_map_redirect_clone(struct bpf_dtab_netdev *dst, in dev_map_redirect_clone()
747 struct bpf_dtab_netdev *dst, *last_dst = NULL; in dev_map_redirect_multi()
821 struct bpf_dtab_netdev *obj = __dev_map_lookup_elem(map, *(u32 *)key); in dev_map_lookup_elem()
828 struct bpf_dtab_netdev *obj = __dev_map_hash_lookup_elem(map, in dev_map_hash_lookup_elem()
835 struct bpf_dtab_netdev *dev; in __dev_map_entry_free()
837 dev = container_of(rcu, struct bpf_dtab_netdev, rcu); in __dev_map_entry_free()
847 struct bpf_dtab_netdev *old_dev; in dev_map_delete_elem()
864 struct bpf_dtab_netdev *old_dev; in dev_map_hash_delete_elem()
883 static struct bpf_dtab_netdev *__dev_map_alloc_node(struct net *net, in __dev_map_alloc_node()
889 struct bpf_dtab_netdev *dev; in __dev_map_alloc_node()
935 struct bpf_dtab_netdev *dev, *old_dev; in __dev_map_update_elem()
984 struct bpf_dtab_netdev *dev, *old_dev; in __dev_map_hash_update_elem()
1062 usage += (u64)map->max_entries * sizeof(struct bpf_dtab_netdev *); in dev_map_mem_usage()
1064 (u64)sizeof(struct bpf_dtab_netdev); in dev_map_mem_usage()
1107 struct bpf_dtab_netdev *dev; in dev_map_hash_remove_netdev()
1164 struct bpf_dtab_netdev *dev, *odev; in dev_map_notification()
1192 BUILD_BUG_ON(offsetof(struct bpf_dtab_netdev, dev) != in dev_map_init()