src/dpdk/drivers/baseband/fpga_5gnr_fec/rte_fpga_5gnr_fec.c
static inline int
check_desc_error(uint32_t error_code) {
	switch (error_code) {
	case DESC_ERR_NO_ERR:
		return 0;
	case DESC_ERR_K_P_OUT_OF_RANGE:
		rte_bbdev_log(ERR, "Encode block size K' is out of range");
		break;
	case DESC_ERR_Z_C_NOT_LEGAL:
		rte_bbdev_log(ERR, "Zc is illegal");
		break;
	case DESC_ERR_DESC_OFFSET_ERR:
		rte_bbdev_log(ERR,
				"Queue offset does not meet the expectation in the FPGA"
				);
		break;
	case DESC_ERR_DESC_READ_FAIL:
		rte_bbdev_log(ERR, "Unsuccessful completion for descriptor read");
		break;
	case DESC_ERR_DESC_READ_TIMEOUT:
		rte_bbdev_log(ERR, "Descriptor read time-out");
		break;
	case DESC_ERR_DESC_READ_TLP_POISONED:
		rte_bbdev_log(ERR, "Descriptor read TLP poisoned");
		break;
	case DESC_ERR_CB_READ_FAIL:
		rte_bbdev_log(ERR, "Unsuccessful completion for code block");
		break;
	case DESC_ERR_CB_READ_TIMEOUT:
		rte_bbdev_log(ERR, "Code block read time-out");
		break;
	case DESC_ERR_CB_READ_TLP_POISONED:
		rte_bbdev_log(ERR, "Code block read TLP poisoned");
		break;
	case DESC_ERR_HBSTORE_ERR:
		rte_bbdev_log(ERR, "Hbstroe exceeds HARQ buffer size.");
		break;
	default:
		rte_bbdev_log(ERR, "Descriptor error unknown error code %u",
				error_code);
		break;
	}
	return 1;
}
/* Print an error if a descriptor error has occurred.
 *  Return 0 on success, 1 on failure
 */
Print an error if a descriptor error has occurred.
Return 0 on success, 1 on failure
Print an error if a descriptor error has occurred . Return 0 on success 1 on failure
static inline int
check_desc_error(uint32_t error_code) {
	switch (error_code) {
	case DESC_ERR_NO_ERR:
		return 0;
	case DESC_ERR_K_P_OUT_OF_RANGE:
		rte_bbdev_log(ERR, "Encode block size K' is out of range");
		break;
	case DESC_ERR_Z_C_NOT_LEGAL:
		rte_bbdev_log(ERR, "Zc is illegal");
		break;
	case DESC_ERR_DESC_OFFSET_ERR:
		rte_bbdev_log(ERR,
				"Queue offset does not meet the expectation in the FPGA"
				);
		break;
	case DESC_ERR_DESC_READ_FAIL:
		rte_bbdev_log(ERR, "Unsuccessful completion for descriptor read");
		break;
	case DESC_ERR_DESC_READ_TIMEOUT:
		rte_bbdev_log(ERR, "Descriptor read time-out");
		break;
	case DESC_ERR_DESC_READ_TLP_POISONED:
		rte_bbdev_log(ERR, "Descriptor read TLP poisoned");
		break;
	case DESC_ERR_CB_READ_FAIL:
		rte_bbdev_log(ERR, "Unsuccessful completion for code block");
		break;
	case DESC_ERR_CB_READ_TIMEOUT:
		rte_bbdev_log(ERR, "Code block read time-out");
		break;
	case DESC_ERR_CB_READ_TLP_POISONED:
		rte_bbdev_log(ERR, "Code block read TLP poisoned");
		break;
	case DESC_ERR_HBSTORE_ERR:
		rte_bbdev_log(ERR, "Hbstroe exceeds HARQ buffer size.");
		break;
	default:
		rte_bbdev_log(ERR, "Descriptor error unknown error code %u",
				error_code);
		break;
	}
	return 1;
}
static inline int check_desc_error ( uint32_t error_code ) { switch ( error_code ) { case DESC_ERR_NO_ERR : return 0 ; case DESC_ERR_K_P_OUT_OF_RANGE : rte_bbdev_log ( ERR , " " ) ; break ; case DESC_ERR_Z_C_NOT_LEGAL : rte_bbdev_log ( ERR , " " ) ; break ; case DESC_ERR_DESC_OFFSET_ERR : rte_bbdev_log ( ERR , " " ) ; break ; case DESC_ERR_DESC_READ_FAIL : rte_bbdev_log ( ERR , " " ) ; break ; case DESC_ERR_DESC_READ_TIMEOUT : rte_bbdev_log ( ERR , " " ) ; break ; case DESC_ERR_DESC_READ_TLP_POISONED : rte_bbdev_log ( ERR , " " ) ; break ; case DESC_ERR_CB_READ_FAIL : rte_bbdev_log ( ERR , " " ) ; break ; case DESC_ERR_CB_READ_TIMEOUT : rte_bbdev_log ( ERR , " " ) ; break ; case DESC_ERR_CB_READ_TLP_POISONED : rte_bbdev_log ( ERR , " " ) ; break ; case DESC_ERR_HBSTORE_ERR : rte_bbdev_log ( ERR , " " ) ; break ; default : rte_bbdev_log ( ERR , " " , error_code ) ; break ; } return 1 ; }
Print an error if a descriptor error has occurred.
Print an error if a descriptor error has occurred .