Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

qca-nss-ecm编译问题 #38

Closed
King-Of-Knights opened this issue May 17, 2024 · 3 comments
Closed

qca-nss-ecm编译问题 #38

King-Of-Knights opened this issue May 17, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@King-Of-Knights
Copy link

King-Of-Knights commented May 17, 2024

大佬好呀,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 King-Of-Knights added the bug Something isn't working label May 17, 2024
@King-Of-Knights
Copy link
Author

经过一段时间的研究,发现是与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
Copy link
Owner

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

@King-Of-Knights
Copy link
Author

感谢大佬回复 我大概测了一下,有线用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占用

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants