JiaY-shi / openwrt

This repository is a mirror of https://git.openwrt.org/openwrt/openwrt.git It is for reference only and is not active for check-ins. We will continue to accept Pull Requests here. They will be merged via staging trees then into openwrt.git.
Other
133 stars 110 forks source link

qca-nss-ecm编译问题 #38

Closed King-Of-Knights closed 6 months ago

King-Of-Knights commented 6 months ago

大佬好呀,make package/feeds/nss_packages/qca-nss-ecm/{clean, compile} -j17 V=s

出现下列问题:

/home/saber/Desktop/axt1800_6.1/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq60xx/qca-nss-ecm-12.4.5.r5-2024-01-19-b311cdf/ecm_conntrack_notifier.c: In function 'ecm_conntrack_notifier_init':
/home/saber/Desktop/axt1800_6.1/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq60xx/qca-nss-ecm-12.4.5.r5-2024-01-19-b311cdf/ecm_conntrack_notifier.c:438:46: error: passing argument 2 of 'nf_conntrack_register_notifier' from incompatible pointer type [-Werror=incompatible-pointer-types]
  438 |    nf_conntrack_register_notifier(&init_net, &ecm_conntrack_notifier);
      |                                              ^~~~~~~~~~~~~~~~~~~~~~~
      |                                              |
      |                                              struct nf_ct_event_notifier *
In file included from ./include/net/netfilter/nf_conntrack_core.h:18,
                 from /home/saber/Desktop/axt1800_6.1/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq60xx/qca-nss-ecm-12.4.5.r5-2024-01-19-b311cdf/ecm_conntrack_notifier.c:58:
./include/net/netfilter/nf_conntrack_ecache.h:69:83: note: expected 'struct notifier_block *' but argument is of type 'struct nf_ct_event_notifier *'
   69 | extern int nf_conntrack_register_notifier(struct net *net, struct notifier_block *nb);
      |                                                            ~~~~~~~~~~~~~~~~~~~~~~~^~
/home/saber/Desktop/axt1800_6.1/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq60xx/qca-nss-ecm-12.4.5.r5-2024-01-19-b311cdf/ecm_conntrack_notifier.c: In function 'ecm_conntrack_notifier_exit':
/home/saber/Desktop/axt1800_6.1/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq60xx/qca-nss-ecm-12.4.5.r5-2024-01-19-b311cdf/ecm_conntrack_notifier.c:484:4: error: too few arguments to function 'nf_conntrack_unregister_notifier'
  484 |    nf_conntrack_unregister_notifier(&init_net);
      |    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/net/netfilter/nf_conntrack_ecache.h:70:12: note: declared here
   70 | extern int nf_conntrack_unregister_notifier(struct net *net, struct notifier_block *nb);
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
King-Of-Knights commented 6 months ago

经过一段时间的研究,发现是与short-fe模块有冲突,打了一个补丁,编译出来一个系统,不太清楚开启了NSS,麻烦大佬帮忙看看:

输入root@OpenWrt:~# /etc/init.d/qca-nss-ecm start,返回:

dev.nss.general.redirect = 1
net.bridge.bridge-nf-call-arptables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-ip6tables = 0

软件项 NSS 目前WiFi速度为: NSS2

JiaY-shi commented 6 months ago

你自己可以简单测个速,看看cpu占用

King-Of-Knights commented 6 months ago

感谢大佬回复 我大概测了一下,有线用iperf3,速度在940Mb/s左右,持续测试一分钟,负载在0.72左右,无线用homebox测了一下,上传下载在600-700Mb/s左右,持续测试一分钟,负载在0.5左右,另外,我看了一下turboacc,显示我是用qca-nss-ecm作为流量负载,这样应该是把坐做上去了? Screenshot_2024-05-22-16-27-49-819_com android chrome

你自己可以简单测个速,看看cpu占用