Lines Matching defs:xdp_frame

294 struct xdp_frame {
308 static __always_inline bool xdp_frame_has_frags(const struct xdp_frame *frame)
314 xdp_frame_get_skb_flags(const struct xdp_frame *frame)
331 xdp_get_shared_info_from_frame(const struct xdp_frame *frame)
345 /* Clear kernel pointers in xdp_frame */
346 static inline void xdp_scrub_frame(struct xdp_frame *frame)
379 struct xdp_frame *xdp_convert_zc_to_xdp_frame(struct xdp_buff *xdp);
380 struct sk_buff *__xdp_build_skb_from_frame(struct xdp_frame *xdpf,
383 struct sk_buff *xdp_build_skb_from_frame(struct xdp_frame *xdpf,
385 struct xdp_frame *xdpf_clone(struct xdp_frame *xdpf);
388 void xdp_convert_frame_to_buff(const struct xdp_frame *frame,
401 struct xdp_frame *xdp_frame)
409 if (unlikely((headroom - metasize) < sizeof(*xdp_frame)))
418 xdp_frame->data = xdp->data;
419 xdp_frame->len = xdp->data_end - xdp->data;
420 xdp_frame->headroom = headroom - sizeof(*xdp_frame);
421 xdp_frame->metasize = metasize;
422 xdp_frame->frame_sz = xdp->frame_sz;
423 xdp_frame->flags = xdp->flags;
428 /* Convert xdp_buff to xdp_frame */
430 struct xdp_frame *xdp_convert_buff_to_frame(struct xdp_buff *xdp)
432 struct xdp_frame *xdp_frame;
438 xdp_frame = xdp->data_hard_start;
439 if (unlikely(xdp_update_frame_from_buff(xdp, xdp_frame) < 0))
443 xdp_frame->mem_type = xdp->rxq->mem.type;
445 return xdp_frame;
450 void xdp_return_frame(struct xdp_frame *xdpf);
451 void xdp_return_frame_rx_napi(struct xdp_frame *xdpf);
453 void xdp_return_frame_bulk(struct xdp_frame *xdpf,
466 xdp_get_frame_len(const struct xdp_frame *xdpf)