Lines Matching refs:xdp_frame
94 struct xdp_frame { struct
109 xdp_get_shared_info_from_frame(struct xdp_frame *frame) in xdp_get_shared_info_from_frame() argument
124 static inline void xdp_scrub_frame(struct xdp_frame *frame) in xdp_scrub_frame()
134 struct xdp_frame *xdp_convert_zc_to_xdp_frame(struct xdp_buff *xdp);
137 void xdp_convert_frame_to_buff(struct xdp_frame *frame, struct xdp_buff *xdp) in xdp_convert_frame_to_buff()
148 struct xdp_frame *xdp_frame) in xdp_update_frame_from_buff() argument
156 if (unlikely((headroom - metasize) < sizeof(*xdp_frame))) in xdp_update_frame_from_buff()
165 xdp_frame->data = xdp->data; in xdp_update_frame_from_buff()
166 xdp_frame->len = xdp->data_end - xdp->data; in xdp_update_frame_from_buff()
167 xdp_frame->headroom = headroom - sizeof(*xdp_frame); in xdp_update_frame_from_buff()
168 xdp_frame->metasize = metasize; in xdp_update_frame_from_buff()
169 xdp_frame->frame_sz = xdp->frame_sz; in xdp_update_frame_from_buff()
176 struct xdp_frame *xdp_convert_buff_to_frame(struct xdp_buff *xdp) in xdp_convert_buff_to_frame()
178 struct xdp_frame *xdp_frame; in xdp_convert_buff_to_frame() local
184 xdp_frame = xdp->data_hard_start; in xdp_convert_buff_to_frame()
185 if (unlikely(xdp_update_frame_from_buff(xdp, xdp_frame) < 0)) in xdp_convert_buff_to_frame()
189 xdp_frame->mem = xdp->rxq->mem; in xdp_convert_buff_to_frame()
191 return xdp_frame; in xdp_convert_buff_to_frame()
194 void xdp_return_frame(struct xdp_frame *xdpf);
195 void xdp_return_frame_rx_napi(struct xdp_frame *xdpf);
204 static inline void xdp_release_frame(struct xdp_frame *xdpf) in xdp_release_frame()