]> asedeno.scripts.mit.edu Git - linux.git/commit
net: stmmac: Do not set RX IC bit if RX Coalesce is zero
authorJose Abreu <Jose.Abreu@synopsys.com>
Thu, 14 Nov 2019 11:42:45 +0000 (12:42 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Nov 2019 20:25:41 +0000 (12:25 -0800)
commit09146abebc788a2f133a6eae9cd6dc8c91c05047
tree1ec2bc7e3eff45b0fd9326e6d97f5af84392418a
parent983db6198f0d0ee406f365069901387e7834c3c0
net: stmmac: Do not set RX IC bit if RX Coalesce is zero

We may only want to use the RX Watchdog so lets check if RX Coalesce
settings are non-zero and only set the RX Interrupt on Completion bit if
its not.

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