Skip to content

Commit

Permalink
dpaa_eth: increment the RX dropped counter when needed
Browse files Browse the repository at this point in the history
Signed-off-by: Camelia Groza <camelia.groza@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Camelia Groza authored and David S. Miller committed Mar 14, 2018
1 parent 5651863 commit e4d1b37
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/net/ethernet/freescale/dpaa/dpaa_eth.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e4d1b37

Please sign in to comment.