Lines Matching refs:xdp_frame
256 struct xdp_frame { struct
270 static __always_inline bool xdp_frame_has_frags(const struct xdp_frame *frame) in xdp_frame_has_frags() argument
276 xdp_frame_is_frag_pfmemalloc(const struct xdp_frame *frame) in xdp_frame_is_frag_pfmemalloc()
293 xdp_get_shared_info_from_frame(const struct xdp_frame *frame) in xdp_get_shared_info_from_frame()
308 static inline void xdp_scrub_frame(struct xdp_frame *frame) in xdp_scrub_frame()
340 struct xdp_frame *xdp_convert_zc_to_xdp_frame(struct xdp_buff *xdp);
341 struct sk_buff *__xdp_build_skb_from_frame(struct xdp_frame *xdpf,
344 struct sk_buff *xdp_build_skb_from_frame(struct xdp_frame *xdpf,
346 struct xdp_frame *xdpf_clone(struct xdp_frame *xdpf);
349 void xdp_convert_frame_to_buff(const struct xdp_frame *frame, in xdp_convert_frame_to_buff()
362 struct xdp_frame *xdp_frame) in xdp_update_frame_from_buff() argument
370 if (unlikely((headroom - metasize) < sizeof(*xdp_frame))) in xdp_update_frame_from_buff()
379 xdp_frame->data = xdp->data; in xdp_update_frame_from_buff()
380 xdp_frame->len = xdp->data_end - xdp->data; in xdp_update_frame_from_buff()
381 xdp_frame->headroom = headroom - sizeof(*xdp_frame); in xdp_update_frame_from_buff()
382 xdp_frame->metasize = metasize; in xdp_update_frame_from_buff()
383 xdp_frame->frame_sz = xdp->frame_sz; in xdp_update_frame_from_buff()
384 xdp_frame->flags = xdp->flags; in xdp_update_frame_from_buff()
391 struct xdp_frame *xdp_convert_buff_to_frame(struct xdp_buff *xdp) in xdp_convert_buff_to_frame()
393 struct xdp_frame *xdp_frame; in xdp_convert_buff_to_frame() local
399 xdp_frame = xdp->data_hard_start; in xdp_convert_buff_to_frame()
400 if (unlikely(xdp_update_frame_from_buff(xdp, xdp_frame) < 0)) in xdp_convert_buff_to_frame()
404 xdp_frame->mem_type = xdp->rxq->mem.type; in xdp_convert_buff_to_frame()
406 return xdp_frame; in xdp_convert_buff_to_frame()
411 void xdp_return_frame(struct xdp_frame *xdpf);
412 void xdp_return_frame_rx_napi(struct xdp_frame *xdpf);
414 void xdp_return_frame_bulk(struct xdp_frame *xdpf,
427 xdp_get_frame_len(const struct xdp_frame *xdpf) in xdp_get_frame_len()