Lines Matching refs:bpf_dtab_netdev
65 struct bpf_dtab_netdev { struct
76 struct bpf_dtab_netdev __rcu **netdev_map; /* DEVMAP type only */ argument
148 sizeof(struct bpf_dtab_netdev *), in dev_map_init_map()
206 struct bpf_dtab_netdev *dev; in dev_map_free()
224 struct bpf_dtab_netdev *dev; in dev_map_free()
267 struct bpf_dtab_netdev *dev; in __dev_map_hash_lookup_elem()
282 struct bpf_dtab_netdev *dev, *next_dev; in dev_map_hash_get_next_key()
296 struct bpf_dtab_netdev, index_hlist); in dev_map_hash_get_next_key()
311 struct bpf_dtab_netdev, in dev_map_hash_get_next_key()
428 struct bpf_dtab_netdev *obj; in __dev_map_lookup_elem()
488 static u32 dev_map_bpf_prog_run_skb(struct sk_buff *skb, struct bpf_dtab_netdev *dst) in dev_map_bpf_prog_run_skb()
525 int dev_map_enqueue(struct bpf_dtab_netdev *dst, struct xdp_frame *xdpf, in dev_map_enqueue()
533 static bool is_valid_dst(struct bpf_dtab_netdev *obj, struct xdp_frame *xdpf) in is_valid_dst()
551 static int dev_map_enqueue_clone(struct bpf_dtab_netdev *obj, in dev_map_enqueue_clone()
595 struct bpf_dtab_netdev *dst, *last_dst = NULL; in dev_map_enqueue_multi()
665 int dev_map_generic_redirect(struct bpf_dtab_netdev *dst, struct sk_buff *skb, in dev_map_generic_redirect()
687 static int dev_map_redirect_clone(struct bpf_dtab_netdev *dst, in dev_map_redirect_clone()
712 struct bpf_dtab_netdev *dst, *last_dst = NULL; in dev_map_redirect_multi()
785 struct bpf_dtab_netdev *obj = __dev_map_lookup_elem(map, *(u32 *)key); in dev_map_lookup_elem()
792 struct bpf_dtab_netdev *obj = __dev_map_hash_lookup_elem(map, in dev_map_hash_lookup_elem()
799 struct bpf_dtab_netdev *dev; in __dev_map_entry_free()
801 dev = container_of(rcu, struct bpf_dtab_netdev, rcu); in __dev_map_entry_free()
811 struct bpf_dtab_netdev *old_dev; in dev_map_delete_elem()
828 struct bpf_dtab_netdev *old_dev; in dev_map_hash_delete_elem()
847 static struct bpf_dtab_netdev *__dev_map_alloc_node(struct net *net, in __dev_map_alloc_node()
853 struct bpf_dtab_netdev *dev; in __dev_map_alloc_node()
899 struct bpf_dtab_netdev *dev, *old_dev; in __dev_map_update_elem()
948 struct bpf_dtab_netdev *dev, *old_dev; in __dev_map_hash_update_elem()
1026 usage += (u64)map->max_entries * sizeof(struct bpf_dtab_netdev *); in dev_map_mem_usage()
1028 (u64)sizeof(struct bpf_dtab_netdev); in dev_map_mem_usage()
1069 struct bpf_dtab_netdev *dev; in dev_map_hash_remove_netdev()
1121 struct bpf_dtab_netdev *dev, *odev; in dev_map_notification()
1151 BUILD_BUG_ON(offsetof(struct bpf_dtab_netdev, dev) != in dev_map_init()