mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
dpaa_eth: increment the RX dropped counter when needed
Signed-off-by: Camelia Groza <camelia.groza@nxp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
565186362b
commit
e4d1b37c17
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue