diff options
author | Rick Jones <rick.jones2@hp.com> | 2014-09-03 12:18:00 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-09-04 00:00:17 -0400 |
commit | b89df95d52d5fd0de5a2ca3f8b49aaaee4675151 (patch) | |
tree | 42508c67413d696f4a8b244d5a1d77ed03383e82 /drivers/net/ethernet/mellanox | |
parent | 940001762ac514810e305aab356983829e5fa82a (diff) |
mlx4_en: Convert the normal skb free path to dev_consume_skb_any()
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>
Diffstat (limited to 'drivers/net/ethernet/mellanox')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx4/en_tx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/en_tx.c b/drivers/net/ethernet/mellanox/mlx4/en_tx.c index dae3da6d8dd0..bc8f51c77d80 100644 --- a/drivers/net/ethernet/mellanox/mlx4/en_tx.c +++ b/drivers/net/ethernet/mellanox/mlx4/en_tx.c | |||
@@ -319,7 +319,7 @@ static u32 mlx4_en_free_tx_desc(struct mlx4_en_priv *priv, | |||
319 | } | 319 | } |
320 | } | 320 | } |
321 | } | 321 | } |
322 | dev_kfree_skb_any(skb); | 322 | dev_consume_skb_any(skb); |
323 | return tx_info->nr_txbb; | 323 | return tx_info->nr_txbb; |
324 | } | 324 | } |
325 | 325 | ||