Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[workspace]

members = [
"acl",
"args",
"cli",
"common",
Expand Down Expand Up @@ -64,6 +65,7 @@ repository = "https://github.com/githedgehog/dataplane/"
# justifying why it is workspace-wide.

# Internal
acl = { path = "./acl", package = "dataplane-acl", features = [] }
args = { path = "./args", package = "dataplane-args", features = [] }
cli = { path = "./cli", package = "dataplane-cli", features = [] }
common = { path = "./common", package = "dataplane-common", features = [] }
Expand Down Expand Up @@ -260,6 +262,15 @@ overflow-checks = true
# modified to use conditional compilation to work in wasm/miri.
# miss: packages that are not logically hopeless, or pointless in wasm/miri, but which currently just happen to contain
# logic which can and should eventually be factored out or abstracted into something suitable for wasm/miri.
[workspace.metadata.package.acl]
package = "dataplane-acl"
# Default features enable the DPDK `rte_acl` backend, which pulls in
# `dpdk-sys` (bindgen against the system DPDK headers). miri can't
# build that path on the cross target, and the reference backend's
# unit tests run fine outside the miri profile.
miri = false # hopeless + pointless
wasm = false # hopeless + pointless
Comment on lines +265 to +272

[workspace.metadata.package.args]
package = "dataplane-args"
miri = true
Expand Down
14 changes: 14 additions & 0 deletions acl/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[package]
name = "dataplane-acl"
edition.workspace = true
license.workspace = true
publish.workspace = true
version.workspace = true

[dependencies]
arrayvec = { workspace = true, default-features = true }
concurrency = { workspace = true, features = [] }
lookup = { workspace = true, features = [] }
match-action = { workspace = true, features = ["derive"] }
net = { workspace = true, features = [] }
thiserror = { workspace = true }
26 changes: 26 additions & 0 deletions acl/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright Open Network Fabric Authors

#![deny(
unsafe_code,
clippy::all,
clippy::pedantic,
clippy::unwrap_used,
clippy::expect_used,
clippy::panic
)]
#![allow(missing_docs)] // shape settling; doc once stable

//! Match-action classifier backends for [`match_action::MatchKey`]
//! tables, behind the [`lookup::Lookup`] interface.
//!
//! - [`reference`](mod@reference): linear-scan software classifier;
//! differential oracle and a mutable cascade front. Always built.
Comment on lines +17 to +18
//!
//! The production `rte_acl` backend lands behind a follow-up `dpdk`
//! feature gate.
//!
//! [`lookup::Lookup`]: lookup::Lookup
//! [`match_action::MatchKey`]: match_action::MatchKey

pub mod reference;
Loading
Loading