|
@@ -17,7 +17,7 @@ inputs:
|
|
|
runs:
|
|
runs:
|
|
|
using: "composite"
|
|
using: "composite"
|
|
|
steps:
|
|
steps:
|
|
|
- - name: Enable Kernel Configs
|
|
|
|
|
|
|
+ - name: Enable IP Set & Firewall Configs
|
|
|
uses: ./.github/actions/set-kernel-config
|
|
uses: ./.github/actions/set-kernel-config
|
|
|
with:
|
|
with:
|
|
|
config_list: |
|
|
config_list: |
|
|
@@ -46,7 +46,7 @@ runs:
|
|
|
CONFIG_IP6_NF_NAT=y
|
|
CONFIG_IP6_NF_NAT=y
|
|
|
CONFIG_IP6_NF_TARGET_MASQUERADE=y
|
|
CONFIG_IP6_NF_TARGET_MASQUERADE=y
|
|
|
|
|
|
|
|
- - name: Enable Kernel Configs
|
|
|
|
|
|
|
+ - name: Enable TCP Congestion Control Configs
|
|
|
uses: ./.github/actions/set-kernel-config
|
|
uses: ./.github/actions/set-kernel-config
|
|
|
with:
|
|
with:
|
|
|
config_list: |
|
|
config_list: |
|
|
@@ -58,10 +58,34 @@ runs:
|
|
|
CONFIG_TCP_CONG_HTCP=y
|
|
CONFIG_TCP_CONG_HTCP=y
|
|
|
CONFIG_DEFAULT_BBR=y
|
|
CONFIG_DEFAULT_BBR=y
|
|
|
CONFIG_DEFAULT_TCP_CONG="bbr"
|
|
CONFIG_DEFAULT_TCP_CONG="bbr"
|
|
|
|
|
+
|
|
|
|
|
+ - name: Enable Traffic Shaping (Qdisc) Configs
|
|
|
|
|
+ uses: ./.github/actions/set-kernel-config
|
|
|
|
|
+ with:
|
|
|
|
|
+ config_list: |
|
|
|
CONFIG_NET_SCH_FQ=y
|
|
CONFIG_NET_SCH_FQ=y
|
|
|
CONFIG_NET_SCH_FQ_CODEL=y
|
|
CONFIG_NET_SCH_FQ_CODEL=y
|
|
|
- CONFIG_NET_ACT_CONNMARK=y
|
|
|
|
|
CONFIG_NET_SCH_CAKE=y
|
|
CONFIG_NET_SCH_CAKE=y
|
|
|
|
|
+
|
|
|
|
|
+ - name: Enable Connection Marking Configs
|
|
|
|
|
+ uses: ./.github/actions/set-kernel-config
|
|
|
|
|
+ with:
|
|
|
|
|
+ config_list: |
|
|
|
|
|
+ CONFIG_NET_ACT_CONNMARK=y
|
|
|
|
|
+
|
|
|
|
|
+ - name: Enable TTL/Hop Limit Target Configs
|
|
|
|
|
+ uses: ./.github/actions/set-kernel-config
|
|
|
|
|
+ with:
|
|
|
|
|
+ config_list: |
|
|
|
|
|
+ CONFIG_IP_NF_TARGET_TTL=y
|
|
|
|
|
+ CONFIG_IP6_NF_TARGET_HL=y
|
|
|
|
|
+ CONFIG_IP6_NF_MATCH_HL=y
|
|
|
|
|
+
|
|
|
|
|
+ - name: Enable Wireguard VPN Configs
|
|
|
|
|
+ uses: ./.github/actions/set-kernel-config
|
|
|
|
|
+ with:
|
|
|
|
|
+ config_list: |
|
|
|
|
|
+ CONFIG_WIREGUARD=y
|
|
|
|
|
|
|
|
- name: Apply Kernel Config for 5.10
|
|
- name: Apply Kernel Config for 5.10
|
|
|
shell: bash
|
|
shell: bash
|
|
@@ -69,3 +93,46 @@ runs:
|
|
|
if: inputs.kernel_version == '5.10'
|
|
if: inputs.kernel_version == '5.10'
|
|
|
run: |
|
|
run: |
|
|
|
sed -i 's/CONFIG_IP_SET_MAX/65534/g' net/netfilter/ipset/ip_set_core.c
|
|
sed -i 's/CONFIG_IP_SET_MAX/65534/g' net/netfilter/ipset/ip_set_core.c
|
|
|
|
|
+
|
|
|
|
|
+ - name: Apply BBRv3 Patch
|
|
|
|
|
+ shell: bash
|
|
|
|
|
+ working-directory: ${{ github.workspace }}/kernel/common
|
|
|
|
|
+ run: |
|
|
|
|
|
+ set -euo pipefail
|
|
|
|
|
+ if [[ ${{ inputs.version }} == "android16-6.12" ]]; then
|
|
|
|
|
+ cp "${{ github.workspace }}/kernel_patches/common/bbrv3/0001-net-tcp-backport-BBRv3-to-android15-6.6.patch" temp.patch
|
|
|
|
|
+ #patch -p1 -F 3 < temp.patch
|
|
|
|
|
+ rm temp.patch
|
|
|
|
|
+ elif [[ ${{ inputs.version }} == "android15-6.6" ]]; then
|
|
|
|
|
+ cp "${{ github.workspace }}/kernel_patches/common/bbrv3/0001-net-tcp-backport-BBRv3-to-android15-6.6.patch" temp.patch
|
|
|
|
|
+ patch -p1 -F 3 < temp.patch
|
|
|
|
|
+ rm temp.patch
|
|
|
|
|
+ elif [[ ${{ inputs.version }} == "android14-6.1" ]]; then
|
|
|
|
|
+ cp "${{ github.workspace }}/kernel_patches/common/bbrv3/0001-net-tcp-backport-BBRv3-to-android14-6.1.patch" temp.patch
|
|
|
|
|
+ patch -p1 -F 3 < temp.patch
|
|
|
|
|
+ rm temp.patch
|
|
|
|
|
+ elif [[ ${{ inputs.version }} == "android14-5.15" ]]; then
|
|
|
|
|
+ cp "${{ github.workspace }}/kernel_patches/common/bbrv3/0001-net-tcp-backport-BBRv3-to-android13-5.15.patch" temp.patch
|
|
|
|
|
+ patch -p1 -F 3 < temp.patch
|
|
|
|
|
+ rm temp.patch
|
|
|
|
|
+ elif [[ ${{ inputs.version }} == "android13-5.15" && ${{ inputs.sublevel }} -ge "74" ]]; then
|
|
|
|
|
+ cp "${{ github.workspace }}/kernel_patches/common/bbrv3/0001-net-tcp-backport-BBRv3-to-android13-5.15.patch" temp.patch
|
|
|
|
|
+ patch -p1 -F 3 < temp.patch
|
|
|
|
|
+ rm temp.patch
|
|
|
|
|
+ elif [[ ${{ inputs.version }} == "android13-5.10" && ${{ inputs.sublevel }} -ge "186" ]]; then
|
|
|
|
|
+ cp "${{ github.workspace }}/kernel_patches/common/bbrv3/0001-net-tcp-backport-BBRv3-to-android12-5.10.patch" temp.patch
|
|
|
|
|
+ patch -p1 -F 3 < temp.patch
|
|
|
|
|
+ rm temp.patch
|
|
|
|
|
+ elif [[ ${{ inputs.version }} == "android12-5.10" && ${{ inputs.sublevel }} -ge "185" ]]; then
|
|
|
|
|
+ cp "${{ github.workspace }}/kernel_patches/common/bbrv3/0001-net-tcp-backport-BBRv3-to-android12-5.10.patch" temp.patch
|
|
|
|
|
+ patch -p1 -F 3 < temp.patch
|
|
|
|
|
+ rm temp.patch
|
|
|
|
|
+ fi
|
|
|
|
|
+
|
|
|
|
|
+ echo "✅ BBRv3 patches applied"
|
|
|
|
|
+
|
|
|
|
|
+ - name: Enable BBRv3 Kernel Config
|
|
|
|
|
+ uses: ./.github/actions/set-kernel-config
|
|
|
|
|
+ with:
|
|
|
|
|
+ config_list: |
|
|
|
|
|
+ CONFIG_TCP_CONG_BBR3=y
|