mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-04-21 09:20:48 +00:00
Remove minor non-functional flow hashing stubs
This commit is contained in:
parent
b3331c5ec2
commit
5f8714a0cd
@ -233,12 +233,10 @@ void Bond::recordOutgoingPacket(const SharedPtr<Path> &path, const uint64_t pack
|
||||
}
|
||||
}
|
||||
}
|
||||
if (_allowFlowHashing) {
|
||||
if (_allowFlowHashing && (flowId != ZT_QOS_NO_FLOW)) {
|
||||
Mutex::Lock _l(_flows_m);
|
||||
if (_flows.count(flowId)) {
|
||||
_flows[flowId]->recordOutgoingBytes(payloadLength);
|
||||
}
|
||||
if (_allowFlowHashing && (flowId != ZT_QOS_NO_FLOW)) {
|
||||
Mutex::Lock _l(_flows_m);
|
||||
if (_flows.count(flowId)) {
|
||||
_flows[flowId]->recordOutgoingBytes(payloadLength);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1164,18 +1162,13 @@ void Bond::processBalanceTasks(const int64_t now)
|
||||
* Tasks specific to (Balance Round Robin)
|
||||
*/
|
||||
if (_bondingPolicy == ZT_BONDING_POLICY_BALANCE_RR) {
|
||||
if (_allowFlowHashing) {
|
||||
// TODO: Should ideally failover from (idx) to a random link, this is so that (idx+1) isn't overloaded
|
||||
}
|
||||
else if (!_allowFlowHashing) {
|
||||
// Nothing
|
||||
}
|
||||
// Nothing
|
||||
}
|
||||
/**
|
||||
* Tasks specific to (Balance XOR)
|
||||
*/
|
||||
if (_bondingPolicy == ZT_BONDING_POLICY_BALANCE_XOR) {
|
||||
// Nothing specific for XOR
|
||||
// Nothing
|
||||
}
|
||||
/**
|
||||
* Tasks specific to (Balance Aware)
|
||||
|
Loading…
x
Reference in New Issue
Block a user