]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: ti: icssg-prueth: Add functions to create and destroy Rx/Tx queues
authorMeghana Malladi <m-malladi@ti.com>
Tue, 18 Nov 2025 13:55:37 +0000 (19:25 +0530)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 20 Nov 2025 14:24:11 +0000 (15:24 +0100)
commit41dde7f1d01343ebebe265edd8f4b59bca591db8
tree5998d876ec9455db1a5bf7dfba7d1c751cfad418
parent070b87f64a6435897bc81f1fcaae3169472ca413
net: ti: icssg-prueth: Add functions to create and destroy Rx/Tx queues

Each port for a given ICSSG instance has their own set of
Tx and Rx queues. Add functions to create and destroy these
queues, which will be further used while performing ndo_bpf
operations to set up XSK Tx/Rx queues for a given port.

In the destroy Rx queue sequence add teardown wait to ensure
that all the descriptors including the TDCM (teardown completion
marker) have been serviced and freed to avoid any sort of descriptor
leaks.

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-2-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