]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: gmac4+: Remove uneeded computation for RFA/RFD
authorJose Abreu <Jose.Abreu@synopsys.com>
Thu, 14 Nov 2019 11:42:47 +0000 (12:42 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Nov 2019 20:25:41 +0000 (12:25 -0800)
commit1290a0f2a1c5082e2e05603ce6fa0d041531daa4
tree8065e3f36c78f789c6ab1771386530595b4935c5
parentb93799abafa6f6e7c7d40ce1dcab353dd7da0f18
net: stmmac: gmac4+: Remove uneeded computation for RFA/RFD

RFA and RFD should not be dependent on FIFO size. In fact, the more FIFO
space we have, the later we can activate Flow Control. Let's use
hard-coded values for RFA and RFD for all FIFO sizes with the exception
of 4k, which is a special case.

Signed-off-by: Jose Abreu <Jose.Abreu@synopsys.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac4_dma.c