Lines Matching defs:xdpf
345 struct xdp_frame *xdpf = frames[i];
349 xdp_convert_frame_to_buff(xdpf, &xdp);
356 err = xdp_update_frame_from_buff(&xdp, xdpf);
358 xdp_return_frame_rx_napi(xdpf);
360 frames[nframes++] = xdpf;
369 xdp_return_frame_rx_napi(xdpf);
388 struct xdp_frame *xdpf = bq->q[i];
390 prefetch(xdpf);
456 static void bq_enqueue(struct net_device *dev, struct xdp_frame *xdpf,
479 bq->q[bq->count++] = xdpf;
482 static inline int __xdp_enqueue(struct net_device *dev, struct xdp_frame *xdpf,
492 xdp_frame_has_frags(xdpf)))
495 err = xdp_ok_fwd_dev(dev, xdp_get_frame_len(xdpf));
499 bq_enqueue(dev, xdpf, dev_rx, xdp_prog);
534 int dev_xdp_enqueue(struct net_device *dev, struct xdp_frame *xdpf,
537 return __xdp_enqueue(dev, xdpf, dev_rx, NULL);
540 int dev_map_enqueue(struct bpf_dtab_netdev *dst, struct xdp_frame *xdpf,
545 return __xdp_enqueue(dev, xdpf, dev_rx, dst->xdp_prog);
548 static bool is_valid_dst(struct bpf_dtab_netdev *obj, struct xdp_frame *xdpf)
557 xdp_frame_has_frags(xdpf)))
560 if (xdp_ok_fwd_dev(obj->dev, xdp_get_frame_len(xdpf)))
568 struct xdp_frame *xdpf)
572 nxdpf = xdpf_clone(xdpf);
606 int dev_map_enqueue_multi(struct xdp_frame *xdpf, struct net_device *dev_rx,
626 if (!is_valid_dst(dst, xdpf))
638 err = dev_map_enqueue_clone(last_dst, dev_rx, xdpf);
649 if (!is_valid_dst(dst, xdpf))
662 err = dev_map_enqueue_clone(last_dst, dev_rx, xdpf);
673 bq_enqueue(last_dst->dev, xdpf, dev_rx, last_dst->xdp_prog);
675 xdp_return_frame_rx_napi(xdpf); /* dtab is empty */