From a313a7c0341177c7bd1834662d0059298e47aefa Mon Sep 17 00:00:00 2001 From: Jake Shadle Date: Fri, 20 Dec 2024 12:26:29 +0100 Subject: [PATCH] . --- Cargo.toml | 1 - crates/ebpf/rust-toolchain.toml | 2 +- crates/ebpf/src/ebpf-main.rs | 16 ++++++++++++++++ crates/xdp/src/lib.rs | 16 ++++++++++++++++ 4 files changed, 33 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index d40c60ba1..faaf0a6d7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -82,7 +82,6 @@ test = false [dependencies] # Local quilkin-macros = { version = "0.10.0-dev", path = "./crates/macros" } -#quilkin-xdp = { version = "0.1.0", path = "crates/xdp" } quilkin-xds = {version = "0.10.0-dev", path = "crates/xds" } quilkin-proto.workspace = true diff --git a/crates/ebpf/rust-toolchain.toml b/crates/ebpf/rust-toolchain.toml index 11ba806bb..4df1381de 100644 --- a/crates/ebpf/rust-toolchain.toml +++ b/crates/ebpf/rust-toolchain.toml @@ -21,4 +21,4 @@ components = ["rust-std"] # The actual target the `l` means little endian, we don't target big endian targets = ["bpfel-unknown-none"] # We don't need documentation -profile = "minimal" \ No newline at end of file +profile = "minimal" diff --git a/crates/ebpf/src/ebpf-main.rs b/crates/ebpf/src/ebpf-main.rs index 6978e5b91..8c0cb1dab 100644 --- a/crates/ebpf/src/ebpf-main.rs +++ b/crates/ebpf/src/ebpf-main.rs @@ -1,3 +1,19 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #![no_std] #![no_main] #![allow(internal_features)] diff --git a/crates/xdp/src/lib.rs b/crates/xdp/src/lib.rs index ff4db1e76..2d70e4091 100644 --- a/crates/xdp/src/lib.rs +++ b/crates/xdp/src/lib.rs @@ -1,3 +1,19 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + use xdp::nic::NicIndex; const PROGRAM: &[u8] = include_bytes!("../bin/packet-router.bin");