-
Notifications
You must be signed in to change notification settings - Fork 308
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: 1. Update the ECMP object with DLB config in post warm boot 2. Verify the DLB data path Differential Revision: D50400205 Privacy Context Container: L1125642 fbshipit-source-id: e0ee54894cd42382325e8d5cf8919c342d359721
- Loading branch information
1 parent
37439b0
commit 042ab45
Showing
5 changed files
with
116 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
fboss/agent/hw/test/dataplane_tests/HwLoadBalancerTestsV6EcmpToFlowlet.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/* | ||
* Copyright (c) 2004-present, Facebook, Inc. | ||
* All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
* | ||
*/ | ||
|
||
#include "fboss/agent/Platform.h" | ||
#include "fboss/agent/hw/switch_asics/HwAsic.h" | ||
#include "fboss/agent/hw/test/HwTestPacketUtils.h" | ||
#include "fboss/agent/hw/test/dataplane_tests/HwLoadBalancerTests.h" | ||
|
||
namespace facebook::fboss { | ||
|
||
class HwLoadBalancerTestV6EcmpToFlowlet | ||
: public HwLoadBalancerTest<utility::HwIpV6RoCEEcmpDataPlaneTestUtil> { | ||
std::unique_ptr<utility::HwIpV6RoCEEcmpDataPlaneTestUtil> getECMPHelper() | ||
override { | ||
return std::make_unique<utility::HwIpV6RoCEEcmpDataPlaneTestUtil>( | ||
getHwSwitchEnsemble(), RouterID(0)); | ||
} | ||
|
||
private: | ||
cfg::SwitchConfig initialConfig() const override { | ||
auto hwSwitch = getHwSwitch(); | ||
auto cfg = utility::onePortPerInterfaceConfig( | ||
hwSwitch, masterLogicalPortIds(), getAsic()->desiredLoopbackModes()); | ||
return cfg; | ||
} | ||
|
||
void SetUp() override { | ||
FLAGS_flowletSwitchingEnable = true; | ||
HwLoadBalancerTest::SetUp(); | ||
} | ||
}; | ||
|
||
RUN_HW_LOAD_BALANCER_TEST_FOR_ECMP_TO_DLB( | ||
HwLoadBalancerTestV6EcmpToFlowlet, | ||
Ecmp, | ||
Full, | ||
FrontPanel) | ||
|
||
} // namespace facebook::fboss |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters