]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: Fix the packet count in stmmac_rx()
authorJose Abreu <Jose.Abreu@synopsys.com>
Wed, 6 Nov 2019 15:03:03 +0000 (16:03 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 7 Nov 2019 05:22:55 +0000 (21:22 -0800)
commit72d67bf38e1eb353e8f84ae8734b9ac27d64c605
tree01b7e59c8b0399118a5fa37cb3bbddfb4580f7c8
parent5de583c07095f71c8e678bb374d58228e67c7d78
net: stmmac: Fix the packet count in stmmac_rx()

Currently, stmmac_rx() is counting the number of descriptors but it
should count the number of packets as specified by the NAPI limit.

Fix this.

Fixes: 3a9e0d5c3557 ("net: stmmac: Prepare to add Split Header support")
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