Skip to content

Commit

Permalink
Merge pull request #6 from bisdn/jogo_int_fix_hi_speed
Browse files Browse the repository at this point in the history
netif_utils: fix speeds > 65G
  • Loading branch information
rubensfig authored Oct 10, 2024
2 parents 002ed9e + c5d42e2 commit 809b744
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netif_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ int ethtool_get_speed_duplex(char *ifname, int *speed, int *duplex)
ERROR("Cannot get speed/duplex for %s: %m\n", ifname);
return -1;
}
*speed = ecmd.speed; /* Ethtool speed is in Mbps */
*speed = ethtool_cmd_speed(&ecmd); /* Ethtool speed is in Mbps */
*duplex = ecmd.duplex; /* We have same convention as ethtool.
0 = half, 1 = full */
return 0;
Expand Down

0 comments on commit 809b744

Please sign in to comment.