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()
432 struct bpf_dtab_netdev *obj; in __dev_map_lookup_elem()
492 static u32 dev_map_bpf_prog_run_skb(struct sk_buff *skb, struct bpf_dtab_netdev *dst) in dev_map_bpf_prog_run_skb()
529 int dev_map_enqueue(struct bpf_dtab_netdev *dst, struct xdp_frame *xdpf, in dev_map_enqueue()
537 static bool is_valid_dst(struct bpf_dtab_netdev *obj, struct xdp_frame *xdpf) in is_valid_dst()
555 static int dev_map_enqueue_clone(struct bpf_dtab_netdev *obj, in dev_map_enqueue_clone()
599 struct bpf_dtab_netdev *dst, *last_dst = NULL; in dev_map_enqueue_multi()
669 int dev_map_generic_redirect(struct bpf_dtab_netdev *dst, struct sk_buff *skb, in dev_map_generic_redirect()
691 static int dev_map_redirect_clone(struct bpf_dtab_netdev *dst, in dev_map_redirect_clone()
716 struct bpf_dtab_netdev *dst, *last_dst = NULL; in dev_map_redirect_multi()
789 struct bpf_dtab_netdev *obj = __dev_map_lookup_elem(map, *(u32 *)key); in dev_map_lookup_elem()
796 struct bpf_dtab_netdev *obj = __dev_map_hash_lookup_elem(map, in dev_map_hash_lookup_elem()
803 struct bpf_dtab_netdev *dev; in __dev_map_entry_free()
805 dev = container_of(rcu, struct bpf_dtab_netdev, rcu); in __dev_map_entry_free()
815 struct bpf_dtab_netdev *old_dev; in dev_map_delete_elem()
832 struct bpf_dtab_netdev *old_dev; in dev_map_hash_delete_elem()
851 static struct bpf_dtab_netdev *__dev_map_alloc_node(struct net *net, in __dev_map_alloc_node()
857 struct bpf_dtab_netdev *dev; in __dev_map_alloc_node()
903 struct bpf_dtab_netdev *dev, *old_dev; in __dev_map_update_elem()
952 struct bpf_dtab_netdev *dev, *old_dev; in __dev_map_hash_update_elem()
1030 usage += (u64)map->max_entries * sizeof(struct bpf_dtab_netdev *); in dev_map_mem_usage()
1032 (u64)sizeof(struct bpf_dtab_netdev); in dev_map_mem_usage()
1073 struct bpf_dtab_netdev *dev; in dev_map_hash_remove_netdev()
1125 struct bpf_dtab_netdev *dev, *odev; in dev_map_notification()
1155 BUILD_BUG_ON(offsetof(struct bpf_dtab_netdev, dev) != in dev_map_init()