• 本帖最后由 Thinker 于 2017-9-13 11:08 编辑 *
  • Download BBR POWERED Source code
  • /root/tmp/tcp_bbr_powered.c:67:20: error: field ‘cycle_mstamp’ has incomplete type
  • struct skb_mstamp cycle_mstamp; / time of this cycle phase start /
  • ^
  • /root/tmp/tcp_bbr_powered.c: In function ‘bbr_is_next_cycle_phase’:
  • /root/tmp/tcp_bbr_powered.c:387:3: error: implicit declaration of function ‘skb_mstamp_us_delta’ [-Werror=implicit-function-declaration]
  • skb_mstamp_us_delta(&tp->delivered_mstamp, &bbr->cycle_mstamp) >
  • ^
  • /root/tmp/tcp_bbr_powered.c: In function ‘bbr_reset_lt_bw_sampling_interval’:
  • /root/tmp/tcp_bbr_powered.c:473:43: error: request for member ‘stamp_jiffies’ in something not a structure or union
  • bbr->lt_last_stamp = tp->delivered_mstamp.stamp_jiffies;
  • ^
  • /root/tmp/tcp_bbr_powered.c: In function ‘bbr_lt_bw_sampling’:
  • /root/tmp/tcp_bbr_powered.c:579:32: error: request for member ‘stamp_jiffies’ in something not a structure or union
  • t = (s32)(tp->delivered_mstamp.stamp_jiffies - bbr->lt_last_stamp);
  • ^
  • In file included from /root/tmp/tcp_bbr_powered.c:31:0:
  • /root/tmp/tcp_bbr_powered.c: In function ‘bbr_update_min_rtt’:
  • /root/tmp/tcp_bbr_powered.c:707:25: warning: passing argument 2 of ‘before’ makes integer from pointer without a cast
  • filter_expired = after(tcp_time_stamp,
  • ^
  • ./include/net/tcp.h:303:41: note: in definition of macro ‘after’
  • #define after(seq2, seq1) before(seq1, seq2)
  • ^
  • ./include/net/tcp.h:299:20: note: expected ‘__u32’ but argument is of type ‘u32 ()(const struct tcp_sock )’
  • static inline bool before(__u32 seq1, __u32 seq2)
  • ^
  • /root/tmp/tcp_bbr_powered.c:712:22: warning: assignment makes integer from pointer without a cast
  • bbr->min_rtt_stamp = tcp_time_stamp;
  • ^
  • /root/tmp/tcp_bbr_powered.c:737:30: warning: assignment makes integer from pointer without a cast
  • bbr->probe_rtt_done_stamp = tcp_time_stamp +
  • ^
  • In file included from /root/tmp/tcp_bbr_powered.c:31:0:
  • /root/tmp/tcp_bbr_powered.c:745:14: warning: passing argument 2 of ‘before’ makes integer from pointer without a cast
  • after(tcp_time_stamp, bbr->probe_rtt_done_stamp)) {
  • ^
  • ./include/net/tcp.h:303:41: note: in definition of macro ‘after’
  • #define after(seq2, seq1) before(seq1, seq2)
  • ^
  • ./include/net/tcp.h:299:20: note: expected ‘__u32’ but argument is of type ‘u32 ()(const struct tcp_sock )’
  • static inline bool before(__u32 seq1, __u32 seq2)
  • ^
  • /root/tmp/tcp_bbr_powered.c:746:24: warning: assignment makes integer from pointer without a cast
  • bbr->min_rtt_stamp = tcp_time_stamp;
  • ^
  • /root/tmp/tcp_bbr_powered.c: In function ‘bbr_init’:
  • /root/tmp/tcp_bbr_powered.c:793:21: warning: assignment makes integer from pointer without a cast
  • bbr->min_rtt_stamp = tcp_time_stamp;
  • ^
  • cc1: some warnings being treated as errors
  • scripts/Makefile.build:308: recipe for target '/root/tmp/tcp_bbr_powered.o' failed
  • make[1]: *** [/root/tmp/tcp_bbr_powered.o] Error 1
  • Makefile:1512: recipe for target '_module_/root/tmp' failed
  • make: *** [_module_/root/tmp] Error 2
  • Loading TCP BBR POWERED...
  • modprobe: FATAL: Module tcp_bbr_powered not found.
  • Error, Loading BBR POWERED.复制代码

系统 Debian 8.7 stable (Jessie) (oldstable) (64bits)

提示这个,装了几台机器都是一样的错误。是内核版本太高了不支持吗

用 @Vicer 大佬的Debian/Ubuntu TCP BBR 改进版/增强版 脚本