Skip to content

Commit 8170dad

Browse files
Parvez Shaikhfacebook-github-bot
Parvez Shaikh
authored andcommitted
use pipeline bypass mode of sending packet
Summary: As titled. Reviewed By: jasmeetbagga Differential Revision: D68857451 fbshipit-source-id: 766716e4741d91b3c7f023dea2411a6b96464dcf
1 parent 7b3e9f6 commit 8170dad

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

fboss/agent/test/agent_hw_tests/AgentPortBandWidthTests.cpp

+5-1
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,12 @@ class AgentPortBandwidthTest : public AgentHwTest {
118118
255 /* Hop limit */,
119119
payload);
120120

121+
std::optional<PortDescriptor> port{};
122+
if (getHwAsic()->getAsicType() == cfg::AsicType::ASIC_TYPE_CHENAB) {
123+
port = PortDescriptor(getPort0());
124+
}
121125
getAgentEnsemble()->sendPacketAsync(
122-
std::move(txPacket), std::nullopt, std::nullopt);
126+
std::move(txPacket), port, std::nullopt);
123127
}
124128

125129
void sendUdpPkts(uint8_t dscpVal, int cnt = 256, int payloadLen = 0) {

0 commit comments

Comments
 (0)