Project

General

Profile

Actions

Bug #13903

open

dladm show-ether REM_FAULT field displays wrong value

Added by Jason King 4 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
lib - userland libraries
Start date:
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

On a system where dladm show-ether -o LINK,REM_FAULT was showing ixgbe interfaces with REM_FAULT displaying fault.
Looking at the source however, we see this in usr/src/lib/libdladm/common/libdlether.c:353

         status = dladm_get_single_mac_stat(handle, linkid,
            attrstat[i].fault_stat, KSTAT_DATA_UINT32, &fault);
        if (status != DLADM_STATUS_OK)
            goto bail;
        eattr->lei_attr[i].le_fault = (pause != 0);

This is almost certainly wrong and should be using fault instead of pause.

No data to display

Actions

Also available in: Atom PDF