]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
dpaa_eth: increment the RX dropped counter when needed
authorCamelia Groza <camelia.groza@nxp.com>
Wed, 14 Mar 2018 13:37:31 +0000 (08:37 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 14 Mar 2018 17:16:23 +0000 (13:16 -0400)
Signed-off-by: Camelia Groza <camelia.groza@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/dpaa/dpaa_eth.c

index 627f7f714b182c2f9de8cdd2d65c08f8adb53efe..6c0679fd78b85f040e156d27053d8543b31df4cd 100644 (file)
@@ -2310,8 +2310,10 @@ static enum qman_cb_dqrr_result rx_default_dqrr(struct qman_portal *portal,
 
        skb_len = skb->len;
 
-       if (unlikely(netif_receive_skb(skb) == NET_RX_DROP))
+       if (unlikely(netif_receive_skb(skb) == NET_RX_DROP)) {
+               percpu_stats->rx_dropped++;
                return qman_cb_dqrr_consume;
+       }
 
        percpu_stats->rx_packets++;
        percpu_stats->rx_bytes += skb_len;