]> git.ipfire.org Git - thirdparty/linux.git/commit
net: hibmcge: reduce packet drop under stress testing
authorJijie Shao <shaojijie@huawei.com>
Sat, 22 Nov 2025 03:46:56 +0000 (11:46 +0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 27 Nov 2025 02:22:40 +0000 (18:22 -0800)
commit2e68bb2e0f7712239711cabc22ceeb56c011c69d
tree0e00ba09c2099aa7fae9036129021cdc2293e849
parent91f3305b97fc41b42b67b9ff58441aa4d72cde2e
net: hibmcge: reduce packet drop under stress testing

Under stress test scenarios, hibmcge driver may not receive packets
in a timely manner, which can lead to the buffer of the hardware queue
being exhausted, resulting in packet drop.

This patch doubles the software queue depth and uses half of the buffer
to fill the hardware queue before receiving packets, thus preventing
packet loss caused by the hardware queue buffer being exhausted.

Signed-off-by: Jijie Shao <shaojijie@huawei.com>
Link: https://patch.msgid.link/20251122034657.3373143-3-shaojijie@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/hisilicon/hibmcge/hbg_txrx.c