Commit 4d9274ce authored by Rafał Miłecki's avatar Rafał Miłecki Committed by Jakub Kicinski

net: broadcom: bcm4908_enet: fix NAPI poll returned value

Missing increment was resulting in poll function always returning 0
instead of amount of processed packets.

Fixes: 4feffead ("net: broadcom: bcm4908enet: add BCM4908 controller driver")
Signed-off-by: default avatarRafał Miłecki <rafal@milecki.pl>
Acked-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Link: https://lore.kernel.org/r/20210224151842.2419-2-zajec5@gmail.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 4dc7f09b
...@@ -583,6 +583,8 @@ static int bcm4908_enet_poll(struct napi_struct *napi, int weight) ...@@ -583,6 +583,8 @@ static int bcm4908_enet_poll(struct napi_struct *napi, int weight)
enet->netdev->stats.rx_packets++; enet->netdev->stats.rx_packets++;
enet->netdev->stats.rx_bytes += len; enet->netdev->stats.rx_bytes += len;
handled++;
} }
if (handled < weight) { if (handled < weight) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment