mlx4_en: Convert the normal skb free path to dev_consume_skb_any()
authorRick Jones <rick.jones2@hp.com>
Wed, 3 Sep 2014 16:18:00 +0000 (09:18 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 4 Sep 2014 04:00:17 +0000 (21:00 -0700)
It would appear the mlx4_en driver was still making a call to
dev_kfree_skb_any() where dev_consume_skb_any() would be more
appropriate.  This should make dropped packet profiling/tracking
easier/better over a NIC driven by mlx4_en.

Signed-off-by: Rick Jones <rick.jones2@hp.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_tx.c

index dae3da6d8dd08979e4a4ba3f0f3c7413f10198cd..bc8f51c77d8082c1ab420a25394f32f1a59de20e 100644 (file)
@@ -319,7 +319,7 @@ static u32 mlx4_en_free_tx_desc(struct mlx4_en_priv *priv,
                        }
                }
        }
-       dev_kfree_skb_any(skb);
+       dev_consume_skb_any(skb);
        return tx_info->nr_txbb;
 }