Skip to content
Snippets Groups Projects
  1. Sep 01, 2023
    • KH Shi's avatar
      Remove duplicated bpf offload support check in IpServer · e4d549ab
      KH Shi authored
      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
      e4d549ab
  2. Aug 30, 2023
    • KH Shi's avatar
      Relief unnecessary dependencies of code order · 68770343
      KH Shi authored
      The original code requires updating mLastIPv6LinkProperties before
      calling updateIpv6ForwardingRules because mLastIPv6LinkProperties will
      be used inside an internal function later. Remove this unnecessary
      dependency by passing the interface name into the function.
      
      Bug: 294025403
      Test: atest TetheringTests
      Change-Id: I5699fba3d7caf3314d102b643b02da2b2797dd66
      68770343
  3. Aug 27, 2023
  4. Aug 25, 2023
  5. Aug 24, 2023
  6. Aug 23, 2023
  7. Aug 22, 2023
  8. Aug 21, 2023
  9. Aug 20, 2023
Loading