diff --git a/quinn-udp/benches/throughput.rs b/quinn-udp/benches/throughput.rs index 20328a852..68a1e9a52 100644 --- a/quinn-udp/benches/throughput.rs +++ b/quinn-udp/benches/throughput.rs @@ -53,7 +53,7 @@ pub fn criterion_benchmark(c: &mut Criterion) { group.throughput(criterion::Throughput::Bytes(TOTAL_BYTES as u64)); let gso_segments = if gso_enabled { - send_state.max_gso_segments() + send_state.max_gso_segments(&dst_addr) } else { NonZeroUsize::MIN };