summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/io/igb/igb_stat.c
diff options
context:
space:
mode:
authorzhefeng xu - Sun Microsystems - Beijing China <Jason.Xu@Sun.COM>2009-12-21 14:33:26 +0800
committerzhefeng xu - Sun Microsystems - Beijing China <Jason.Xu@Sun.COM>2009-12-21 14:33:26 +0800
commitcf8dcc9bbabedca41ecfee13dec8172104e99968 (patch)
treebd3f6c50709bc5dd51d8577ce2f70187506d0306 /usr/src/uts/common/io/igb/igb_stat.c
parented11b5015754f34571b1ea0fef3f0faad03a1e45 (diff)
downloadillumos-gate-cf8dcc9bbabedca41ecfee13dec8172104e99968.tar.gz
6890117 igb driver reports link status as down before auto neg has had time to complete
6902785 igb should return failure immediately when finding error with dma handle 6882523 igb.conf configuration inconsistent with igb driver
Diffstat (limited to 'usr/src/uts/common/io/igb/igb_stat.c')
-rw-r--r--usr/src/uts/common/io/igb/igb_stat.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr/src/uts/common/io/igb/igb_stat.c b/usr/src/uts/common/io/igb/igb_stat.c
index a16d8bec3f..8edc4dbeed 100644
--- a/usr/src/uts/common/io/igb/igb_stat.c
+++ b/usr/src/uts/common/io/igb/igb_stat.c
@@ -136,8 +136,10 @@ igb_update_stats(kstat_t *ks, int rw)
mutex_exit(&igb->gen_lock);
- if (igb_check_acc_handle(igb->osdep.reg_handle) != DDI_FM_OK)
- ddi_fm_service_impact(igb->dip, DDI_SERVICE_UNAFFECTED);
+ if (igb_check_acc_handle(igb->osdep.reg_handle) != DDI_FM_OK) {
+ ddi_fm_service_impact(igb->dip, DDI_SERVICE_DEGRADED);
+ return (EIO);
+ }
return (0);
}