ERR_IF
if ERR_IF( NULL != pdev->context_info )
ERR_IF(type >= ARRSIZE(pdev->context_info->proto_pending)) )
ERR_IF(cid > pdev->params.max_func_connections) ||
ERR_IF(pdev->context_info->array[cid].invalid != LM_CONTEXT_INVALID_WAIT) )
ERR_IF(type >= ARRSIZE(pdev->context_info->proto_end)) ||
ERR_IF(cid > (pdev->context_info->proto_end[type])) ||
ERR_IF(cid < (pdev->context_info->proto_start[type])) ||
ERR_IF(pdev->context_info->array[cid].invalid != LM_CONTEXT_INVALID_DELETE) ||
ERR_IF(cid > pdev->params.max_func_connections) )
if ERR_IF(type >= ARRSIZE(pdev->context_info->proto_pending))
ERR_IF(type >= MAX_PROTO) ||
ERR_IF(cid > (pdev->context_info->proto_end[MAX_PROTO - 1])) ||
ERR_IF(pdev->context_info->array[cid].invalid != LM_CONTEXT_VALID) )
ERR_IF(cid > (pdev->context_info->proto_end[MAX_PROTO - 1])) )
ERR_IF(sw_cid < PFDEV(pdev)->context_info->proto_start[ETH_CONNECTION_TYPE]) ||
ERR_IF(sw_cid > PFDEV(pdev)->context_info->proto_end[ETH_CONNECTION_TYPE]) )
if (ERR_IF(max_supported_cons[port] < max_eth_cons[port]))
if (ERR_IF((max_iscsi_cons[port] + max_rdma_cons[port] + max_fcoe_cons[port] + max_toe_cons[port] + max_eth_cons[port]) > max_supported_cons[port]))
if (ERR_IF(pdev->hw_info.max_port_conns > max_bar_supported_cons[port]))
if ( CHK_NULL(pdev) || ERR_IF( 0 == operation->blocks[0].length ) )
if ERR_IF( ( ( 0 == command->dst_addr_lo ) && ( command->dst_addr_hi == command->dst_addr_lo ) ) ||
if(ERR_IF(!pdev))
if(ERR_IF(!pdev))
if(ERR_IF(!pdev))
if(ERR_IF(!pdev))
if(ERR_IF(!pdev))
if(ERR_IF(!pdev))
if(ERR_IF(!pdev))
if(ERR_IF(!pdev))
if(ERR_IF(!pdev))
if(ERR_IF(!pdev))
if(ERR_IF(!pdev))
if(ERR_IF(!pdev))
if(ERR_IF(!pdev))
if(ERR_IF(!pdev))
if(ERR_IF(!pdev))
if(ERR_IF(!pdev))
if(ERR_IF(!pdev))
if(ERR_IF(!pdev))
if(ERR_IF(!pdev))
if(ERR_IF(!pdev))
if( ERR_IF(PORT_ID(pdev) > 1) || ERR_IF(( FUNC_ID(pdev)) >= ARRSIZE(g_lm_loader.path_arr[PATH_ID(pdev)].func_arr)) )
if( ERR_IF(0 == mask_size) || ERR_IF( mask_size > LM_NWUF_PATTERN_MASK_SIZE ) )
if ERR_IF( 0xffffffff == nwuf->crc32 )
if (ERR_IF(sp_cqes->idx >= MAX_NUM_SPE))
ERR_IF((ARRSIZE(pdev->params.l2_cli_con_params) <= chain_idx) ||
if(ERR_IF(!eq_chain->bd_chain.bd_chain_virt))
ERR_IF((ARRSIZE(pdev->rx_info.rxq_chain) <= cid)))
ERR_IF((ARRSIZE(pdev->rx_info.rxq_chain) <= cid)))
if(ERR_IF(!mem_virt))
if(ERR_IF(!mem_virt))
ERR_IF((ARRSIZE(pdev->tx_info.chain) <= cid) || !page_cnt))
if(ERR_IF(!tx_chain->bd_chain.bd_chain_virt))
ERR_IF((ARRSIZE(pdev->rx_info.rxq_chain) <= cid) || !page_cnt))
if(ERR_IF(!bd_chain->bd_chain_virt))
ERR_IF((ARRSIZE(pdev->rx_info.rcq_chain) <= cid) || !page_cnt))
if(ERR_IF(!rcq_chain->bd_chain.bd_chain_virt))
ERR_IF((ARRSIZE(pdev->rx_info.rxq_chain) <= cid) || !page_cnt))
if(ERR_IF(!bd_chain->bd_chain_virt))
ERR_IF((ARRSIZE(pdev->tx_info.chain) <= cid)))
ERR_IF((ARRSIZE(pdev->rx_info.rxq_chain) <= cid)))
ERR_IF((ARRSIZE(pdev->rx_info.rcq_chain) <= cid)))
if(ERR_IF(!pdev)) {
if (ERR_IF(CHK_NULL(pdev) || CHK_NULL(txq) || !buf_size)) {
if (ERR_IF(CHK_NULL(pdev) || CHK_NULL(txq) || CHK_NULL(coalesce_buf))) {
if (ERR_IF(CHK_NULL(pdev) || CHK_NULL(txq) ||
if (ERR_IF(copied_bytes != pkt_size)) {
if (ERR_IF(packet->u1.tx.coalesce_buf != NULL))
if (ERR_IF(con_state != LM_CON_STATE_OPEN))
if (ERR_IF(lm_get_con_state(pdev, cid) != LM_CON_STATE_HALT))
if (ERR_IF(lm_get_con_state(pdev, cid) != LM_CON_STATE_TERMINATE))
if ERR_IF(!mac_addr)
if ERR_IF(!pdev || !mac_addr)
if ERR_IF(!(pdev && hash_key))
if ERR_IF(!(pdev && chain_indirection_table))
ERR_IF( type >= ARRSIZE( pdev->cid_recycled_callbacks ) ) ||
ERR_IF( NULL != pdev->cid_recycled_callbacks[type] ) )
ERR_IF( type >= ARRSIZE( pdev->cid_recycled_callbacks ) ) ||
ERR_IF( type >= ARRSIZE( pdev->sq_info.sq_comp_cb ) ) ||
ERR_IF( NULL != pdev->sq_info.sq_comp_cb[type] ) )
ERR_IF( type >= ARRSIZE( pdev->sq_info.sq_comp_cb ) ) ||
if ERR_IF(!pdev || !mac_addr)
if ( ERR_IF( seq_num != sp_req_mgr->req_seq_number ) ||
ERR_IF( sp_req_mgr->blocked == FALSE ) )
if (ERR_IF(!s_list_is_empty(&sp_req_mgr->pending_reqs)))
if ERR_IF( LM_STATS_FLAGS_ALL != stats_flags_assigned )
if ERR_IF( LM_STATUS_SUCCESS != lm_status )
if ERR_IF( LM_STATUS_SUCCESS != lm_status )
if ERR_IF( LM_STATUS_SUCCESS != lm_status )
if ERR_IF( LM_STATUS_SUCCESS != lm_status )
if ERR_IF( LM_STATUS_SUCCESS != lm_status )
if ERR_IF( LM_STATUS_SUCCESS != lm_status )
if ERR_IF( LM_STATUS_SUCCESS != lm_status )
if ERR_IF( LM_STATUS_SUCCESS != lm_status )
if( CHK_NULL( crc32_packet) || ERR_IF( 0 == crc32_length ) || ERR_IF( 0 != ( crc32_length % 8 ) ) )
if (ERR_IF(gen_buf == NULL)) {
ERR_IF((ARRSIZE(pdev->params.l2_cli_con_params) <= chain_idx) ||
ERR_IF((ARRSIZE(pdev->params.l2_cli_con_params) <= chain_idx) ||
if (ERR_IF(tcp->tcp_const.hash_value >= (u8_t)USTORM_INDIRECTION_TABLE_SIZE)) {
if (ERR_IF(expect_rwin != tcp->tcp_cached.initial_rcv_wnd)) {
if ERR_IF(tcp_cached->initial_rcv_wnd > MAX_INITIAL_RCV_WND) {
if (ERR_IF(!eq_chain->bd_chain.bd_chain_virt))
if(CHK_NULL(pdev) || ERR_IF((ARRSIZE(pdev->iscsi_info.run_time.eq_chain) <= idx)))
if(CHK_NULL(pdev) || ERR_IF((ARRSIZE(pdev->fcoe_info.run_time.eq_chain) <= idx)))
if ERR_IF(!(pdev && IS_CHANNEL_VFDEV(pdev) && mess && pdev->vars.vf_pf_mess.message_virt_addr)) {