action.yml 1015 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. name: add bbrv3
  2. description: enable configs to add bbrv3 to kernel
  3. inputs:
  4. kernel_version:
  5. description: 'version of kernel'
  6. required: true
  7. android_version:
  8. description: 'android version of kernel'
  9. required: true
  10. runs:
  11. using: composite
  12. steps:
  13. - name: apply bbrv3 patch
  14. shell: bash
  15. run: |
  16. cd "$COMMON"
  17. patch -p1 < "$KERNEL_PATCHES/common/bbrv3/0001-net-tcp-backport-BBRv3-to-${{ inputs.android_version }}-${{ inputs.kernel_version }}.patch"
  18. - name: add bbr configs to defconfig
  19. shell: bash
  20. run: |
  21. cat >> "$GKI_DEFCONFIG" << 'EOF'
  22. # Add bbrv3
  23. CONFIG_NET_SCH_FQ=y
  24. CONFIG_NET_SCH_FQ_CODEL=y
  25. CONFIG_NET_SCH_CAKE=y
  26. CONFIG_NET_SCH_PIE=y
  27. CONFIG_NET_SCH_FQ_PIE=y
  28. CONFIG_TCP_CONG_ADVANCED=y
  29. CONFIG_TCP_CONG_BBR=y
  30. CONFIG_TCP_CONG_BBR3=y
  31. CONFIG_TCP_CONG_CUBIC=y
  32. CONFIG_DEFAULT_BBR3=y
  33. # CONFIG_TCP_CONG_BIC is not set
  34. # CONFIG_TCP_CONG_WESTWOOD is not set
  35. # CONFIG_TCP_CONG_HTCP is not set
  36. EOF