Project

General

Profile

Bug #4635

dladm show-ether doesn't display 2.5G links properly

Added by Garrett D'Amore over 5 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Normal
Category:
lib - userland libraries
Start date:
2014-02-26
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage

Description

With using dladm show-ether with 2.5G links, instead of showing 2500M for the speed (or 2.5G), the utility rounds to 2G. This is incorrect.

The code at fault is here, in libdladm/libdlether.c:

if (speed >= 1000) {
speed = speed/1000;
speed_unit = 'G';
} else {
speed_unit = 'M';
}

I'll attach some screenshots (can't cut-and-paste because this isn't on a nice routable network, its over an IPMI connection).


Files

screencap.jpg (47.9 KB) screencap.jpg Garrett D'Amore, 2014-02-26 08:27 PM

Related issues

Related to illumos gate - Feature #4431: igb support for I354Resolved2013-12-24

Actions

History

#2

Updated by Yuri Pankov almost 4 years ago

  • Status changed from New to Feedback
  • Assignee set to Garrett D'Amore

Garrett, looks like you fixed this in #6329?

#3

Updated by Garrett D'Amore almost 4 years ago

Yep. I'll close this.

#4

Updated by Garrett D'Amore almost 4 years ago

  • Status changed from Feedback to Closed

Closing as a dup. (Or rather the other was a dup of this one, but we committed using the other bug id.)

Also available in: Atom PDF