Lines Matching refs:xdp_frame
114 struct xdp_frame { struct
141 xdp_get_shared_info_from_frame(struct xdp_frame *frame) in xdp_get_shared_info_from_frame() argument
156 static inline void xdp_scrub_frame(struct xdp_frame *frame) in xdp_scrub_frame()
166 struct xdp_frame *xdp_convert_zc_to_xdp_frame(struct xdp_buff *xdp);
167 struct sk_buff *__xdp_build_skb_from_frame(struct xdp_frame *xdpf,
170 struct sk_buff *xdp_build_skb_from_frame(struct xdp_frame *xdpf,
173 struct xdp_frame *xdpf_clone(struct xdp_frame *xdpf);
176 void xdp_convert_frame_to_buff(struct xdp_frame *frame, struct xdp_buff *xdp) in xdp_convert_frame_to_buff()
187 struct xdp_frame *xdp_frame) in xdp_update_frame_from_buff() argument
195 if (unlikely((headroom - metasize) < sizeof(*xdp_frame))) in xdp_update_frame_from_buff()
204 xdp_frame->data = xdp->data; in xdp_update_frame_from_buff()
205 xdp_frame->len = xdp->data_end - xdp->data; in xdp_update_frame_from_buff()
206 xdp_frame->headroom = headroom - sizeof(*xdp_frame); in xdp_update_frame_from_buff()
207 xdp_frame->metasize = metasize; in xdp_update_frame_from_buff()
208 xdp_frame->frame_sz = xdp->frame_sz; in xdp_update_frame_from_buff()
215 struct xdp_frame *xdp_convert_buff_to_frame(struct xdp_buff *xdp) in xdp_convert_buff_to_frame()
217 struct xdp_frame *xdp_frame; in xdp_convert_buff_to_frame() local
223 xdp_frame = xdp->data_hard_start; in xdp_convert_buff_to_frame()
224 if (unlikely(xdp_update_frame_from_buff(xdp, xdp_frame) < 0)) in xdp_convert_buff_to_frame()
228 xdp_frame->mem = xdp->rxq->mem; in xdp_convert_buff_to_frame()
230 return xdp_frame; in xdp_convert_buff_to_frame()
233 void xdp_return_frame(struct xdp_frame *xdpf);
234 void xdp_return_frame_rx_napi(struct xdp_frame *xdpf);
237 void xdp_return_frame_bulk(struct xdp_frame *xdpf,
246 static inline void xdp_release_frame(struct xdp_frame *xdpf) in xdp_release_frame()