/* Returns: one of the enum vxge_hw_status{} enumerated types. VXGE_HW_OK - for success. VXGE_HW_ERR_CRITICAL - when encounters critical error.  */
enum vxge_hw_status vxge_hw_ring_handle_tcode(struct __vxge_hw_ring *ring, void *rxdh, u8 t_code)
/* Returns: one of the enum vxge_hw_status{} enumerated types. VXGE_HW_OK - for success. VXGE_HW_ERR_CRITICAL - when encounters critical error.  */
enum vxge_hw_status vxge_hw_ring_handle_tcode(struct __vxge_hw_ring *ring, void *rxdh, u8 t_code)
{
	struct __vxge_hw_channel *channel;
	enum vxge_hw_status status = VXGE_HW_OK;
	channel = &ring->channel;
	if (t_code == 0 || t_code == 5) {
		status = VXGE_HW_OK;
		goto exit;
	}
	if (t_code > 0xF) {
		status = VXGE_HW_ERR_INVALID_TCODE;
		goto exit;
	}
	ring->stats->rxd_t_code_err_cnt[t_code]++;
exit:
	return status;
}