/* __vxge_hw_fifo_delete - Removes the FIFO This function freeup the memory pool and removes the FIFO  */
enum vxge_hw_status __vxge_hw_fifo_delete(struct __vxge_hw_vpath_handle *vp)
/* __vxge_hw_fifo_delete - Removes the FIFO This function freeup the memory pool and removes the FIFO  */
enum vxge_hw_status __vxge_hw_fifo_delete(struct __vxge_hw_vpath_handle *vp)
{
	struct __vxge_hw_fifo *fifo = vp->vpath->fifoh;
	__vxge_hw_fifo_abort(fifo);
	if (fifo->mempool)
		__vxge_hw_mempool_destroy(fifo->mempool);
	vp->vpath->fifoh = NULL;
	__vxge_hw_channel_free(&fifo->channel);
	return VXGE_HW_OK;
}