Repository navigation
Conversation
|
@jchallag has imported this pull request. If you are a Meta employee, you can view this in D119364585. |
| auto config = this->getAgentEnsemble()->getCurrentConfig(); | ||
| auto aclName = folly::to<std::string>("trap-", this->kV6RouteDstIp.str()); | ||
| utility::delAcl(&config, aclName); | ||
| utility::delMatcher(&config, aclName); |
There was a problem hiding this comment.
I think you should use delCPUMatcher() to rightly remove the Action. delmatcher() seems to be a NO-op here
There was a problem hiding this comment.
Hi @jchallag
Thank you for your incredibly sharp and precise review! You are 100% correct, utility::delMatcher only cleans up config->dataPlaneTrafficPolicy().
Now I added a new utility::delCPUMatcher() helper in AclTestUtils to target the CPU traffic policy and updated the VerifyDscpQueueMapping setup block to use utility::delCPUMatcher(&config, aclName).
Retested the case and all passed.
- NPU0
Running all tests took 0:01:47.259575 between 2026-09-10 05:05:22.888876 and 2026-09-10 05:07:10.148451
[ PASSED ] cold_boot.AgentSrv6DecapTest/0.VerifyDscpQueueMapping (16878 ms)
[ PASSED ] warm_boot.AgentSrv6DecapTest/0.VerifyDscpQueueMapping (10908 ms)
[ PASSED ] cold_boot.AgentSrv6DecapTest/1.VerifyDscpQueueMapping (17789 ms)
[ PASSED ] warm_boot.AgentSrv6DecapTest/1.VerifyDscpQueueMapping (10816 ms)
Summary:
PASSED : 4
FAILED : 0
SKIPPED : 0
TIMEOUT : 0
Test output stored at: hwtest_results_2026_Sep_10-05_07_10_AM.csv
- NPU1
Running all tests took 0:01:47.729228 between 2026-09-10 05:07:38.133611 and 2026-09-10 05:09:25.862839
[ PASSED ] cold_boot.AgentSrv6DecapTest/0.VerifyDscpQueueMapping (16976 ms)
[ PASSED ] warm_boot.AgentSrv6DecapTest/0.VerifyDscpQueueMapping (10943 ms)
[ PASSED ] cold_boot.AgentSrv6DecapTest/1.VerifyDscpQueueMapping (17485 ms)
[ PASSED ] warm_boot.AgentSrv6DecapTest/1.VerifyDscpQueueMapping (10812 ms)
Summary:
PASSED : 4
FAILED : 0
SKIPPED : 0
TIMEOUT : 0
Test output stored at: hwtest_results_2026_Sep_10-05_09_25_AM.csv
6299016 to
99ee053
Compare
|
@gang-tao has updated the pull request. You must reimport the pull request before landing. |
|
It is not clear why the acl failure is ladakh specific. Adding @jasmeetbagga to review that part. |
|
|
Hi @gang-tao , it looks like this issue is fixed on TH platforms in a different way and we may not need this fix. We will still need multi-NPU part of this PR. can you please rebase and update? |
…i-NPU in AgentSrv6DecapTest
99ee053 to
59e70ad
Compare
|
@gang-tao has updated the pull request. You must reimport the pull request before landing. |
|
@gang-tao can you update the summary, title and testplan as well? hope it is verified on the latest rebase. |
After rebasing and making the changes, I ran into two regression issues: After the fix, I hit the original issue again. I wanted to check if this was already tested and verified on a single NPU? Could you let me know which single NPU platform this was fixed on? I'll double-check it on another platform (TH6) as well |
@jchallag |
Pre-submission checklist
pip install -r requirements-dev.txt && pre-commit installpre-commit runSummary
In AgentSrv6DecapTest switched test packets were previously injected via
this->getSw()->sendPacketSwitchedAsync(...)without specifying the targetSwitchID.In multi-NPU split-agent environments (e.g. dual-NPU
leh800bcls), this caused switched traffic to fallback and route exclusively to Switch 0. Consequently, test cases running on secondary NPUs (Switch 1) timed out with 0 packets received.This PR replaces
getSw()->sendPacketSwitchedAsyncwiththis->sendPacketSwitchedAsync, which dynamically routes traffic to the activeSwitchIDunder test.Test Plan
Case passed on both NPU0 and NPU1: