File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed
tools/ft-orchestration/src/probe Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ sim_threshold:
96
96
- id : one_packet_short_timeout
97
97
marks : []
98
98
mbps_accuracy : 100
99
- mbps_required : 900
99
+ mbps_required : 1000
100
100
speed_max : 12500
101
101
probe :
102
102
active_timeout : 10
@@ -120,7 +120,7 @@ sim_threshold:
120
120
- id : one_packet_one_min_timeout
121
121
marks : []
122
122
mbps_accuracy : 100
123
- mbps_required : 5000
123
+ mbps_required : 1000
124
124
speed_max : 12500
125
125
probe :
126
126
active_timeout : 60
Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ def __init__(
119
119
self ._interfaces = interfaces_names
120
120
self ._zero_copy = any (ifc .startswith ("zc:" ) for ifc in self ._interfaces )
121
121
122
- if "max_hash_size" not in kwargs and cache_size :
122
+ if cache_size :
123
123
kwargs ["hash_size" ] = min (
124
124
2 ** cache_size , kwargs .get ("hash_size" , float ("inf" ))
125
125
)
Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ def __init__(
128
128
self ._interfaces = interfaces_names
129
129
self ._zero_copy = any (ifc .startswith ("zc:" ) for ifc in self ._interfaces )
130
130
131
- if "max_num_flows" not in kwargs and cache_size :
131
+ if cache_size :
132
132
kwargs ["max_num_flows" ] = 2 ** cache_size
133
133
134
134
settings : NProbeSettings = NProbeSettings (
Original file line number Diff line number Diff line change @@ -208,7 +208,7 @@ def __init__(
208
208
kwargs ["tls" ] = YafSettings .TLSOptions (** (kwargs .get ("tls" , {})))
209
209
kwargs ["log" ] = YafSettings .LoggingOptions (** (kwargs .get ("log" , {})))
210
210
211
- if "maxflows" not in kwargs and cache_size :
211
+ if cache_size :
212
212
kwargs ["maxflows" ] = 2 ** cache_size
213
213
214
214
self ._settings = YafSettings (
You can’t perform that action at this time.
0 commit comments