better logging filters, changed default MTU to 10K
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
DataHoarder 2021-11-08 20:32:51 +01:00
parent 1137c635c3
commit 51bf50076b
2 changed files with 12 additions and 5 deletions

View file

@ -61,15 +61,20 @@ bool FM10K::IES::init() {
std::abort();
}
if(fmEnableLoggingLevel(FM_LOG_LEVEL_ALL_VERBOSE) != FM_OK){
//if(fmEnableLoggingLevel(FM_LOG_LEVEL_ALL_VERBOSE) != FM_OK){
if(fmEnableLoggingLevel(FM_LOG_LEVEL_ALL) != FM_OK){
std::abort();
}
//if(fmEnableLoggingCategory(FM_LOG_CAT_ALL) != FM_OK){
/*if(fmSetLoggingFilter(FM_LOG_CAT_PORT | FM_LOG_CAT_SWITCH | FM_LOG_CAT_SERDES | FM_LOG_CAT_STATE_MACHINE | FM_LOG_CAT_PLATFORM | FM_LOG_CAT_EVENT_INTR, FM_LOG_LEVEL_ALL_VERBOSE,
//must remove "api.platform.lib.config.debug"
if(fmSetLoggingFilter(FM_LOG_CAT_SWITCH | FM_LOG_CAT_PLATFORM, FM_LOG_LEVEL_ALL_VERBOSE,
nullptr, nullptr) != FM_OK){
std::abort();
}*/
}
if(fmCreateSemaphore("seq", FM_SEM_BINARY, &IES_Static::semaphore, 0) != FM_OK){
std::abort();
@ -197,7 +202,7 @@ bool FM10K::IES::init() {
}
{
if(!is_fibm && !is_pcie){
fm_int fs = 9000;
fm_int fs = 10000;
err = fmSetPortAttribute(IES_Static::sw, port, FM_PORT_MAX_FRAME_SIZE, &fs);
if (err != FM_OK){
std::abort();

View file

@ -22,7 +22,9 @@ namespace FM10K {
{"api.platform.config.platformName", {TlvType::Text, "rrc_2x100gm"}},
{"api.platform.config.debug", {TlvType::Text, "CONFIG,MOD_STATE,MOD_INTR,MOD_TYPE,PLAT_LOG"}},
{"api.platform.config.debug", {TlvType::Text, "CONFIG,MOD_STATE,MOD_LED,MOD_INTR,MOD_TYPE,PLAT_LOG"}},
//{"api.platform.lib.config.debug", {TlvType::Text, "I2C_RW,I2C_MUX,PORT_LED"}},
{"api.platform.config.switch.0.switchNumber", {TlvType::Integer, "0"}},