diff options
| author | Chenbo Feng <fengc@google.com> | 2018-12-11 12:23:24 -0800 |
|---|---|---|
| committer | Chenbo Feng <fengc@google.com> | 2019-02-15 04:33:30 +0000 |
| commit | 47dd073ca85df9fa7dc611f7b6fafcb0f7fccefa (patch) | |
| tree | 2819bfe21613d72a1e7f89f3c71b5d77ff6f9d83 /server/TrafficControllerTest.cpp | |
| parent | abdb0bde3a39717c5b8c2e1f8b2b5687880bf85e (diff) | |
| download | platform_system_netd-47dd073ca85df9fa7dc611f7b6fafcb0f7fccefa.tar.gz platform_system_netd-47dd073ca85df9fa7dc611f7b6fafcb0f7fccefa.tar.bz2 platform_system_netd-47dd073ca85df9fa7dc611f7b6fafcb0f7fccefa.zip | |
Get bpf level when check bpf support
Instead of return boolean, bpf support check now returns a integer
represent the current bpf level on device. This level is used to decide
if the device support some advanced bpf feature such as map_in_map and
bpf cgroup socket filter. Delete the binder call for bpf status check
since no one is using it.
Bug: 111441138
Test: libnetdbpf_test, netd_integration_test
Change-Id: Ib70c07647ffe491d493b4582b4b4b0eba7caf3a9
Diffstat (limited to 'server/TrafficControllerTest.cpp')
| -rw-r--r-- | server/TrafficControllerTest.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/server/TrafficControllerTest.cpp b/server/TrafficControllerTest.cpp index 31d3b6bc4..05702e21f 100644 --- a/server/TrafficControllerTest.cpp +++ b/server/TrafficControllerTest.cpp @@ -102,8 +102,6 @@ class TrafficControllerTest : public ::testing::Test { mFakeUidPermissionMap.reset( createMap(BPF_MAP_TYPE_HASH, sizeof(uint32_t), sizeof(uint8_t), TEST_MAP_SIZE, 0)); ASSERT_TRUE(mFakeUidPermissionMap.isValid()); - // Make sure trafficController use the eBPF code path. - mTc.ebpfSupported = true; mTc.mCookieTagMap.reset(mFakeCookieTagMap.getMap()); mTc.mUidCounterSetMap.reset(mFakeUidCounterSetMap.getMap()); |
