Skip to content

Commit 8835f58

Browse files
committed
feat(s2n-quic-dc): implement recv path packet pool
1 parent d88faa4 commit 8835f58

File tree

9 files changed

+1087
-7
lines changed

9 files changed

+1087
-7
lines changed

dc/s2n-quic-dc/Cargo.toml

+13-7
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,12 @@ exclude = ["corpus.tar.gz"]
1212

1313
[features]
1414
default = ["tokio"]
15-
testing = ["bolero-generator", "s2n-quic-core/testing", "s2n-quic-platform/testing", "tracing-subscriber"]
15+
testing = [
16+
"bolero-generator",
17+
"s2n-quic-core/testing",
18+
"s2n-quic-platform/testing",
19+
"tracing-subscriber",
20+
]
1621
tokio = ["tokio/io-util", "tokio/net", "tokio/rt-multi-thread", "tokio/time"]
1722

1823
[dependencies]
@@ -41,7 +46,9 @@ hashbrown = "0.15"
4146
thiserror = "2"
4247
tokio = { version = "1", default-features = false, features = ["sync"] }
4348
tracing = "0.1"
44-
tracing-subscriber = { version = "0.3", features = ["env-filter"], optional = true }
49+
tracing-subscriber = { version = "0.3", features = [
50+
"env-filter",
51+
], optional = true }
4552
zerocopy = { version = "0.7", features = ["derive"] }
4653
zeroize = "1"
4754
parking_lot = "0.12"
@@ -53,13 +60,12 @@ bolero-generator = "0.13"
5360
insta = "1"
5461
s2n-codec = { path = "../../common/s2n-codec", features = ["testing"] }
5562
s2n-quic-core = { path = "../../quic/s2n-quic-core", features = ["testing"] }
56-
s2n-quic-platform = { path = "../../quic/s2n-quic-platform", features = ["testing"] }
63+
s2n-quic-platform = { path = "../../quic/s2n-quic-platform", features = [
64+
"testing",
65+
] }
5766
tokio = { version = "1", features = ["full"] }
5867
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
5968

6069
[lints.rust.unexpected_cfgs]
6170
level = "warn"
62-
check-cfg = [
63-
'cfg(kani)',
64-
'cfg(todo)',
65-
]
71+
check-cfg = ['cfg(fuzzing)', 'cfg(kani)', 'cfg(todo)']

dc/s2n-quic-dc/src/socket.rs

+2
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,6 @@ pub use bpf::Pair;
1313
#[cfg(not(target_os = "linux"))]
1414
pub use pair::Pair;
1515

16+
pub mod recv;
17+
1618
pub use s2n_quic_platform::socket::options::{Options, ReusePort};

dc/s2n-quic-dc/src/socket/recv.rs

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
// SPDX-License-Identifier: Apache-2.0
3+
4+
pub mod descriptor;
5+
pub mod pool;
6+
pub mod router;
7+
pub mod udp;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
version https://git-lfs.github.com/spec/v1
2+
oid sha256:8cbb74f24a784d9c26aa6d4a973e600ef8545302e8f0e5e24612e0ac20a406ac
3+
size 2232320

0 commit comments

Comments
 (0)