Skip to content

Commit

Permalink
feat(s2n-quic-dc): implement recv path packet pool
Browse files Browse the repository at this point in the history
  • Loading branch information
camshaft committed Feb 24, 2025
1 parent 17b5ff2 commit a1e1b25
Show file tree
Hide file tree
Showing 9 changed files with 1,087 additions and 7 deletions.
20 changes: 13 additions & 7 deletions dc/s2n-quic-dc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@ exclude = ["corpus.tar.gz"]

[features]
default = ["tokio"]
testing = ["bolero-generator", "s2n-quic-core/testing", "s2n-quic-platform/testing", "tracing-subscriber"]
testing = [
"bolero-generator",
"s2n-quic-core/testing",
"s2n-quic-platform/testing",
"tracing-subscriber",
]
tokio = ["tokio/io-util", "tokio/net", "tokio/rt-multi-thread", "tokio/time"]

[dependencies]
Expand Down Expand Up @@ -41,7 +46,9 @@ hashbrown = "0.15"
thiserror = "2"
tokio = { version = "1", default-features = false, features = ["sync"] }
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"], optional = true }
tracing-subscriber = { version = "0.3", features = [
"env-filter",
], optional = true }
zerocopy = { version = "0.7", features = ["derive"] }
zeroize = "1"
parking_lot = "0.12"
Expand All @@ -53,13 +60,12 @@ bolero-generator = "0.12"
insta = "1"
s2n-codec = { path = "../../common/s2n-codec", features = ["testing"] }
s2n-quic-core = { path = "../../quic/s2n-quic-core", features = ["testing"] }
s2n-quic-platform = { path = "../../quic/s2n-quic-platform", features = ["testing"] }
s2n-quic-platform = { path = "../../quic/s2n-quic-platform", features = [
"testing",
] }
tokio = { version = "1", features = ["full"] }
tracing-subscriber = { version = "0.3", features = ["env-filter"] }

[lints.rust.unexpected_cfgs]
level = "warn"
check-cfg = [
'cfg(kani)',
'cfg(todo)',
]
check-cfg = ['cfg(fuzzing)', 'cfg(kani)', 'cfg(todo)']
2 changes: 2 additions & 0 deletions dc/s2n-quic-dc/src/socket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,6 @@ pub use bpf::Pair;
#[cfg(not(target_os = "linux"))]
pub use pair::Pair;

pub mod recv;

pub use s2n_quic_platform::socket::options::{Options, ReusePort};
7 changes: 7 additions & 0 deletions dc/s2n-quic-dc/src/socket/recv.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

pub mod descriptor;
pub mod pool;
pub mod router;
pub mod udp;
Git LFS file not shown
Loading

0 comments on commit a1e1b25

Please sign in to comment.