Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PR - gh-123 support for 6.x kernel #562

Merged
merged 5 commits into from
Mar 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/advanced-lb-sanity-ubuntu-22.yml
Original file line number Diff line number Diff line change
@@ -30,11 +30,11 @@ jobs:
- run: sudo apt-get update
- run: sudo apt-get -y install clang-13 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 lksctp-tools
- run: |
git clone https://github.com/loxilb-io/iproute2 iproute2-main
git clone --recurse-submodules https://github.com/loxilb-io/iproute2 iproute2-main
cd iproute2-main/libbpf/src/
sudo make install
mkdir build
DESTDIR=build make install
DESTDIR=build OBJDIR=build make install
cd -
cd iproute2-main/
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:`pwd`/libbpf/src/ && LIBBPF_FORCE=on LIBBPF_DIR=`pwd`/libbpf/src/build ./configure && make && sudo cp -f tc/tc /usr/local/sbin/ntc && cd -
4 changes: 2 additions & 2 deletions .github/workflows/advanced-lb-sanity.yml
Original file line number Diff line number Diff line change
@@ -30,11 +30,11 @@ jobs:
- run: sudo apt-get update
- run: sudo apt-get -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
git clone --recurse-submodules https://github.com/loxilb-io/iproute2 iproute2-main
cd iproute2-main/libbpf/src/
sudo make install
mkdir build
DESTDIR=build make install
DESTDIR=build OBJDIR=build make install
cd -
cd iproute2-main/
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:`pwd`/libbpf/src/ && LIBBPF_FORCE=on LIBBPF_DIR=`pwd`/libbpf/src/build ./configure && make && sudo cp -f tc/tc /usr/local/sbin/ntc && cd -
4 changes: 2 additions & 2 deletions .github/workflows/basic-sanity-ubuntu-22.yml
Original file line number Diff line number Diff line change
@@ -34,11 +34,11 @@ jobs:
sudo ip netns add test
sudo ip netns del test
- run: |
git clone https://github.com/loxilb-io/iproute2 iproute2-main
git clone --recurse-submodules https://github.com/loxilb-io/iproute2 iproute2-main
cd iproute2-main/libbpf/src/
sudo make install
mkdir build
DESTDIR=build make install
DESTDIR=build OBJDIR=build make install
cd -
cd iproute2-main/
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:`pwd`/libbpf/src/ && LIBBPF_FORCE=on LIBBPF_DIR=`pwd`/libbpf/src/build ./configure && make && sudo cp -f tc/tc /usr/local/sbin/ntc && cd -
4 changes: 2 additions & 2 deletions .github/workflows/basic-sanity.yml
Original file line number Diff line number Diff line change
@@ -22,11 +22,11 @@ jobs:
- run: sudo apt-get update
- run: sudo apt-get -y install clang-10 llvm libelf-dev gcc-multilib libpcap-dev elfutils dwarves git linux-tools-$(uname -r) libbsd-dev bridge-utils unzip build-essential bison flex iproute2
- run: |
git clone https://github.com/loxilb-io/iproute2 iproute2-main
git clone --recurse-submodules https://github.com/loxilb-io/iproute2 iproute2-main
cd iproute2-main/libbpf/src/
sudo make install
mkdir build
DESTDIR=build make install
DESTDIR=build OBJDIR=build make install
cd -
cd iproute2-main/
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:`pwd`/libbpf/src/ && LIBBPF_FORCE=on LIBBPF_DIR=`pwd`/libbpf/src/build ./configure && make && sudo cp -f tc/tc /usr/local/sbin/ntc && cd -
4 changes: 2 additions & 2 deletions .github/workflows/cluster-sanity-ubuntu-22.yml
Original file line number Diff line number Diff line change
@@ -25,11 +25,11 @@ jobs:
- run: sudo apt-get update
- run: sudo apt-get -y install clang-13 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 lksctp-tools
- run: |
git clone https://github.com/loxilb-io/iproute2 iproute2-main
git clone --recurse-submodules https://github.com/loxilb-io/iproute2 iproute2-main
cd iproute2-main/libbpf/src/
sudo make install
mkdir build
DESTDIR=build make install
DESTDIR=build OBJDIR=build make install
cd -
cd iproute2-main/
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:`pwd`/libbpf/src/ && LIBBPF_FORCE=on LIBBPF_DIR=`pwd`/libbpf/src/build ./configure && make && sudo cp -f tc/tc /usr/local/sbin/ntc && cd -
4 changes: 2 additions & 2 deletions .github/workflows/cluster-sanity.yml
Original file line number Diff line number Diff line change
@@ -25,11 +25,11 @@ jobs:
- run: sudo apt-get update
- run: sudo apt-get -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: |
git clone https://github.com/loxilb-io/iproute2 iproute2-main
git clone --recurse-submodules https://github.com/loxilb-io/iproute2 iproute2-main
cd iproute2-main/libbpf/src/
sudo make install
mkdir build
DESTDIR=build make install
DESTDIR=build OBJDIR=build make install
cd -
cd iproute2-main/
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:`pwd`/libbpf/src/ && LIBBPF_FORCE=on LIBBPF_DIR=`pwd`/libbpf/src/build ./configure && make && sudo cp -f tc/tc /usr/local/sbin/ntc && cd -
4 changes: 2 additions & 2 deletions .github/workflows/data-store-CI.yml
Original file line number Diff line number Diff line change
@@ -40,11 +40,11 @@ jobs:
- run: if [[ ${{ github.event.inputs.runsOn }} == 'ubuntu-22.04' ]]; then sudo apt-get -y install clang-13 lksctp-tools; else sudo apt-get -y install clang-10; fi
- run: sudo apt-get -y install 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: |
git clone https://github.com/loxilb-io/iproute2 iproute2-main
git clone --recurse-submodules https://github.com/loxilb-io/iproute2 iproute2-main
cd iproute2-main/libbpf/src/
sudo make install
mkdir build
DESTDIR=build make install
DESTDIR=build OBJDIR=build make install
cd -
cd iproute2-main/
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:`pwd`/libbpf/src/ && LIBBPF_FORCE=on LIBBPF_DIR=`pwd`/libbpf/src/build ./configure && make && sudo cp -f tc/tc /usr/local/sbin/ntc && cd -
4 changes: 2 additions & 2 deletions .github/workflows/ipsec-sanity-ubuntu-22.yml
Original file line number Diff line number Diff line change
@@ -30,11 +30,11 @@ jobs:
- run: sudo apt-get update
- run: sudo apt-get -y install clang-13 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: |
git clone https://github.com/loxilb-io/iproute2 iproute2-main
git clone --recurse-submodules https://github.com/loxilb-io/iproute2 iproute2-main
cd iproute2-main/libbpf/src/
sudo make install
mkdir build
DESTDIR=build make install
DESTDIR=build OBJDIR=build make install
cd -
cd iproute2-main/
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:`pwd`/libbpf/src/ && LIBBPF_FORCE=on LIBBPF_DIR=`pwd`/libbpf/src/build ./configure && make && sudo cp -f tc/tc /usr/local/sbin/ntc && cd -
4 changes: 2 additions & 2 deletions .github/workflows/ipsec-sanity.yml
Original file line number Diff line number Diff line change
@@ -30,11 +30,11 @@ jobs:
- run: sudo apt-get update
- run: sudo apt-get -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: |
git clone https://github.com/loxilb-io/iproute2 iproute2-main
git clone --recurse-submodules https://github.com/loxilb-io/iproute2 iproute2-main
cd iproute2-main/libbpf/src/
sudo make install
mkdir build
DESTDIR=build make install
DESTDIR=build OBJDIR=build make install
cd -
cd iproute2-main/
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:`pwd`/libbpf/src/ && LIBBPF_FORCE=on LIBBPF_DIR=`pwd`/libbpf/src/build ./configure && make && sudo cp -f tc/tc /usr/local/sbin/ntc && cd -
4 changes: 2 additions & 2 deletions .github/workflows/liveness-sanity-ubuntu-22.yml
Original file line number Diff line number Diff line change
@@ -30,11 +30,11 @@ jobs:
- run: sudo apt-get update
- run: sudo apt-get -y install clang-13 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 lksctp-tools
- run: |
git clone https://github.com/loxilb-io/iproute2 iproute2-main
git clone --recurse-submodules https://github.com/loxilb-io/iproute2 iproute2-main
cd iproute2-main/libbpf/src/
sudo make install
mkdir build
DESTDIR=build make install
DESTDIR=build OBJDIR=build make install
cd -
cd iproute2-main/
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:`pwd`/libbpf/src/ && LIBBPF_FORCE=on LIBBPF_DIR=`pwd`/libbpf/src/build ./configure && make && sudo cp -f tc/tc /usr/local/sbin/ntc && cd -
4 changes: 2 additions & 2 deletions .github/workflows/liveness-sanity.yml
Original file line number Diff line number Diff line change
@@ -30,11 +30,11 @@ jobs:
- run: sudo apt-get update
- run: sudo apt-get -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
git clone --recurse-submodules https://github.com/loxilb-io/iproute2 iproute2-main
cd iproute2-main/libbpf/src/
sudo make install
mkdir build
DESTDIR=build make install
DESTDIR=build OBJDIR=build make install
cd -
cd iproute2-main/
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:`pwd`/libbpf/src/ && LIBBPF_FORCE=on LIBBPF_DIR=`pwd`/libbpf/src/build ./configure && make && sudo cp -f tc/tc /usr/local/sbin/ntc && cd -
4 changes: 2 additions & 2 deletions .github/workflows/nat66-sanity-ubuntu-22.yml
Original file line number Diff line number Diff line change
@@ -30,11 +30,11 @@ jobs:
- run: sudo apt-get update
- run: sudo apt-get -y install clang-13 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
git clone --recurse-submodules https://github.com/loxilb-io/iproute2 iproute2-main
cd iproute2-main/libbpf/src/
sudo make install
mkdir build
DESTDIR=build make install
DESTDIR=build OBJDIR=build make install
cd -
cd iproute2-main/
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:`pwd`/libbpf/src/ && LIBBPF_FORCE=on LIBBPF_DIR=`pwd`/libbpf/src/build ./configure && make && sudo cp -f tc/tc /usr/local/sbin/ntc && cd -
4 changes: 2 additions & 2 deletions .github/workflows/nat66-sanity.yml
Original file line number Diff line number Diff line change
@@ -30,11 +30,11 @@ jobs:
- run: sudo apt-get update
- run: sudo apt-get -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
git clone --recurse-submodules https://github.com/loxilb-io/iproute2 iproute2-main
cd iproute2-main/libbpf/src/
sudo make install
mkdir build
DESTDIR=build make install
DESTDIR=build OBJDIR=build make install
cd -
cd iproute2-main/
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:`pwd`/libbpf/src/ && LIBBPF_FORCE=on LIBBPF_DIR=`pwd`/libbpf/src/build ./configure && make && sudo cp -f tc/tc /usr/local/sbin/ntc && cd -
4 changes: 2 additions & 2 deletions .github/workflows/perf.yml
Original file line number Diff line number Diff line change
@@ -36,11 +36,11 @@ jobs:
- run: if [[ ${{ matrix.os }} == 'ubuntu-22.04' ]]; then sudo apt-get -y install clang-13 lksctp-tools; else sudo apt-get -y install clang-10; fi
- run: sudo apt-get -y install 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 iperf3
- run: |
git clone https://github.com/loxilb-io/iproute2 iproute2-main
git clone --recurse-submodules https://github.com/loxilb-io/iproute2 iproute2-main
cd iproute2-main/libbpf/src/
sudo make install
mkdir build
DESTDIR=build make install
DESTDIR=build OBJDIR=build make install
cd -
cd iproute2-main/
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:`pwd`/libbpf/src/ && LIBBPF_FORCE=on LIBBPF_DIR=`pwd`/libbpf/src/build ./configure && make && sudo cp -f tc/tc /usr/local/sbin/ntc && cd -
4 changes: 2 additions & 2 deletions .github/workflows/scale-sanity-ubuntu-22.yml
Original file line number Diff line number Diff line change
@@ -30,11 +30,11 @@ jobs:
- run: sudo apt-get update
- run: sudo apt-get -y install clang-13 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 lksctp-tools
- run: |
git clone https://github.com/loxilb-io/iproute2 iproute2-main
git clone --recurse-submodules https://github.com/loxilb-io/iproute2 iproute2-main
cd iproute2-main/libbpf/src/
sudo make install
mkdir build
DESTDIR=build make install
DESTDIR=build OBJDIR=build make install
cd -
cd iproute2-main/
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:`pwd`/libbpf/src/ && LIBBPF_FORCE=on LIBBPF_DIR=`pwd`/libbpf/src/build ./configure && make && sudo cp -f tc/tc /usr/local/sbin/ntc && cd -
4 changes: 2 additions & 2 deletions .github/workflows/scale-sanity.yml
Original file line number Diff line number Diff line change
@@ -30,11 +30,11 @@ jobs:
- run: sudo apt-get update
- run: sudo apt-get -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: |
git clone https://github.com/loxilb-io/iproute2 iproute2-main
git clone --recurse-submodules https://github.com/loxilb-io/iproute2 iproute2-main
cd iproute2-main/libbpf/src/
sudo make install
mkdir build
DESTDIR=build make install
DESTDIR=build OBJDIR=build make install
cd -
cd iproute2-main/
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:`pwd`/libbpf/src/ && LIBBPF_FORCE=on LIBBPF_DIR=`pwd`/libbpf/src/build ./configure && make && sudo cp -f tc/tc /usr/local/sbin/ntc && cd -
4 changes: 2 additions & 2 deletions .github/workflows/sctp-sanity-ubuntu-22.yml
Original file line number Diff line number Diff line change
@@ -30,11 +30,11 @@ jobs:
- run: sudo apt-get update
- run: sudo apt-get -y install clang-13 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 lksctp-tools
- run: |
git clone https://github.com/loxilb-io/iproute2 iproute2-main
git clone --recurse-submodules https://github.com/loxilb-io/iproute2 iproute2-main
cd iproute2-main/libbpf/src/
sudo make install
mkdir build
DESTDIR=build make install
DESTDIR=build OBJDIR=build make install
cd -
cd iproute2-main/
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:`pwd`/libbpf/src/ && LIBBPF_FORCE=on LIBBPF_DIR=`pwd`/libbpf/src/build ./configure && make && sudo cp -f tc/tc /usr/local/sbin/ntc && cd -
4 changes: 2 additions & 2 deletions .github/workflows/sctp-sanity.yml
Original file line number Diff line number Diff line change
@@ -30,11 +30,11 @@ jobs:
- run: sudo apt-get update
- run: sudo apt-get -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
git clone --recurse-submodules https://github.com/loxilb-io/iproute2 iproute2-main
cd iproute2-main/libbpf/src/
sudo make install
mkdir build
DESTDIR=build make install
DESTDIR=build OBJDIR=build make install
cd -
cd iproute2-main/
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:`pwd`/libbpf/src/ && LIBBPF_FORCE=on LIBBPF_DIR=`pwd`/libbpf/src/build ./configure && make && sudo cp -f tc/tc /usr/local/sbin/ntc && cd -
4 changes: 2 additions & 2 deletions .github/workflows/tcp-sanity-ubuntu-22.yml
Original file line number Diff line number Diff line change
@@ -30,11 +30,11 @@ jobs:
- run: sudo apt-get update
- run: sudo apt-get -y install clang-13 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
git clone --recurse-submodules https://github.com/loxilb-io/iproute2 iproute2-main
cd iproute2-main/libbpf/src/
sudo make install
mkdir build
DESTDIR=build make install
DESTDIR=build OBJDIR=build make install
cd -
cd iproute2-main/
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:`pwd`/libbpf/src/ && LIBBPF_FORCE=on LIBBPF_DIR=`pwd`/libbpf/src/build ./configure && make && sudo cp -f tc/tc /usr/local/sbin/ntc && cd -
4 changes: 2 additions & 2 deletions .github/workflows/tcp-sanity.yml
Original file line number Diff line number Diff line change
@@ -30,11 +30,11 @@ jobs:
- run: sudo apt-get update
- run: sudo apt-get -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
git clone --recurse-submodules https://github.com/loxilb-io/iproute2 iproute2-main
cd iproute2-main/libbpf/src/
sudo make install
mkdir build
DESTDIR=build make install
DESTDIR=build OBJDIR=build make install
cd -
cd iproute2-main/
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:`pwd`/libbpf/src/ && LIBBPF_FORCE=on LIBBPF_DIR=`pwd`/libbpf/src/build ./configure && make && sudo cp -f tc/tc /usr/local/sbin/ntc && cd -
4 changes: 2 additions & 2 deletions .github/workflows/test-scenario.yml
Original file line number Diff line number Diff line change
@@ -32,11 +32,11 @@ jobs:
- run: if [[ ${{ github.event.inputs.runsOn }} == 'ubuntu-22.04' ]]; then sudo apt-get -y install clang-13 lksctp-tools; else sudo apt-get -y install clang-10; fi
- run: sudo apt-get -y install 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: |
git clone https://github.com/loxilb-io/iproute2 iproute2-main
git clone --recurse-submodules https://github.com/loxilb-io/iproute2 iproute2-main
cd iproute2-main/libbpf/src/
sudo make install
mkdir build
DESTDIR=build make install
DESTDIR=build OBJDIR=build make install
cd -
cd iproute2-main/
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:`pwd`/libbpf/src/ && LIBBPF_FORCE=on LIBBPF_DIR=`pwd`/libbpf/src/build ./configure && make && sudo cp -f tc/tc /usr/local/sbin/ntc && cd -
4 changes: 2 additions & 2 deletions .github/workflows/udp-sanity-ubuntu-22.yml
Original file line number Diff line number Diff line change
@@ -30,11 +30,11 @@ jobs:
- run: sudo apt-get update
- run: sudo apt-get -y install clang-13 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
git clone --recurse-submodules https://github.com/loxilb-io/iproute2 iproute2-main
cd iproute2-main/libbpf/src/
sudo make install
mkdir build
DESTDIR=build make install
DESTDIR=build OBJDIR=build make install
cd -
cd iproute2-main/
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:`pwd`/libbpf/src/ && LIBBPF_FORCE=on LIBBPF_DIR=`pwd`/libbpf/src/build ./configure && make && sudo cp -f tc/tc /usr/local/sbin/ntc && cd -
4 changes: 2 additions & 2 deletions .github/workflows/udp-sanity.yml
Original file line number Diff line number Diff line change
@@ -30,11 +30,11 @@ jobs:
- run: sudo apt-get update
- run: sudo apt-get -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
git clone --recurse-submodules https://github.com/loxilb-io/iproute2 iproute2-main
cd iproute2-main/libbpf/src/
sudo make install
mkdir build
DESTDIR=build make install
DESTDIR=build OBJDIR=build make install
cd -
cd iproute2-main/
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:`pwd`/libbpf/src/ && LIBBPF_FORCE=on LIBBPF_DIR=`pwd`/libbpf/src/build ./configure && make && sudo cp -f tc/tc /usr/local/sbin/ntc && cd -
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -19,19 +19,19 @@ RUN mkdir -p /opt/loxilb && \
apt-get update && apt-get install -y wget && \
arch=$(arch | sed s/aarch64/arm64/ | sed s/x86_64/amd64/) && echo $arch && if [ "$arch" = "arm64" ] ; then apt-get install -y gcc-multilib-arm-linux-gnueabihf; else apt-get update && apt-get install -y gcc-multilib;fi && \
# Arch specific packages - GoLang
wget https://go.dev/dl/go1.21.5.linux-${arch}.tar.gz && tar -xzf go1.21.5.linux-${arch}.tar.gz --directory /usr/local/ && rm go1.21.5.linux-${arch}.tar.gz && \
wget https://go.dev/dl/go1.22.0.linux-${arch}.tar.gz && tar -xzf go1.22.0.linux-${arch}.tar.gz --directory /usr/local/ && rm go1.22.0.linux-${arch}.tar.gz && \
# Dev and util packages
apt-get install -y clang llvm libelf-dev libpcap-dev vim net-tools \
elfutils dwarves git libbsd-dev bridge-utils wget unzip build-essential \
bison flex sudo iproute2 pkg-config tcpdump iputils-ping curl bash-completion && \
# Install loxilb's custom ntc tool
wget https://github.com/loxilb-io/iproute2/archive/refs/heads/main.zip && \
unzip main.zip && cd iproute2-main/libbpf/src/ && mkdir build && \
DESTDIR=build make install && cd - && cd iproute2-main/ && \
unzip main.zip && cd iproute2-main/ && rm -fr libbpf && wget https://github.com/loxilb-io/libbpf/archive/refs/heads/main.zip && \
unzip main.zip && mv libbpf-main libbpf && cd libbpf/src/ && mkdir build && \
make install && DESTDIR=build OBJDIR=build make install && cd - && \
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:`pwd`/libbpf/src/ && \
LIBBPF_FORCE=on LIBBPF_DIR=`pwd`/libbpf/src/build ./configure && make && \
cp -f tc/tc /usr/local/sbin/ntc && cd - && cd iproute2-main/libbpf/src/ && \
make install && cd - && rm -fr main.zip iproute2-main && \
cp -f tc/tc /usr/local/sbin/ntc && cd .. && rm -fr main.zip iproute2-main && \
# Install bpftool
git clone --recurse-submodules https://github.com/libbpf/bpftool.git && cd bpftool/src/ && \
git switch --detach v7.2.0 && \
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -31,15 +31,15 @@ docker-cp: build
docker cp /opt/loxilb/llb_ebpf_emain.o $(loxilbid):/opt/loxilb/llb_ebpf_emain.o
docker cp /opt/loxilb/llb_xdp_main.o $(loxilbid):/opt/loxilb/llb_xdp_main.o
docker cp loxilb-ebpf/kernel/loxilb_dp_debug $(loxilbid):/usr/local/sbin/
docker cp loxilb-ebpf/libbpf/src/libbpf.so.0.4.0 $(loxilbid):/usr/lib64/
docker cp loxilb-ebpf/libbpf/src/libbpf.so.0.8.1 $(loxilbid):/usr/lib64/
docker cp loxilb-ebpf/utils/loxilb_dp_tool $(loxilbid):/usr/local/sbin/

docker-cp-ebpf: build
docker cp /opt/loxilb/llb_ebpf_main.o $(loxilbid):/opt/loxilb/llb_ebpf_main.o
docker cp /opt/loxilb/llb_ebpf_emain.o $(loxilbid):/opt/loxilb/llb_ebpf_emain.o
docker cp /opt/loxilb/llb_xdp_main.o $(loxilbid):/opt/loxilb/llb_xdp_main.o
docker cp loxilb-ebpf/kernel/loxilb_dp_debug $(loxilbid):/usr/local/sbin/
docker cp loxilb-ebpf/libbpf/src/libbpf.so.0.4.0 $(loxilbid):/usr/lib64/
docker cp loxilb-ebpf/libbpf/src/libbpf.so.0.8.1 $(loxilbid):/usr/lib64/

docker-run:
@docker stop $(dock) 2>&1 >> /dev/null || true
2 changes: 1 addition & 1 deletion loxilb-ebpf
Submodule loxilb-ebpf updated 84 files
+3 −0 .gitmodules
+23 −41 kernel/llb_kern_cdefs.h
+0 −8 kernel/llb_kern_ct.c
+1 −1 kernel/llb_kern_devif.c
+14 −19 kernel/loxilb_libdp.c
+1 −0 libbpf
+0 −14 libbpf/.lgtm.yml
+0 −130 libbpf/.travis.yml
+0 −1 libbpf/BPF-CHECKPOINT-COMMIT
+0 −1 libbpf/CHECKPOINT-COMMIT
+0 −1 libbpf/LICENSE
+0 −32 libbpf/LICENSE.BSD-2-Clause
+0 −157 libbpf/README.md
+0 −7 libbpf/include/asm/barrier.h
+0 −70 libbpf/include/linux/compiler.h
+0 −38 libbpf/include/linux/err.h
+0 −126 libbpf/include/linux/filter.h
+0 −44 libbpf/include/linux/kernel.h
+0 −91 libbpf/include/linux/list.h
+0 −90 libbpf/include/linux/overflow.h
+0 −18 libbpf/include/linux/ring_buffer.h
+0 −31 libbpf/include/linux/types.h
+0 −6,084 libbpf/include/uapi/linux/bpf.h
+0 −57 libbpf/include/uapi/linux/bpf_common.h
+0 −173 libbpf/include/uapi/linux/btf.h
+0 −1,049 libbpf/include/uapi/linux/if_link.h
+0 −111 libbpf/include/uapi/linux/if_xdp.h
+0 −252 libbpf/include/uapi/linux/netlink.h
+0 −105 libbpf/scripts/coverity.sh
+0 −343 libbpf/scripts/sync-kernel.sh
+0 −163 libbpf/src/Makefile
+0 −168 libbpf/src/README.rst
+0 −973 libbpf/src/bpf.c
+0 −285 libbpf/src/bpf.h
+0 −444 libbpf/src/bpf_core_read.h
+0 −99 libbpf/src/bpf_endian.h
+0 −3,892 libbpf/src/bpf_helper_defs.h
+0 −161 libbpf/src/bpf_helpers.h
+0 −246 libbpf/src/bpf_prog_linfo.c
+0 −468 libbpf/src/bpf_tracing.h
+0 −4,636 libbpf/src/btf.c
+0 −378 libbpf/src/btf.h
+0 −1,444 libbpf/src/btf_dump.c
+0 −241 libbpf/src/hashmap.c
+0 −195 libbpf/src/hashmap.h
+0 −11,567 libbpf/src/libbpf.c
+0 −850 libbpf/src/libbpf.h
+0 −370 libbpf/src/libbpf.map
+0 −12 libbpf/src/libbpf.pc.template
+0 −42 libbpf/src/libbpf_common.h
+0 −66 libbpf/src/libbpf_errno.c
+0 −436 libbpf/src/libbpf_internal.h
+0 −358 libbpf/src/libbpf_probes.c
+0 −2,891 libbpf/src/linker.c
+0 −774 libbpf/src/netlink.c
+0 −195 libbpf/src/nlattr.c
+0 −154 libbpf/src/nlattr.h
+0 −302 libbpf/src/ringbuf.c
+0 −21 libbpf/src/str_error.c
+0 −6 libbpf/src/str_error.h
+0 −176 libbpf/src/strset.c
+0 −21 libbpf/src/strset.h
+0 −1,266 libbpf/src/xsk.c
+0 −322 libbpf/src/xsk.h
+0 −84 libbpf/travis-ci/managers/debian.sh
+0 −61 libbpf/travis-ci/managers/travis_wait.bash
+0 −23 libbpf/travis-ci/managers/ubuntu.sh
+0 −30 libbpf/travis-ci/vmtest/build_pahole.sh
+0 −43 libbpf/travis-ci/vmtest/build_selftests.sh
+0 −44 libbpf/travis-ci/vmtest/checkout_latest_kernel.sh
+0 −8 libbpf/travis-ci/vmtest/configs/INDEX
+0 −98 libbpf/travis-ci/vmtest/configs/blacklist/BLACKLIST-5.5.0
+0 −1 libbpf/travis-ci/vmtest/configs/blacklist/BLACKLIST-latest
+0 −3,054 libbpf/travis-ci/vmtest/configs/latest.config
+0 −7 libbpf/travis-ci/vmtest/configs/whitelist/WHITELIST-4.9.0
+0 −12 libbpf/travis-ci/vmtest/helpers.sh
+0 −158 libbpf/travis-ci/vmtest/mkrootfs.sh
+0 −3 libbpf/travis-ci/vmtest/prepare_selftests-4.9.0.sh
+0 −3 libbpf/travis-ci/vmtest/prepare_selftests-5.5.0.sh
+0 −20 libbpf/travis-ci/vmtest/prepare_selftests.sh
+0 −455 libbpf/travis-ci/vmtest/run.sh
+0 −51 libbpf/travis-ci/vmtest/run_selftests.sh
+0 −38 libbpf/travis-ci/vmtest/run_vmtest.sh
+0 −138,018 libbpf/travis-ci/vmtest/vmlinux.h