liberal-boy / tcp_tsunami Goto Github PK
View Code? Open in Web Editor NEWtcp_tsunami adjust for kernel 4.13+(魔改版bbr,解决内核4.13+编译问题)
tcp_tsunami adjust for kernel 4.13+(魔改版bbr,解决内核4.13+编译问题)
hi @liberal-boy ,
i followed the "how to use" section and i got the following output :
make: Entering directory '/usr/src/linux-headers-4.19.0-9-686-pae'
CC [M] /home/debian/tcp_tsunami.o
In file included from /usr/src/linux-headers-4.19.0-9-common/include/linux/list.h:9,
from /usr/src/linux-headers-4.19.0-9-common/include/linux/module.h:9,
from /home/debian/tcp_tsunami.c:59:
/home/debian/tcp_tsunami.c: In function ‘bbr_set_tso_segs_goal’:
/home/debian/tcp_tsunami.c:279:27: error: implicit declaration of function ‘tcp_tso_autosize’; did you mean ‘tcp_gro_receive’? [-Werror=implicit-function-declaration]
bbr->tso_segs_goal = min(tcp_tso_autosize(sk, tp->mss_cache, min_segs),
^~~~~~~~~~~~~~~~
/usr/src/linux-headers-4.19.0-9-common/include/linux/kernel.h:863:22: note: in definition of macro ‘__typecheck’
(!!(sizeof((typeof(x) *)1 == (typeof(y) *)1)))
^
/usr/src/linux-headers-4.19.0-9-common/include/linux/kernel.h:887:24: note: in expansion of macro ‘__safe_cmp’
__builtin_choose_expr(__safe_cmp(x, y),
^~~~~~~~~~
/usr/src/linux-headers-4.19.0-9-common/include/linux/kernel.h:896:19: note: in expansion of macro ‘__careful_cmp’
#define min(x, y) __careful_cmp(x, y, <)
^~~~~~~~~~~~~
/home/debian/tcp_tsunami.c:279:23: note: in expansion of macro ‘min’
bbr->tso_segs_goal = min(tcp_tso_autosize(sk, tp->mss_cache, min_segs),
^~~
/usr/src/linux-headers-4.19.0-9-common/include/linux/kernel.h:863:29: warning: comparison of distinct pointer types lacks a cast
(!!(sizeof((typeof(x) *)1 == (typeof(y) )1)))
^~
/usr/src/linux-headers-4.19.0-9-common/include/linux/kernel.h:877:4: note: in expansion of macro ‘__typecheck’
(__typecheck(x, y) && __no_side_effects(x, y))
^~~~~~~~~~~
/usr/src/linux-headers-4.19.0-9-common/include/linux/kernel.h:887:24: note: in expansion of macro ‘__safe_cmp’
__builtin_choose_expr(__safe_cmp(x, y),
^~~~~~~~~~
/usr/src/linux-headers-4.19.0-9-common/include/linux/kernel.h:896:19: note: in expansion of macro ‘__careful_cmp’
#define min(x, y) __careful_cmp(x, y, <)
^~~~~~~~~~~~~
/home/debian/tcp_tsunami.c:279:23: note: in expansion of macro ‘min’
bbr->tso_segs_goal = min(tcp_tso_autosize(sk, tp->mss_cache, min_segs),
^~~
/home/debian/tcp_tsunami.c: At top level:
/home/debian/tcp_tsunami.c:938:3: error: ‘struct tcp_congestion_ops’ has no member named ‘tso_segs_goal’
.tso_segs_goal = bbr_tso_segs_goal,
^~~~~~~~~~~~~
/home/debian/tcp_tsunami.c:938:19: error: initialization of ‘void ()(struct sock , u32, u32)’ {aka ‘void ()(struct sock , unsigned int, unsigned int)’} from incompatible pointer type ‘u32 ()(struct sock )’ {aka ‘unsigned int ()(struct sock *)’} [-Werror=incompatible-pointer-types]
.tso_segs_goal = bbr_tso_segs_goal,
^~~~~~~~~~~~~~~~~
/home/debian/tcp_tsunami.c:938:19: note: (near initialization for ‘tcp_bbr_cong_ops.cong_avoid’)
cc1: some warnings being treated as errors
make[3]: *** [/usr/src/linux-headers-4.19.0-9-common/scripts/Makefile.build:315: /home/debian/tcp_tsunami.o] Error 1
make[2]: *** [/usr/src/linux-headers-4.19.0-9-common/Makefile:1537: module/home/debian] Error 2
make[1]: *** [Makefile:146: sub-make] Error 2
make: *** [Makefile:8: all] Error 2
4.12之前、4.13、4.14 都是不同的源码。
也就是说,4.13 的只能给 4.13 用,即 4.13.x。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.