Remove native code path in BpfNetMaps.java
BpfNetMaps uses java library for updating bpf map as the default code path. This is already released to 100% production without any issues. So this CL removes the old code path from BpfNetMaps. Note that native_init only opens the bpf maps if sEnableJavaBpfMap is true. But if sEnableJavaBpfMap is true, no native code in TrafficController access the bpf map. So this CL can remove native_init. Following CL will remove the nativce codes for old code path. Bug: 217624062 Test: NetworkStaticLibsTests Change-Id: Ifba198d9e6f93b53fd1dbf3b2aafb644da0b147d
This commit is contained in:
@@ -149,7 +149,6 @@ public final class BpfNetMapsTest {
|
||||
MockitoAnnotations.initMocks(this);
|
||||
doReturn(TEST_IF_INDEX).when(mDeps).getIfIndex(TEST_IF_NAME);
|
||||
doReturn(0).when(mDeps).synchronizeKernelRCU();
|
||||
BpfNetMaps.setEnableJavaBpfMapForTest(true /* enable */);
|
||||
BpfNetMaps.setConfigurationMapForTest(mConfigurationMap);
|
||||
mConfigurationMap.updateEntry(UID_RULES_CONFIGURATION_KEY, new U32(0));
|
||||
mConfigurationMap.updateEntry(
|
||||
|
||||
Reference in New Issue
Block a user