net: stmmac: Program RX queue size and flow control
authorThierry Reding <treding@nvidia.com>
Fri, 10 Mar 2017 16:34:59 +0000 (17:34 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 13 Mar 2017 06:35:20 +0000 (23:35 -0700)
commit356b7557857e43c52561ac722168ea173f5f6ddc
treec5b0839e2bb339c7d8207ab10e80ac40b3952105
parent11fbf811c8e8a11529214a494eab25e21ca86739
net: stmmac: Program RX queue size and flow control

Program the receive queue size based on the RX FIFO size and enable
hardware flow control for large FIFOs.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac4.h
drivers/net/ethernet/stmicro/stmmac/dwmac4_dma.c