debug asyn_route stream
This commit is contained in:
@@ -1148,17 +1148,6 @@ static int first_data_intercept(struct streaminfo *stream, struct pme_info *pmei
|
|||||||
goto error_out;
|
goto error_out;
|
||||||
}
|
}
|
||||||
|
|
||||||
//intercept_error: no tfe
|
|
||||||
if(tsg_diagnose_judge_streamshunt(pmeinfo->maat_result.config_id,pmeinfo) == 0) // tsg diagnose shunt
|
|
||||||
pmeinfo->tfe_id = tfe_mgr_alive_node_get(g_kni_handle->_tfe_mgr, thread_seq);
|
|
||||||
else
|
|
||||||
pmeinfo->tfe_id = tfe_mgr_alive_node_cycle_get(g_kni_handle->_tfe_mgr, (int *)&(g_kni_handle->arr_last_tfe_dispatch_index[thread_seq]));
|
|
||||||
if(pmeinfo->tfe_id < 0){
|
|
||||||
KNI_LOG_DEBUG(logger, "Intercept error: no available tfe, stream traceid = %s, stream addr = %s", pmeinfo->stream_traceid, pmeinfo->stream_addr);
|
|
||||||
pmeinfo->intcp_error = INTERCEPT_ERROR_NO_TFE;
|
|
||||||
FS_operate(g_kni_fs_handle->handle, g_kni_fs_handle->fields[KNI_FIELD_INTCPERR_NO_TFE], 0, FS_OP_ADD, 1);
|
|
||||||
goto error_out;
|
|
||||||
}
|
|
||||||
//intercept_error: not double dir
|
//intercept_error: not double dir
|
||||||
if(stream->dir != DIR_DOUBLE){
|
if(stream->dir != DIR_DOUBLE){
|
||||||
KNI_LOG_DEBUG(logger, "Intercept error: asym routing, stream traceid = %s, stream addr = %s", pmeinfo->stream_traceid, pmeinfo->stream_addr);
|
KNI_LOG_DEBUG(logger, "Intercept error: asym routing, stream traceid = %s, stream addr = %s", pmeinfo->stream_traceid, pmeinfo->stream_addr);
|
||||||
@@ -1197,6 +1186,19 @@ static int first_data_intercept(struct streaminfo *stream, struct pme_info *pmei
|
|||||||
FS_operate(g_kni_fs_handle->handle, g_kni_fs_handle->fields[KNI_FIELD_INTCPERR_EXCEED_MTU], 0, FS_OP_ADD, 1);
|
FS_operate(g_kni_fs_handle->handle, g_kni_fs_handle->fields[KNI_FIELD_INTCPERR_EXCEED_MTU], 0, FS_OP_ADD, 1);
|
||||||
goto error_out;
|
goto error_out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//intercept_error: no tfe
|
||||||
|
if(tsg_diagnose_judge_streamshunt(pmeinfo->maat_result.config_id,pmeinfo) == 0) // tsg diagnose shunt
|
||||||
|
pmeinfo->tfe_id = tfe_mgr_alive_node_get(g_kni_handle->_tfe_mgr, thread_seq);
|
||||||
|
else
|
||||||
|
pmeinfo->tfe_id = tfe_mgr_alive_node_cycle_get(g_kni_handle->_tfe_mgr, (int *)&(g_kni_handle->arr_last_tfe_dispatch_index[thread_seq]));
|
||||||
|
if(pmeinfo->tfe_id < 0){
|
||||||
|
KNI_LOG_DEBUG(logger, "Intercept error: no available tfe, stream traceid = %s, stream addr = %s", pmeinfo->stream_traceid, pmeinfo->stream_addr);
|
||||||
|
pmeinfo->intcp_error = INTERCEPT_ERROR_NO_TFE;
|
||||||
|
FS_operate(g_kni_fs_handle->handle, g_kni_fs_handle->fields[KNI_FIELD_INTCPERR_NO_TFE], 0, FS_OP_ADD, 1);
|
||||||
|
goto error_out;
|
||||||
|
}
|
||||||
|
|
||||||
//dup_traffic_check
|
//dup_traffic_check
|
||||||
if(g_kni_handle->dup_traffic_switch == 1){
|
if(g_kni_handle->dup_traffic_switch == 1){
|
||||||
//has dup traffic
|
//has dup traffic
|
||||||
|
|||||||
Reference in New Issue
Block a user