Lines Matching refs:bpf_dtab_netdev
63 struct bpf_dtab_netdev { struct
75 struct bpf_dtab_netdev **netdev_map; /* DEVMAP type only */ argument
140 cost += (u64) dtab->map.max_entries * sizeof(struct bpf_dtab_netdev *); in dev_map_init_map()
157 sizeof(struct bpf_dtab_netdev *), in dev_map_init_map()
222 struct bpf_dtab_netdev *dev; in dev_map_free()
240 struct bpf_dtab_netdev *dev; in dev_map_free()
275 struct bpf_dtab_netdev *__dev_map_hash_lookup_elem(struct bpf_map *map, u32 key) in __dev_map_hash_lookup_elem()
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()
409 struct bpf_dtab_netdev *__dev_map_lookup_elem(struct bpf_map *map, u32 key) in __dev_map_lookup_elem()
412 struct bpf_dtab_netdev *obj; in __dev_map_lookup_elem()
501 int dev_map_enqueue(struct bpf_dtab_netdev *dst, struct xdp_buff *xdp, in dev_map_enqueue()
514 int dev_map_generic_redirect(struct bpf_dtab_netdev *dst, struct sk_buff *skb, in dev_map_generic_redirect()
530 struct bpf_dtab_netdev *obj = __dev_map_lookup_elem(map, *(u32 *)key); in dev_map_lookup_elem()
537 struct bpf_dtab_netdev *obj = __dev_map_hash_lookup_elem(map, in dev_map_hash_lookup_elem()
544 struct bpf_dtab_netdev *dev; in __dev_map_entry_free()
546 dev = container_of(rcu, struct bpf_dtab_netdev, rcu); in __dev_map_entry_free()
556 struct bpf_dtab_netdev *old_dev; in dev_map_delete_elem()
578 struct bpf_dtab_netdev *old_dev; in dev_map_hash_delete_elem()
597 static struct bpf_dtab_netdev *__dev_map_alloc_node(struct net *net, in __dev_map_alloc_node()
603 struct bpf_dtab_netdev *dev; in __dev_map_alloc_node()
648 struct bpf_dtab_netdev *dev, *old_dev; in __dev_map_update_elem()
695 struct bpf_dtab_netdev *dev, *old_dev; in __dev_map_hash_update_elem()
787 struct bpf_dtab_netdev *dev; in dev_map_hash_remove_netdev()
841 struct bpf_dtab_netdev *dev, *odev; in dev_map_notification()
869 BUILD_BUG_ON(offsetof(struct bpf_dtab_netdev, dev) != in dev_map_init()