Lines Matching refs:bpf_dtab_netdev
65 struct bpf_dtab_netdev { struct
75 struct bpf_dtab_netdev **netdev_map; argument
109 cost = (u64) dtab->map.max_entries * sizeof(struct bpf_dtab_netdev *); in dev_map_alloc()
131 sizeof(struct bpf_dtab_netdev *), in dev_map_alloc()
180 struct bpf_dtab_netdev *dev; in dev_map_free()
220 static int bq_xmit_all(struct bpf_dtab_netdev *obj, in bq_xmit_all()
282 struct bpf_dtab_netdev *dev = READ_ONCE(dtab->netdev_map[bit]); in __dev_map_flush()
302 struct bpf_dtab_netdev *__dev_map_lookup_elem(struct bpf_map *map, u32 key) in __dev_map_lookup_elem()
305 struct bpf_dtab_netdev *obj; in __dev_map_lookup_elem()
317 static int bq_enqueue(struct bpf_dtab_netdev *obj, struct xdp_frame *xdpf, in bq_enqueue()
337 int dev_map_enqueue(struct bpf_dtab_netdev *dst, struct xdp_buff *xdp, in dev_map_enqueue()
358 int dev_map_generic_redirect(struct bpf_dtab_netdev *dst, struct sk_buff *skb, in dev_map_generic_redirect()
374 struct bpf_dtab_netdev *obj = __dev_map_lookup_elem(map, *(u32 *)key); in dev_map_lookup_elem()
380 static void dev_map_flush_old(struct bpf_dtab_netdev *dev) in dev_map_flush_old()
400 struct bpf_dtab_netdev *dev; in __dev_map_entry_free()
402 dev = container_of(rcu, struct bpf_dtab_netdev, rcu); in __dev_map_entry_free()
412 struct bpf_dtab_netdev *old_dev; in dev_map_delete_elem()
438 struct bpf_dtab_netdev *dev, *old_dev; in dev_map_update_elem()
512 struct bpf_dtab_netdev *dev, *odev; in dev_map_notification()
539 BUILD_BUG_ON(offsetof(struct bpf_dtab_netdev, dev) != in dev_map_init()