Giter Club home page Giter Club logo

tcp_tsunami's People

Contributors

liberal-boy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

tcp_tsunami's Issues

error on debian 10

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.13+ 是不存在的

4.12之前、4.13、4.14 都是不同的源码。

也就是说,4.13 的只能给 4.13 用,即 4.13.x。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.