]> git.ipfire.org Git - thirdparty/linux.git/commit
net: mana: Add page pool for RX buffers
authorHaiyang Zhang <haiyangz@microsoft.com>
Fri, 4 Aug 2023 20:33:53 +0000 (13:33 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 6 Aug 2023 07:36:06 +0000 (08:36 +0100)
commitb1d13f7a3b5396503e6869ed627bb4eeab9b524f
tree95e668bcb514876b288feaa03eecd498e062f10a
parent48ae409aaf1ac2dd6f7a3e643f296a99bf6d67bb
net: mana: Add page pool for RX buffers

Add page pool for RX buffers for faster buffer cycle and reduce CPU
usage.

The standard page pool API is used.

With iperf and 128 threads test, this patch improved the throughput
by 12-15%, and decreased the IRQ associated CPU's usage from 99-100% to
10-50%.

Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Reviewed-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/microsoft/mana/mana_en.c
include/net/mana/mana.h