OSDN Git Service

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)
commitd7ab6419bdee50dbc4a53e69c290a1ef05dae7f9
treeaffa2123efd9376c44002965d1ce5a1d36a3145d
parentf19d4997fd1fb01bed127e1056ce3a5de922d9ee
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