Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 11 additions & 9 deletions fboss/agent/hw/test/HwVerifyPfcConfigInHwTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -288,9 +288,7 @@ class HwVerifyPfcConfigInHwTest : public HwTest {
2000,
cfg::PfcWatchdogRecoveryAction::DROP,
"Verify PFC watchdog deadlock detection timer longer value"});
} else if (
getAsic()->getAsicType() == cfg::AsicType::ASIC_TYPE_YUBA ||
getAsic()->getAsicType() == cfg::AsicType::ASIC_TYPE_G202X) {
} else if (getAsic()->getAsicType() == cfg::AsicType::ASIC_TYPE_YUBA) {
// YUBA supports a min timer value of 25msec and max of 10sec. In the
// supported range, timer value as a multiple of 25msec is expected.
wdParams.push_back(
Expand Down Expand Up @@ -394,8 +392,9 @@ TEST_F(HwVerifyPfcConfigInHwTest, PfcWatchdogProgrammingSequence) {

// All PFC WD configuration combinations to test
std::vector<PfcWdTestConfigs> configTest;
if (getAsic()->getAsicType() == cfg::AsicType::ASIC_TYPE_CHENAB) {
// Chenab ASIC requires at minimum 200ms DLD/ 400ms DLR intervals
if (getAsic()->getAsicType() == cfg::AsicType::ASIC_TYPE_CHENAB ||
getAsic()->getAsicType() == cfg::AsicType::ASIC_TYPE_YUBA) {
// Chenab and Yuba ASICs require at minimum 200ms DLD/ 400ms DLR intervals
configTest.push_back(
{200,
400,
Expand Down Expand Up @@ -452,8 +451,9 @@ TEST_F(HwVerifyPfcConfigInHwTest, PfcWatchdogProgrammingSequence) {

// PFC watchdog deadlock config on multiple ports
auto portId2 = this->portIdsForTest()[1];
if (getAsic()->getAsicType() == cfg::AsicType::ASIC_TYPE_CHENAB) {
// Chenab ASIC requires at minimum 200ms DLD/ 400ms DLR intervals
if (getAsic()->getAsicType() == cfg::AsicType::ASIC_TYPE_CHENAB ||
getAsic()->getAsicType() == cfg::AsicType::ASIC_TYPE_YUBA) {
// Chenab and Yuba ASICs require at minimum 200ms DLD/ 400ms DLR intervals
setupPfcWdAndValidateProgramming(
{200,
500,
Expand Down Expand Up @@ -489,8 +489,10 @@ TEST_F(HwVerifyPfcConfigInHwTest, PfcWatchdogProgrammingSequence) {
// In SAI implementation, PFC and PFC WD are separate attributes
// and are independently configured, so unconfiguring PFC will not
// unconfigure PFC WD.
if (getAsic()->getAsicType() == cfg::AsicType::ASIC_TYPE_CHENAB) {
// Chenab ASIC requires at minimum 200ms DLD/ 400ms DLR intervals
if (getAsic()->getAsicType() == cfg::AsicType::ASIC_TYPE_CHENAB ||
getAsic()->getAsicType() == cfg::AsicType::ASIC_TYPE_YUBA) {
// Chenab and Yuba ASICs require at minimum 200ms DLD/ 400ms DLR
// intervals
setupPfcWdAndValidateProgramming(
{200,
400,
Expand Down