Skip to content

Commit 50b2a72

Browse files
daiwei1983facebook-github-bot
authored andcommitted
exlcude TTL1 trap when set up TTL zero for trap loop
Summary: Currently AgentVoqSwitchLineRateTest.dramBlocked is failing during warmboot because both TTL_0 and TTL_1 trap are programmed. They correspond to the same underlying sai object programming the same rx reason https://fburl.com/code/nsewyupj, which could lead to conflict or confusion during warmboot when agent attempt to load sai objects and restore switch state. This diff resolves this issue by excluding TTL1 trap when calling setTTLZeroCpuConfig() Reviewed By: jasmeetbagga Differential Revision: D68798218 Privacy Context Container: L1125642 fbshipit-source-id: 557310efc9d7bee273f4ad7b2cb78e4c426a2251
1 parent 445cf26 commit 50b2a72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fboss/agent/test/utils/CoppTestUtils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ void setTTLZeroCpuConfig(
685685
// don't configure if not supported
686686
return;
687687
}
688-
688+
excludeTTL1TrapConfig(config);
689689
std::vector<cfg::PacketRxReasonToQueue> rxReasons;
690690
bool addTtlRxReason = true;
691691
if (config.cpuTrafficPolicy().has_value() &&

0 commit comments

Comments
 (0)