IB/ipath: Don't count IB symbol and link errors unless link is UP
commit60e845035a066e81af1a29047530088d59150d8b
authorDave Olson <dave.olson@qlogic.com>
Fri, 5 Dec 2008 19:13:19 +0000 (5 11:13 -0800)
committerRoland Dreier <rolandd@cisco.com>
Fri, 5 Dec 2008 19:13:19 +0000 (5 11:13 -0800)
treeb824466835b3d6cf1c8489544094b025d1142f4a
parent890fccb2427d53b48ab9d009fd87d55bcb173f62
IB/ipath: Don't count IB symbol and link errors unless link is UP

Implement the ignoring of ibsymbol errors and linkrecover errors while
the link is at less than INIT (long needed), to get accurate counts.
Particularly an issue when doing non-IBTA DDR negotiation with chips
from vendors that do not support IBTA mode negotiation.  If the driver
is unloaded, and there is a delta, the adjusted counters are written
back to the chip, so they stay adjusted across driver reload.

Signed-off-by: Dave Olson <dave.olson@qlogic.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/ipath/ipath_iba6120.c
drivers/infiniband/hw/ipath/ipath_iba7220.c
drivers/infiniband/hw/ipath/ipath_kernel.h
drivers/infiniband/hw/ipath/ipath_stats.c