/* igb_clean_tx_ring - Free Tx Buffers @tx_ring: ring to be cleaned  */
static void igb_clean_tx_ring(struct igb_ring *)
/* igb_clean_tx_ring - Free Tx Buffers @tx_ring: ring to be cleaned  */
static void igb_clean_tx_ring(struct igb_ring *)
{
	struct igb_buffer *buffer_info;
	unsigned long size;
	unsigned int i;
	if (!tx_ring->buffer_info)
		return;
	for (i = 0; i < tx_ring->count; i++) {
		buffer_info = &tx_ring->buffer_info[i];
		igb_unmap_and_free_tx_resource(tx_ring, buffer_info);
	}
	size = sizeof(struct igb_buffer) * tx_ring->count;
	memset(tx_ring->buffer_info, 0, size);
	memset(tx_ring->desc, 0, tx_ring->size);
	tx_ring->next_to_use = 0;
	tx_ring->next_to_clean = 0;
}