Skip to content

Commit faaa4f0

Browse files
Merge pull request #213 from dj-nlx/main
PR - NAT64 Fixes/CICD Enhancement
2 parents 47255e9 + b636d36 commit faaa4f0

File tree

4 files changed

+30
-2
lines changed

4 files changed

+30
-2
lines changed

.github/workflows/advanced-lb-sanity.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
with:
2929
go-version: '>=1.17.0'
3030
- run: sudo apt-get update
31-
- 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
31+
- 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
3232
- run: |
3333
git clone https://github.com/loxilb-io/iproute2 iproute2-main
3434
cd iproute2-main/libbpf/src/

cicd/nat64tcp/config.sh

+14
Original file line numberDiff line numberDiff line change
@@ -50,21 +50,35 @@ config_docker_host --host1 llb1 --host2 l3ep3 --ptype phy --addr 33.33.33.254/24
5050
## IPV6 Stuff
5151
$hexec l3h1 ip -6 addr add 3ffe::1/64 dev el3h1llb1
5252
$hexec l3h1 ip -6 route add default via 3ffe::2
53+
$hexec l3h1 ethtool --offload el3h1llb1 rx off tx off
54+
$hexec l3h1 ethtool -K el3h1llb1 gso off
5355

5456
$hexec l3ep1 ip -6 addr add 4ffe::1/64 dev el3ep1llb1
5557
$hexec l3ep1 ip -6 route add default via 4ffe::2
58+
$hexec l3ep1 ethtool --offload el3ep1llb1 rx off tx off
59+
$hexec l3ep1 ethtool -K el3ep1llb1 gso off
5660

5761
$hexec l3ep2 ip -6 addr add 5ffe::1/64 dev el3ep2llb1
5862
$hexec l3ep2 ip -6 route add default via 5ffe::2
63+
$hexec l3ep2 ethtool --offload el3ep2llb1 rx off tx off
64+
$hexec l3ep2 ethtool -K el3ep2llb1 gso off
5965

6066
$hexec l3ep3 ip -6 addr add 6ffe::1/64 dev el3ep3llb1
6167
$hexec l3ep3 ip -6 route add default via 6ffe::2
68+
$hexec l3ep3 ethtool --offload el3ep3llb1 rx off tx off
69+
$hexec l3ep3 ethtool -K el3ep3llb1 gso off
6270

6371
$hexec llb1 ip -6 addr add 3ffe::2/64 dev ellb1l3h1
6472
$hexec llb1 ip -6 addr add 4ffe::2/64 dev ellb1l3ep1
6573
$hexec llb1 ip -6 addr add 5ffe::2/64 dev ellb1l3ep2
6674
$hexec llb1 ip -6 addr add 6ffe::2/64 dev ellb1l3ep3
6775
$hexec llb1 ip addr add 2001::1/128 dev lo
76+
$hexec llb1 ethtool --offload ellb1l3h1 rx off tx off
77+
$hexec llb1 ethtool -K ellb1l3h1 gso off
78+
$hexec llb1 ethtool --offload ellb1l3ep1 rx off tx off
79+
$hexec llb1 ethtool -K ellb1l3ep1 gso off
80+
$hexec llb1 ethtool --offload ellb1l3ep3 rx off tx off
81+
$hexec llb1 ethtool -K ellb1l3ep3 gso off
6882

6983
$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
7084
sleep 10

cicd/nat66tcp/config.sh

+14
Original file line numberDiff line numberDiff line change
@@ -50,20 +50,34 @@ config_docker_host --host1 llb1 --host2 l3ep3 --ptype phy --addr 33.33.33.254/24
5050
## IPV6 Stuff
5151
$hexec l3h1 ip -6 addr add 3ffe::1/64 dev el3h1llb1
5252
$hexec l3h1 ip -6 route add default via 3ffe::2
53+
$hexec l3h1 ethtool --offload el3h1llb1 rx off tx off
54+
$hexec l3h1 ethtool -K el3h1llb1 gso off
5355

5456
$hexec l3ep1 ip -6 addr add 4ffe::1/64 dev el3ep1llb1
5557
$hexec l3ep1 ip -6 route add default via 4ffe::2
58+
$hexec l3ep1 ethtool --offload el3ep1llb1 rx off tx off
59+
$hexec l3ep1 ethtool -K el3ep1llb1 gso off
5660

5761
$hexec l3ep2 ip -6 addr add 5ffe::1/64 dev el3ep2llb1
5862
$hexec l3ep2 ip -6 route add default via 5ffe::2
63+
$hexec l3ep2 ethtool --offload el3ep2llb1 rx off tx off
64+
$hexec l3ep2 ethtool -K el3ep2llb1 gso off
5965

6066
$hexec l3ep3 ip -6 addr add 6ffe::1/64 dev el3ep3llb1
6167
$hexec l3ep3 ip -6 route add default via 6ffe::2
68+
$hexec l3ep3 ethtool --offload el3ep3llb1 rx off tx off
69+
$hexec l3ep3 ethtool -K el3ep3llb1 gso off
6270

6371
$hexec llb1 ip -6 addr add 3ffe::2/64 dev ellb1l3h1
6472
$hexec llb1 ip -6 addr add 4ffe::2/64 dev ellb1l3ep1
6573
$hexec llb1 ip -6 addr add 5ffe::2/64 dev ellb1l3ep2
6674
$hexec llb1 ip -6 addr add 6ffe::2/64 dev ellb1l3ep3
75+
$hexec llb1 ethtool --offload ellb1l3h1 rx off tx off
76+
$hexec llb1 ethtool -K ellb1l3h1 gso off
77+
$hexec llb1 ethtool --offload ellb1l3ep1 rx off tx off
78+
$hexec llb1 ethtool -K ellb1l3ep1 gso off
79+
$hexec llb1 ethtool --offload ellb1l3ep3 rx off tx off
80+
$hexec llb1 ethtool -K ellb1l3ep3 gso off
6781

6882
sleep 5
6983
$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

loxilb-ebpf

0 commit comments

Comments
 (0)