Skip to content

Commit b89df95

Browse files
Rick Jonesdavem330
authored andcommitted
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>
1 parent 9400017 commit b89df95

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • drivers/net/ethernet/mellanox/mlx4

‎drivers/net/ethernet/mellanox/mlx4/en_tx.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ static u32 mlx4_en_free_tx_desc(struct mlx4_en_priv *priv,
319319
}
320320
}
321321
}
322-
dev_kfree_skb_any(skb);
322+
dev_consume_skb_any(skb);
323323
return tx_info->nr_txbb;
324324
}
325325

0 commit comments

Comments
 (0)