Lines Matching full:xdp

8 #include <net/libeth/xdp.h>
29 netdev_warn(dev, "XDPSQ sharing enabled, possible XDP Tx slowdown\n");
114 * libeth_xdp_tx_exception - handle Tx exceptions of XDP frames
115 * @bq: XDP Tx frame bulk
120 * Reports XDP Tx exceptions, frees the frames that won't be sent or adjust
205 * @src: source XDP buffer
208 * Use the fields from the passed XDP buffer to initialize the stash on the
228 LIBETH_XDP_ONSTACK_BUFF(xdp);
230 libeth_xdp_load_stash(xdp, stash);
231 libeth_xdp_return_buff_slow(xdp);
239 * @xdp: buffer to free/return
244 void __cold libeth_xdp_return_buff_slow(struct libeth_xdp_buff *xdp)
246 __libeth_xdp_return_buff(xdp, false);
251 * libeth_xdp_buff_add_frag - add frag to XDP buffer
252 * @xdp: head XDP buffer
261 bool libeth_xdp_buff_add_frag(struct libeth_xdp_buff *xdp,
267 if (!xdp_buff_add_frag(&xdp->base, netmem,
276 libeth_xdp_return_buff_slow(xdp);
283 * libeth_xdp_prog_exception - handle XDP prog exceptions
284 * @bq: XDP Tx bulk
285 * @xdp: buffer to process
286 * @act: original XDP prog verdict
291 * Reports invalid @act, XDP exception trace event and frees the buffer.
293 * Return: libeth_xdp XDP prog verdict.
296 struct libeth_xdp_buff *xdp,
304 if (xdp->base.rxq->mem.type == MEM_TYPE_XSK_BUFF_POOL)
305 return libeth_xsk_prog_exception(xdp, act, ret);
307 libeth_xdp_return_buff_slow(xdp);
327 * @bq: XDP frame bulk to store the buffer
352 * libeth_xdp_queue_threshold - calculate XDP queue clean/refill threshold
380 * __libeth_xdp_set_features - set XDP features for netdev
382 * @xmo: XDP metadata ops (Rx hints)
412 * libeth_xdp_set_redirect - toggle the XDP redirect feature
414 * @enable: whether XDP is enabled
449 MODULE_DESCRIPTION("Common Ethernet library - XDP infra");