]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: ti: icssg-prueth: Add XSK pool helpers
authorMeghana Malladi <m-malladi@ti.com>
Tue, 18 Nov 2025 13:55:38 +0000 (19:25 +0530)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 20 Nov 2025 14:24:11 +0000 (15:24 +0100)
commit7dfd7597911f52c4d2e0e7b8c710f726ecc9d87f
tree0cb00a8cf69529e5d606a269ac87bc001e4100cf
parent41dde7f1d01343ebebe265edd8f4b59bca591db8
net: ti: icssg-prueth: Add XSK pool helpers

Implement XSK NDOs (setup, wakeup) and create XSK
Rx and Tx queues. xsk_qid stores the queue id for
a given port which has been registered for zero copy
AF_XDP and used to acquire UMEM pointer if registered.

Based on the xsk_qid and the xsk_pool (umem) the driver
is either in copy or zero copy mode. In case of copy mode
the xsk_qid value will be invalid and will be set to valid
queue id when enabling zero copy. To enable zero copy, the
Rx queues are destroyed, i.e., descriptors pushed to fq
and cq are freed to remap them to xdp buffers from the umem.

Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: Meghana Malladi <m-malladi@ti.com>
Link: https://patch.msgid.link/20251118135542.380574-3-m-malladi@ti.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/ti/icssg/icssg_common.c
drivers/net/ethernet/ti/icssg/icssg_prueth.c
drivers/net/ethernet/ti/icssg/icssg_prueth.h