]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: Do not keep rearming the coalesce timer in stmmac_xmit
authorJose Abreu <Jose.Abreu@synopsys.com>
Fri, 18 May 2018 13:55:59 +0000 (14:55 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 May 2018 15:00:14 +0000 (11:00 -0400)
commit1f5cb7ac0da2d086f34aef5fb5d711d8a14f6ef3
tree0a2f38c671051359ebd776148662adc634ebc644
parentc4c80708ca7b07ce710744633b349951efae4b35
net: stmmac: Do not keep rearming the coalesce timer in stmmac_xmit

This is cutting down performance. Once the timer is armed it should run
after the time expires for the first packet sent and not the last one.

After this change, running iperf, the performance gain is +/- 24%.

Signed-off-by: Jose Abreu <joabreu@synopsys.com>
Cc: David S. Miller <davem@davemloft.net>
Cc: Joao Pinto <jpinto@synopsys.com>
Cc: Vitor Soares <soares@synopsys.com>
Cc: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Cc: Alexandre Torgue <alexandre.torgue@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac.h
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c