]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: ti: icssg-prueth: Fix packet handling for XDP_TX
authorMeghana Malladi <m-malladi@ti.com>
Mon, 16 Jun 2025 06:33:19 +0000 (12:03 +0530)
committerJakub Kicinski <kuba@kernel.org>
Tue, 17 Jun 2025 22:33:36 +0000 (15:33 -0700)
commit60524f1d2bdf222db6dc3f680e0272441f697fe4
tree09ceaf34661f850670eda4c2847921f42fe5a83c
parent1224b218a4b9203656ecc932152f4c81a97b4fcc
net: ti: icssg-prueth: Fix packet handling for XDP_TX

While transmitting XDP frames for XDP_TX, page_pool is
used to get the DMA buffers (already mapped to the pages)
and need to be freed/reycled once the transmission is complete.
This need not be explicitly done by the driver as this is handled
more gracefully by the xdp driver while returning the xdp frame.
__xdp_return() frees the XDP memory based on its memory type,
under which page_pool memory is also handled. This change fixes
the transmit queue timeout while running XDP_TX.

logs:
[  309.069682] icssg-prueth icssg1-eth eth2: NETDEV WATCHDOG: CPU: 0: transmit queue 0 timed out 45860 ms
[  313.933780] icssg-prueth icssg1-eth eth2: NETDEV WATCHDOG: CPU: 0: transmit queue 0 timed out 50724 ms
[  319.053656] icssg-prueth icssg1-eth eth2: NETDEV WATCHDOG: CPU: 0: transmit queue 0 timed out 55844 ms
...

Fixes: 62aa3246f462 ("net: ti: icssg-prueth: Add XDP support")
Signed-off-by: Meghana Malladi <m-malladi@ti.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Link: https://patch.msgid.link/20250616063319.3347541-1-m-malladi@ti.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/ti/icssg/icssg_common.c