File tree Expand file tree Collapse file tree
tools/ft-orchestration/src/probe Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ sim_threshold:
9696 - id : one_packet_short_timeout
9797 marks : []
9898 mbps_accuracy : 100
99- mbps_required : 900
99+ mbps_required : 1000
100100 speed_max : 12500
101101 probe :
102102 active_timeout : 10
@@ -120,7 +120,7 @@ sim_threshold:
120120 - id : one_packet_one_min_timeout
121121 marks : []
122122 mbps_accuracy : 100
123- mbps_required : 5000
123+ mbps_required : 1000
124124 speed_max : 12500
125125 probe :
126126 active_timeout : 60
Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ def __init__(
119119 self ._interfaces = interfaces_names
120120 self ._zero_copy = any (ifc .startswith ("zc:" ) for ifc in self ._interfaces )
121121
122- if "max_hash_size" not in kwargs and cache_size :
122+ if cache_size :
123123 kwargs ["hash_size" ] = min (
124124 2 ** cache_size , kwargs .get ("hash_size" , float ("inf" ))
125125 )
Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ def __init__(
128128 self ._interfaces = interfaces_names
129129 self ._zero_copy = any (ifc .startswith ("zc:" ) for ifc in self ._interfaces )
130130
131- if "max_num_flows" not in kwargs and cache_size :
131+ if cache_size :
132132 kwargs ["max_num_flows" ] = 2 ** cache_size
133133
134134 settings : NProbeSettings = NProbeSettings (
Original file line number Diff line number Diff line change @@ -208,7 +208,7 @@ def __init__(
208208 kwargs ["tls" ] = YafSettings .TLSOptions (** (kwargs .get ("tls" , {})))
209209 kwargs ["log" ] = YafSettings .LoggingOptions (** (kwargs .get ("log" , {})))
210210
211- if "maxflows" not in kwargs and cache_size :
211+ if cache_size :
212212 kwargs ["maxflows" ] = 2 ** cache_size
213213
214214 self ._settings = YafSettings (
You can’t perform that action at this time.
0 commit comments