-
-
Notifications
You must be signed in to change notification settings - Fork 249
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
DEFAULT_RCVBUF too small when querying interfaces with more than 108 VFs #813
Comments
elajkat
added a commit
to elajkat/pyroute2
that referenced
this issue
Oct 18, 2022
NetlinkSocketBase.recv uses DEFAULT_RCVBUF to fetch things like ip links via netlink sockets. It happed in the last cycles that with new NICs with higher VF numbers or similar we have to change the buffer size (see svinota#751 or svinota#813). A better solution (thanks to one or our experts) can be to check the necessary buffer size before receiving the sockets. Fixes svinota#1044 Change-Id: I87c75e4d424653e5a29408b3ac2ba8504cb2db49
elajkat
added a commit
to elajkat/pyroute2
that referenced
this issue
Oct 19, 2022
NetlinkSocketBase.recv uses DEFAULT_RCVBUF to fetch things like ip links via netlink sockets. It happed in the last cycles that with new NICs with higher VF numbers or similar we have to change the buffer size (see svinota#751 or svinota#813). A better solution (thanks to one or our experts) can be to check the necessary buffer size before receiving the sockets. Fixes svinota#1044 Change-Id: Ide711f27c99e4dfb75fb579f10f005cb8e1b9b37
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
Similar to #751 if the number of VFs are increased over 108 then the buffer in pyroute2 becomes too small.
Doubling the DEFAULT_RCVBUF in pyroute2 solves the issue in our environment with 127 VFs.
The text was updated successfully, but these errors were encountered: