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

一个疑问:DPVS_MAX_LCORE需要编译阶段指定是什么原因?是否可以改为可配置? #948

Open
lewislone opened this issue Apr 15, 2024 · 1 comment

Comments

@lewislone
Copy link

DPVS_MAX_LCORE需要编译阶段指定,一般会在编译阶段指定一个比较大的值, 但实际要用到的lcore小于DPVS_MAX_LCORE,这样会初始化一些没用到的变量, 比如arp_ring[], lcore2index[] 这些数组只有启用的core的对应的index才有用,不知道我的理解有没有错误, 是不是可以把这个宏改为一个变量作为启动参数可配置?

@ywc689
Copy link
Collaborator

ywc689 commented May 7, 2024

主要是是出于性能和代码简洁性的考虑。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants