1. git clone https://github.com/zhuyj/kernel-5.4.30-qingcloud.git --branch=origin/remotes/origin/miniflow_ct_offload_Ubuntu-5.4.0-26.30
make menuconfig select act_ct
If in the same host, use make -j10 binrpm-pkg
if not, use make -j10 rpm-pkg
2. git clone https://github.com/zhuyj/ofed-qingcloud.git --branch=master
ln -s ofed_scripts/configure
ln -s ofed_scripts/makefile
ln -s ofed_scripts/Makefile
./configure --with-core-mod --with-user_mad-mod --with-user_access-mod --with-addr_trans-mod --with-mlx4-mod --with-mlx4_en-mod --with-mlx5-mod --with-ipoib-mod --with-srp-mod --with-rds-mod --with-iser-mod --j16
make && make install
3. git clone https://github.com/zhuyj/iproute2-qingcloud.git
make && make install
4. yum install nc
5. on one host, cd ofed-qingcloud/kernel5.4/ && sh config.sh
on the other host, cd ofed-qingcloud/kernel5.4-peer/ && sh config.sh
5. on one host, run "ip netns exec ns100 iperf -s &"
6. on the other host, run "ip netns exec ns100 nc -v 1.1.100.12 5001"
7. on one host, cd ofed-qingcloud/kernel5.4/ && sh test-tc.sh