OSDN Git Service

DO NOT MERGE: use legacy way to get tcp packet count
authorjunyulai <junyulai@google.com>
Mon, 25 Jun 2018 13:51:14 +0000 (21:51 +0800)
committerjunyulai <junyulai@google.com>
Tue, 26 Jun 2018 07:46:48 +0000 (15:46 +0800)
commita5c3fb10f25768f62f796f75b4b9f6b4962b19ab
tree185e9efacf1533974199bf1fe4132f9f3156a1cb
parentcea247e135dd8059098ac8c4aec7c573e830d878
DO NOT MERGE: use legacy way to get tcp packet count

The current networkStats getIfaceStats implementation check if
bpf is enabled, and use bpf to get all traffic stats. However,
the bpf implementation did not contain tcp packet counts. So
data stall detection in DcTracker could not get the packet
count to trigger data stall. Hence the data stall never
triggers for device that enables bpf.

This solution is for short term solution that rollback the
design to use xt_qtaguid for bpf enabled device.

Bug: 110443385
Test: 1. fake data stall to trigger data stall recovery
      2. enable debug log to make sure tcp packet count is
         correct
      3. runtest frameworks-net
      4. run cts -m CtsUsageStatsTestCases

Change-Id: I1ce9e92fe194da2ea0a3eec014fd50bb50cdd44a
services/core/java/com/android/server/net/NetworkStatsService.java