Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
cx9208 authored Feb 10, 2019
1 parent e507b45 commit 2356364
Showing 1 changed file with 33 additions and 2 deletions.
35 changes: 33 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ wget https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.14.91.tar.xz
解压
tar -Jxvf linux-4.14.91.tar.xz -C /root/

修改/usr/src/linux-4.14.91/include/net/inet_connection_sock.h
修改linux-4.14.91/include/net/inet_connection_sock.h
u64 icsk_ca_priv[112 / sizeof(u64)];
#define ICSK_CA_PRIV_SIZE (14 * sizeof(u64))
这两段数值改为112和14,如上
Expand All @@ -83,5 +83,36 @@ u64 icsk_ca_priv[112 / sizeof(u64)];
tcp_snd_wnd_test函数大括号后换行添加EXPORT_SYMBOL(tcp_snd_wnd_test);

添加tcp_bbrplus.c,删除tcp_bbr.c
修改/usr/src/linux-4.14.91/net/ipv4/Makefile
修改linux-4.14.91/net/ipv4/Makefile
obj-$(CONFIG_TCP_CONG_BBR) += tcp_bbrplus.o

安装依赖
centos
yum -y groupinstall Development tools
yum -y install ncurses-devel bc gcc gcc-c++ ncurses ncurses-devel cmake elfutils-libelf-devel openssl-devel rpm-build redhat-rpm-config asciidoc hmaccalc perl-ExtUtils-Embed xmlto audit-libs-devel binutils-devel elfutils-devel elfutils-libelf-devel newt-devel python-devel zlib-devel

debian
wget -qO- git.io/superupdate.sh | bash
apt-get install build-essential libncurses5-dev
apt-get build-dep linux

切换到目录
cd /root/linux-4.14.91

配置
make oldconfig
或者
make menuconfig

确保CONFIG_TCP_CONG_BBR=m

禁用签名调试
scripts/config --disable MODULE_SIG
scripts/config --disable DEBUG_INFO


开始编译
centos:make rpm-pkg

debian:make deb-pkg

0 comments on commit 2356364

Please sign in to comment.