mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-04 18:19:28 +09:00
dpaa_eth: increment the RX dropped counter when needed
[ Upstream commit e4d1b37c17 ]
Signed-off-by: Camelia Groza <camelia.groza@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
dde9b6a837
commit
5bf75fca43
@@ -2324,8 +2324,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;
|
||||
|
||||
Reference in New Issue
Block a user