OSDN Git Service

net: stmmac: dwxgmac: Finish the Flow Control implementation
authorJose Abreu <Jose.Abreu@synopsys.com>
Wed, 17 Apr 2019 07:33:04 +0000 (09:33 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 Apr 2019 17:14:28 +0000 (10:14 -0700)
commitff82cfc783986f6c64ba947ef2d8ae39f515e40a
tree35c46a6060b3c3b7fcb6c25825d7677482daeb52
parent17f780b364262ec7ff6d7764bb3f51cd710da7e7
net: stmmac: dwxgmac: Finish the Flow Control implementation

Finish the implementation of Flow Control feature. In order for it to
work correctly we need to set EHFC bit and the correct threshold values
for activating and deactivating it.

Signed-off-by: Jose Abreu <joabreu@synopsys.com>
Cc: Joao Pinto <jpinto@synopsys.com>
Cc: David S. Miller <davem@davemloft.net>
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/dwxgmac2.h
drivers/net/ethernet/stmicro/stmmac/dwxgmac2_dma.c