]> git.baikalelectronics.ru Git - kernel.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)
commitee3b6072b68b373dc8678a89d4e081983bd10f35
tree1ec2bc7e3eff45b0fd9326e6d97f5af84392418a
parent47384bae9e4723f1795edcc1b79740425dd28ee1
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