diff options
author | Joao Pinto <Joao.Pinto@synopsys.com> | 2017-03-10 18:24:56 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-03-12 23:41:03 -0700 |
commit | 29feff39000bb57fe6c25f5ec1435489196c8838 (patch) | |
tree | fd25df17b3b9bac83c8578c6fa9d679f62635194 /drivers/net/ethernet/stmicro/stmmac/dwmac100_core.c | |
parent | d43042f4da3e1c2e4ccac3b1d9153cb0798533a4 (diff) | |
download | linux-stable-29feff39000bb57fe6c25f5ec1435489196c8838.tar.gz linux-stable-29feff39000bb57fe6c25f5ec1435489196c8838.tar.bz2 linux-stable-29feff39000bb57fe6c25f5ec1435489196c8838.zip |
net: stmmac: flow_ctrl functions adapted to mtl
This patch adapts flow_ctrl function to prepare it for multiple queues.
Signed-off-by: Joao Pinto <jpinto@synopsys.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/stmicro/stmmac/dwmac100_core.c')
-rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/dwmac100_core.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac100_core.c b/drivers/net/ethernet/stmicro/stmmac/dwmac100_core.c index e370ccec6176..524135e6dd89 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwmac100_core.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac100_core.c @@ -131,7 +131,8 @@ static void dwmac100_set_filter(struct mac_device_info *hw, } static void dwmac100_flow_ctrl(struct mac_device_info *hw, unsigned int duplex, - unsigned int fc, unsigned int pause_time) + unsigned int fc, unsigned int pause_time, + u32 tx_cnt) { void __iomem *ioaddr = hw->pcsr; unsigned int flow = MAC_FLOW_CTRL_ENABLE; |