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

RECEIVE_BUFFER_SIZE is not enough #960

Open
caowangbao opened this issue Mar 23, 2024 · 0 comments
Open

RECEIVE_BUFFER_SIZE is not enough #960

caowangbao opened this issue Mar 23, 2024 · 0 comments

Comments

@caowangbao
Copy link

When there are 252 VF, the size of IFLA_VFINFO_LIST will reach 65524 (252*260+4). In addition, when considering other fields such as IFLA_STATS64, IFLA_STATS, IFLA_AF_SPEC, etc., nlmsg_len can easily exceed 65535.

Meanwhile, in a kernel submission (torvalds/linux@75345f8), the BROADCAST field was added to VF, making the size of a single VF reach 296. With this change, when there are 222 VF, the size of IFLA_VFINFO_LIST will reach 65716.

Therefore, RECEIVE_BUFFER_SIZE=65535 is not enough.

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

1 participant