]> git.baikalelectronics.ru Git - kernel.git/commit
atl1c: improve performance by avoiding unnecessary pcie writes on xmit
authorGatis Peisenieks <gatis@mikrotik.com>
Thu, 13 May 2021 11:43:23 +0000 (14:43 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 May 2021 22:48:10 +0000 (15:48 -0700)
commitffead181f6fb810b73f34095763f7d968f8b8e6d
treeaffa2123efd9376c44002965d1ce5a1d36a3145d
parent603a52ffdc181dd4a222ca82b890263f67e3917c
atl1c: improve performance by avoiding unnecessary pcie writes on xmit

The kernel has xmit_more facility that hints the networking driver xmit
path about whether more packets are coming soon. This information can be
used to avoid unnecessary expensive PCIe transaction per tx packet.

Max TX pps on Mikrotik 10/25G NIC in a Threadripper 3960X system
improved from 1150Kpps to 1700Kpps.

Testing L2 forwarding on AR8151 hardware did not reveal a measurable
increase in latency.

Signed-off-by: Gatis Peisenieks <gatis@mikrotik.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/atheros/atl1c/atl1c_main.c