Lines Matching refs:xdp_frame

166 struct xdp_frame {  struct
180 static __always_inline bool xdp_frame_has_frags(struct xdp_frame *frame) in xdp_frame_has_frags() argument
185 static __always_inline bool xdp_frame_is_frag_pfmemalloc(struct xdp_frame *frame) in xdp_frame_is_frag_pfmemalloc()
204 xdp_get_shared_info_from_frame(struct xdp_frame *frame) in xdp_get_shared_info_from_frame()
219 static inline void xdp_scrub_frame(struct xdp_frame *frame) in xdp_scrub_frame()
242 struct xdp_frame *xdp_convert_zc_to_xdp_frame(struct xdp_buff *xdp);
243 struct sk_buff *__xdp_build_skb_from_frame(struct xdp_frame *xdpf,
246 struct sk_buff *xdp_build_skb_from_frame(struct xdp_frame *xdpf,
249 struct xdp_frame *xdpf_clone(struct xdp_frame *xdpf);
252 void xdp_convert_frame_to_buff(struct xdp_frame *frame, struct xdp_buff *xdp) in xdp_convert_frame_to_buff()
264 struct xdp_frame *xdp_frame) in xdp_update_frame_from_buff() argument
272 if (unlikely((headroom - metasize) < sizeof(*xdp_frame))) in xdp_update_frame_from_buff()
281 xdp_frame->data = xdp->data; in xdp_update_frame_from_buff()
282 xdp_frame->len = xdp->data_end - xdp->data; in xdp_update_frame_from_buff()
283 xdp_frame->headroom = headroom - sizeof(*xdp_frame); in xdp_update_frame_from_buff()
284 xdp_frame->metasize = metasize; in xdp_update_frame_from_buff()
285 xdp_frame->frame_sz = xdp->frame_sz; in xdp_update_frame_from_buff()
286 xdp_frame->flags = xdp->flags; in xdp_update_frame_from_buff()
293 struct xdp_frame *xdp_convert_buff_to_frame(struct xdp_buff *xdp) in xdp_convert_buff_to_frame()
295 struct xdp_frame *xdp_frame; in xdp_convert_buff_to_frame() local
301 xdp_frame = xdp->data_hard_start; in xdp_convert_buff_to_frame()
302 if (unlikely(xdp_update_frame_from_buff(xdp, xdp_frame) < 0)) in xdp_convert_buff_to_frame()
306 xdp_frame->mem = xdp->rxq->mem; in xdp_convert_buff_to_frame()
308 return xdp_frame; in xdp_convert_buff_to_frame()
313 void xdp_return_frame(struct xdp_frame *xdpf);
314 void xdp_return_frame_rx_napi(struct xdp_frame *xdpf);
317 void xdp_return_frame_bulk(struct xdp_frame *xdpf,
326 static inline void xdp_release_frame(struct xdp_frame *xdpf) in xdp_release_frame()
349 static __always_inline unsigned int xdp_get_frame_len(struct xdp_frame *xdpf) in xdp_get_frame_len()