]> www.infradead.org Git - users/dwmw2/linux.git/commit
net: ti: icssg-prueth: Report BQL before sending XDP packets
authorMeghana Malladi <m-malladi@ti.com>
Tue, 6 May 2025 11:05:46 +0000 (16:35 +0530)
committerJakub Kicinski <kuba@kernel.org>
Thu, 8 May 2025 01:19:12 +0000 (18:19 -0700)
commit1884fc85ae6ed0652fa324c66b1d89e25174e73b
treeee3359772c681746529856a50c5796acb198ffe9
parent8b3fae3e2376b70b7a76005263bc34d034b9c7bf
net: ti: icssg-prueth: Report BQL before sending XDP packets

When sending out any kind of traffic, it is essential that the driver
keeps reporting BQL of the number of bytes that have been sent so that
BQL can track the amount of data in the queue and prevents it from
overflowing. If BQL is not reported, the driver may continue sending
packets even when the queue is full, leading to packet loss, congestion
and decreased network performance. Currently this is missing in
emac_xmit_xdp_frame() and this patch fixes it.

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/20250506110546.4065715-4-m-malladi@ti.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/ti/icssg/icssg_common.c