Lines Matching refs:xdp_frame
94 struct xdp_frame {
109 xdp_get_shared_info_from_frame(struct xdp_frame *frame)
123 /* Clear kernel pointers in xdp_frame */
124 static inline void xdp_scrub_frame(struct xdp_frame *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)
148 struct xdp_frame *xdp_frame)
156 if (unlikely((headroom - metasize) < sizeof(*xdp_frame)))
165 xdp_frame->data = xdp->data;
166 xdp_frame->len = xdp->data_end - xdp->data;
167 xdp_frame->headroom = headroom - sizeof(*xdp_frame);
168 xdp_frame->metasize = metasize;
169 xdp_frame->frame_sz = xdp->frame_sz;
174 /* Convert xdp_buff to xdp_frame */
176 struct xdp_frame *xdp_convert_buff_to_frame(struct xdp_buff *xdp)
178 struct xdp_frame *xdp_frame;
184 xdp_frame = xdp->data_hard_start;
185 if (unlikely(xdp_update_frame_from_buff(xdp, xdp_frame) < 0))
189 xdp_frame->mem = xdp->rxq->mem;
191 return xdp_frame;
194 void xdp_return_frame(struct xdp_frame *xdpf);
195 void xdp_return_frame_rx_napi(struct xdp_frame *xdpf);
198 /* When sending xdp_frame into the network stack, then there is no
204 static inline void xdp_release_frame(struct xdp_frame *xdpf)