-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[Ubuntu 20.04] net_if_stats()
returns incorrect interface speed for 100GbE network cards
#2095
Comments
I have a fix for this and I will open up a PR momentarily! |
I am having this issue too, would love to see this merged please :D @giampaolo |
Confirmed this is still an issue with 5.9.1
|
@giampaolo anyway we could get the full test suite ran on #2096 and possibly get it merged? |
Hello @giampaolo and @garrisoncarter , I have also ran into this issue and would love if we could get this prioritized. Is there anything that I can do to help out here? |
I've just merged the PR. |
Thank you!! |
Summary
Description
psutil.net_if_stats()
will return an incorrect value for the interfacespeed
value in linux when querying a 100GbE network card. In the below example,eth1
is a 100GbE network cardI also noticed that the return value when an interface is down (
isup==False
) will be65535
instead of0
.It seems this could possibly be related to the handling of
uint16
values.The text was updated successfully, but these errors were encountered: