Skip to content
Snippets Groups Projects
  1. Sep 19, 2023
    • KH Shi's avatar
      Decouple Ipv6UpstreamRule with Ipv6DownstreamRule · 701c3ca2
      KH Shi authored
      Currently, Ipv6UpstreamRule is added follows the adding of
      Ipv6DownstreamRule when it is the first rule from a downstream
      interface to the upstream interface.
      
      This CL changed it to:
      1. Upstream interface change updates both IPv6 upstream and downstream
         forwarding rules.
      2. Neighbor events updates only IPv6 downstream forwarding rules.
      
      Data limit setting on the upstream interface is now depend on the
      upstream rules instead of the downstream rules. This CL also updates
      corresponding test cases in IpServerTest and BpfCoordinatorTest.
      
      Test: atest TetheringTests
      Bug: 261923493
      Change-Id: I5b4df64a3d276afb7a24bbef3a0432f53377e8b2
      701c3ca2
  2. 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
  3. 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
  4. Aug 27, 2023
  5. Aug 25, 2023
  6. Aug 24, 2023
  7. Aug 23, 2023
  8. Aug 22, 2023
  9. Aug 21, 2023
  10. Aug 20, 2023
Loading