Skip to content

Commit 7b3e9f6

Browse files
Ron Hefacebook-github-bot
Ron He
authored andcommitted
Remove unused helper to set hash seed
Summary: As titled. No longer needed as fw will rotate the hash seeds. Reviewed By: srikrishnagopu Differential Revision: D68802032 fbshipit-source-id: ea964837bdbb0855a6e1b1635b357d050ab55314
1 parent c1b2751 commit 7b3e9f6

File tree

2 files changed

+0
-17
lines changed

2 files changed

+0
-17
lines changed

fboss/agent/hw/sai/switch/SaiPortManager.cpp

-15
Original file line numberDiff line numberDiff line change
@@ -3028,21 +3028,6 @@ void SaiPortManager::changeTxEnable(
30283028
}
30293029
}
30303030

3031-
void SaiPortManager::updateConditionalEntropySeed(PortID portID, uint32_t seed)
3032-
const {
3033-
// TODO(zecheng): Update flag when new 12.0 release has the attribute
3034-
#if defined(BRCM_SAI_SDK_DNX_GTE_11_0) && !defined(BRCM_SAI_SDK_DNX_GTE_12_0)
3035-
auto portHandle = getPortHandle(portID);
3036-
if (!portHandle) {
3037-
throw FbossError(
3038-
"Cannot update conditional entropy seed on non existent port: ",
3039-
portID);
3040-
}
3041-
portHandle->port->setOptionalAttribute(
3042-
SaiPortTraits::Attributes::CondEntropyRehashSeed{seed});
3043-
#endif
3044-
}
3045-
30463031
void SaiPortManager::changePortFlowletConfig(
30473032
const std::shared_ptr<Port>& oldPort,
30483033
const std::shared_ptr<Port>& newPort) {

fboss/agent/hw/sai/switch/SaiPortManager.h

-2
Original file line numberDiff line numberDiff line change
@@ -296,8 +296,6 @@ class SaiPortManager {
296296
bool rxFrequencyRPMSupported() const;
297297
bool rxSNRSupported() const;
298298
bool fecCodewordsStatsSupported(PortID portID) const;
299-
// TODO(zecheng): Remove this once firmware support is ready
300-
void updateConditionalEntropySeed(PortID portID, uint32_t seed) const;
301299

302300
private:
303301
PortSaiId addPortImpl(const std::shared_ptr<Port>& swPort);

0 commit comments

Comments
 (0)