net: mv643xx_eth: Be drop monitor friendly
authorFlorian Fainelli <f.fainelli@gmail.com>
Fri, 25 Aug 2017 03:55:40 +0000 (20:55 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 25 Aug 2017 04:27:09 +0000 (21:27 -0700)
txq_reclaim() does the normal transmit queue reclamation and
rxq_deinit() does the RX ring cleanup, none of these are packet drops,
so use dev_consume_skb() for both locations.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mv643xx_eth.c

index fb2d533ae4effe0317e464692fb23308f66b67df..81c1fac00d330e1fc2e16cb9f7756f954339af62 100644 (file)
@@ -1121,7 +1121,7 @@ static int txq_reclaim(struct tx_queue *txq, int budget, int force)
                        struct sk_buff *skb = __skb_dequeue(&txq->tx_skb);
 
                        if (!WARN_ON(!skb))
-                               dev_kfree_skb(skb);
+                               dev_consume_skb_any(skb);
                }
 
                if (cmd_sts & ERROR_SUMMARY) {
@@ -2024,7 +2024,7 @@ static void rxq_deinit(struct rx_queue *rxq)
 
        for (i = 0; i < rxq->rx_ring_size; i++) {
                if (rxq->rx_skb[i]) {
-                       dev_kfree_skb(rxq->rx_skb[i]);
+                       dev_consume_skb_any(rxq->rx_skb[i]);
                        rxq->rx_desc_count--;
                }
        }