android_packages_modules_Co.../Tethering/tests
Repository files (latest commit first)
Filename Latest commit message Latest commit date
KH Shi e4d549ab11 Remove duplicated bpf offload support check in IpServer
In current code, IpServer will ensure bpf offload is supported before
calling BpfCoordinator's APIs. But those APIs already have the same
checks inside the function. This CL removed duplicated checks in
IpServer.

After this change, the BPF offload support status is only determined
inside BpfCoordinator and it won't change during the life cycle of
Tethering. Tethering initializes mBpfCoordinator just once in the
constructor. After that point, the value of isUsingBpf can never
change, because mIsBpfEnabled is final and
mBpfCoordinatorShim.isInitialized() is either always true (api30) or
can either never change (api31).

Also fixed a bug in IpServerTest upon this change.

Test: atest TetheringTests
Bug: 261923493
Change-Id: I50f231a83bf678b90eae4fd9bfa6035e86978bb3
2023-09-01 07:37:18 +00:00
..
integration Move ArpPacket.java to frameworks/libs/net 2023-08-23 18:24:35 +09:00
mts offload.c - adjust bytes for l2 header 2023-04-04 06:18:28 +00:00
privileged Add null check for tupleOrig in ConntrackMessage 2023-05-02 22:57:24 +08:00
unit Remove duplicated bpf offload support check in IpServer 2023-09-01 07:37:18 +00:00
Android.bp Apply jarjar rules on coverage tests 2021-06-30 16:00:26 +09:00
jarjar-rules.txt ConnectivityCoverageTests refactoring 2022-04-06 19:35:28 +09:00