Ignore BPF tethering offload test if tether config is disabled

Needed because OEM can disable BPF offload by PRO.

Bug: 237144191
Bug: 236925089
Test: atest EthernetTetheringTest
Change-Id: Idf965caa44aeaae1f084d2c4fcd516a352c1b138
This commit is contained in:
Hungming Chen
2022-06-27 15:00:55 +08:00
parent 554eb0699c
commit b37f76f28e
2 changed files with 26 additions and 3 deletions

View File

@@ -944,6 +944,8 @@ public class BpfCoordinator {
* be allowed to be accessed on the handler thread.
*/
public void dump(@NonNull IndentingPrintWriter pw) {
// Note that EthernetTetheringTest#isTetherConfigBpfOffloadEnabled relies on
// "mIsBpfEnabled" to check tethering config via dumpsys. Beware of the change if any.
pw.println("mIsBpfEnabled: " + mIsBpfEnabled);
pw.println("Polling " + (mPollingStarted ? "started" : "not started"));
pw.println("Stats provider " + (mStatsProvider != null