From c6460e2c1bcc3f5a9c85eab4098190509f26af5b Mon Sep 17 00:00:00 2001 From: dj-nlx Date: Wed, 1 Feb 2023 21:00:55 +0900 Subject: [PATCH 1/2] Updated to latest submodule --- loxilb-ebpf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loxilb-ebpf b/loxilb-ebpf index 77ebba21..daa7b4c0 160000 --- a/loxilb-ebpf +++ b/loxilb-ebpf @@ -1 +1 @@ -Subproject commit 77ebba21ad6da496529ec2ad246a07cbf3d8e19e +Subproject commit daa7b4c0905a0fe4ef5ffc24f15aae568b31f691 From b636d365ed8dbc663414e54f842f62d8c57cd862 Mon Sep 17 00:00:00 2001 From: dj-nlx Date: Wed, 1 Feb 2023 21:02:49 +0900 Subject: [PATCH 2/2] Enable strict checksum for nat64/66 CICD --- .github/workflows/advanced-lb-sanity.yml | 2 +- cicd/nat64tcp/config.sh | 14 ++++++++++++++ cicd/nat66tcp/config.sh | 14 ++++++++++++++ 3 files changed, 29 insertions(+), 1 deletion(-) diff --git a/.github/workflows/advanced-lb-sanity.yml b/.github/workflows/advanced-lb-sanity.yml index 5d66d5fc..18373881 100644 --- a/.github/workflows/advanced-lb-sanity.yml +++ b/.github/workflows/advanced-lb-sanity.yml @@ -28,7 +28,7 @@ jobs: with: go-version: '>=1.17.0' - run: sudo apt-get update - - run: sudo apt -y install clang-10 llvm libelf-dev gcc-multilib libpcap-dev linux-tools-$(uname -r) elfutils dwarves git libbsd-dev bridge-utils unzip build-essential bison flex iperf iproute2 nodejs socat + - run: sudo apt -y install clang-10 llvm libelf-dev gcc-multilib libpcap-dev linux-tools-$(uname -r) elfutils dwarves git libbsd-dev bridge-utils unzip build-essential bison flex iperf iproute2 nodejs socat ethtool - run: | git clone https://github.com/loxilb-io/iproute2 iproute2-main cd iproute2-main/libbpf/src/ diff --git a/cicd/nat64tcp/config.sh b/cicd/nat64tcp/config.sh index 5b1f83c5..9e98163e 100755 --- a/cicd/nat64tcp/config.sh +++ b/cicd/nat64tcp/config.sh @@ -50,21 +50,35 @@ config_docker_host --host1 llb1 --host2 l3ep3 --ptype phy --addr 33.33.33.254/24 ## IPV6 Stuff $hexec l3h1 ip -6 addr add 3ffe::1/64 dev el3h1llb1 $hexec l3h1 ip -6 route add default via 3ffe::2 +$hexec l3h1 ethtool --offload el3h1llb1 rx off tx off +$hexec l3h1 ethtool -K el3h1llb1 gso off $hexec l3ep1 ip -6 addr add 4ffe::1/64 dev el3ep1llb1 $hexec l3ep1 ip -6 route add default via 4ffe::2 +$hexec l3ep1 ethtool --offload el3ep1llb1 rx off tx off +$hexec l3ep1 ethtool -K el3ep1llb1 gso off $hexec l3ep2 ip -6 addr add 5ffe::1/64 dev el3ep2llb1 $hexec l3ep2 ip -6 route add default via 5ffe::2 +$hexec l3ep2 ethtool --offload el3ep2llb1 rx off tx off +$hexec l3ep2 ethtool -K el3ep2llb1 gso off $hexec l3ep3 ip -6 addr add 6ffe::1/64 dev el3ep3llb1 $hexec l3ep3 ip -6 route add default via 6ffe::2 +$hexec l3ep3 ethtool --offload el3ep3llb1 rx off tx off +$hexec l3ep3 ethtool -K el3ep3llb1 gso off $hexec llb1 ip -6 addr add 3ffe::2/64 dev ellb1l3h1 $hexec llb1 ip -6 addr add 4ffe::2/64 dev ellb1l3ep1 $hexec llb1 ip -6 addr add 5ffe::2/64 dev ellb1l3ep2 $hexec llb1 ip -6 addr add 6ffe::2/64 dev ellb1l3ep3 $hexec llb1 ip addr add 2001::1/128 dev lo +$hexec llb1 ethtool --offload ellb1l3h1 rx off tx off +$hexec llb1 ethtool -K ellb1l3h1 gso off +$hexec llb1 ethtool --offload ellb1l3ep1 rx off tx off +$hexec llb1 ethtool -K ellb1l3ep1 gso off +$hexec llb1 ethtool --offload ellb1l3ep3 rx off tx off +$hexec llb1 ethtool -K ellb1l3ep3 gso off $dexec llb1 loxicmd create lb 2001::1 --tcp=2020:8080 --endpoints=31.31.31.1:1,32.32.32.1:1,33.33.33.1:1 sleep 10 diff --git a/cicd/nat66tcp/config.sh b/cicd/nat66tcp/config.sh index f631bbc7..eddda5ec 100755 --- a/cicd/nat66tcp/config.sh +++ b/cicd/nat66tcp/config.sh @@ -50,20 +50,34 @@ config_docker_host --host1 llb1 --host2 l3ep3 --ptype phy --addr 33.33.33.254/24 ## IPV6 Stuff $hexec l3h1 ip -6 addr add 3ffe::1/64 dev el3h1llb1 $hexec l3h1 ip -6 route add default via 3ffe::2 +$hexec l3h1 ethtool --offload el3h1llb1 rx off tx off +$hexec l3h1 ethtool -K el3h1llb1 gso off $hexec l3ep1 ip -6 addr add 4ffe::1/64 dev el3ep1llb1 $hexec l3ep1 ip -6 route add default via 4ffe::2 +$hexec l3ep1 ethtool --offload el3ep1llb1 rx off tx off +$hexec l3ep1 ethtool -K el3ep1llb1 gso off $hexec l3ep2 ip -6 addr add 5ffe::1/64 dev el3ep2llb1 $hexec l3ep2 ip -6 route add default via 5ffe::2 +$hexec l3ep2 ethtool --offload el3ep2llb1 rx off tx off +$hexec l3ep2 ethtool -K el3ep2llb1 gso off $hexec l3ep3 ip -6 addr add 6ffe::1/64 dev el3ep3llb1 $hexec l3ep3 ip -6 route add default via 6ffe::2 +$hexec l3ep3 ethtool --offload el3ep3llb1 rx off tx off +$hexec l3ep3 ethtool -K el3ep3llb1 gso off $hexec llb1 ip -6 addr add 3ffe::2/64 dev ellb1l3h1 $hexec llb1 ip -6 addr add 4ffe::2/64 dev ellb1l3ep1 $hexec llb1 ip -6 addr add 5ffe::2/64 dev ellb1l3ep2 $hexec llb1 ip -6 addr add 6ffe::2/64 dev ellb1l3ep3 +$hexec llb1 ethtool --offload ellb1l3h1 rx off tx off +$hexec llb1 ethtool -K ellb1l3h1 gso off +$hexec llb1 ethtool --offload ellb1l3ep1 rx off tx off +$hexec llb1 ethtool -K ellb1l3ep1 gso off +$hexec llb1 ethtool --offload ellb1l3ep3 rx off tx off +$hexec llb1 ethtool -K ellb1l3ep3 gso off sleep 5 $dexec llb1 loxicmd create lb 20.20.20.1 --tcp=2020:8080 --endpoints=31.31.31.1:1,32.32.32.1:1,33.33.33.1:1