Merge "[NETD-BPF#3] Relocate Tethering/bpf_progs and rename bpf_tethering_headers" am: 5fabfd8dd0 am: 47790a1f63

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1870273

Change-Id: Ib90018a3f17b05eadcf9a6fd374199aff2446f87
This commit is contained in:
Ken Chen
2021-12-02 13:38:40 +00:00
committed by Automerger Merge Worker
7 changed files with 4 additions and 4 deletions

View File

@@ -94,7 +94,7 @@ cc_library {
min_sdk_version: "30",
header_libs: [
"bpf_syscall_wrappers",
"bpf_tethering_headers",
"bpf_connectivity_headers",
],
srcs: [
"jni/*.cpp",

View File

@@ -50,7 +50,7 @@ import java.util.concurrent.atomic.AtomicInteger;
@RunWith(DevSdkIgnoreRunner.class)
@IgnoreUpTo(Build.VERSION_CODES.R)
public final class BpfMapTest {
// Sync from packages/modules/Connectivity/Tethering/bpf_progs/offload.c.
// Sync from packages/modules/Connectivity/bpf_progs/offload.c.
private static final int TEST_MAP_SIZE = 16;
private static final String TETHER_DOWNSTREAM6_FS_PATH =
"/sys/fs/bpf/tethering/map_test_tether_downstream6_map";

View File

@@ -22,7 +22,7 @@ package {
}
cc_library_headers {
name: "bpf_tethering_headers",
name: "bpf_connectivity_headers",
vendor_available: false,
host_supported: false,
export_include_dirs: ["."],

View File

@@ -24,7 +24,7 @@
// Common definitions for BPF code in the tethering mainline module.
// These definitions are available to:
// - The BPF programs in Tethering/bpf_progs/
// - JNI code that depends on the bpf_tethering_headers library.
// - JNI code that depends on the bpf_connectivity_headers library.
#define BPF_TETHER_ERRORS \
ERR(INVALID_IP_VERSION) \