]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: Set Flow Control to automatic mode in the driver
authorJose Abreu <Jose.Abreu@synopsys.com>
Wed, 17 Apr 2019 07:33:05 +0000 (09:33 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 Apr 2019 17:14:28 +0000 (10:14 -0700)
commitd42aaad1c0bad88e37c832c6947b468c9a527d73
tree67e71bc7c9b029dbc983bb5c207c5c9e59316945
parent3196e7efd9ca641ce7d5cb57ff1d90f6e53c1a3c
net: stmmac: Set Flow Control to automatic mode in the driver

By default Flow Control feature is not being enabled in stmmac.

This is a useful feature that can prevent loss of packets and now that
XGMAC already supports it (along with GMAC and QoS) it makes sense to
activate it.

Switch the module parameter to FLOW_AUTO so that Flow Control is
activated.

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/stmmac_main.c