mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-07 14:19:35 +00:00

Add Xsk counterparts for XDP_TX buffer sending and completion. The same base structures and functions used from the libeth_xdp core, with adjustments to that XSk Rx always operates on &xdp_buff_xsk for both head and frags. And unlike regular Rx, here unlikely() are used for frags, as the header split gives no benefits for XSk Rx, at least for now. Signed-off-by: Alexander Lobakin <aleksander.lobakin@intel.com> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
16 lines
476 B
Plaintext
16 lines
476 B
Plaintext
# SPDX-License-Identifier: GPL-2.0-only
|
|
# Copyright (C) 2024-2025 Intel Corporation
|
|
|
|
config LIBETH
|
|
tristate "Common Ethernet library (libeth)" if COMPILE_TEST
|
|
select PAGE_POOL
|
|
help
|
|
libeth is a common library containing routines shared between several
|
|
drivers, but not yet promoted to the generic kernel API.
|
|
|
|
config LIBETH_XDP
|
|
tristate "Common XDP library (libeth_xdp)" if COMPILE_TEST
|
|
select LIBETH
|
|
help
|
|
XDP and XSk helpers based on libeth hotpath management.
|