IB/ipath: Fix mismatch in shifts and masks for printing debug info
Fixed mismatch in linkstate/trainingstate shifts and masks in the IPATH_IBSTATE_MASK macro. It kept some linktrainingstates from being printed correctly in debug; no functionality issue unless I misread the code. Signed-off-by: Bryan O'Sullivan <bryan.osullivan@qlogic.com> Signed-off-by: Roland Dreier <rolandd@cisco.com>
This commit is contained in:
Родитель
0624b072f2
Коммит
5659416207
|
@ -223,9 +223,9 @@
|
||||||
|
|
||||||
/* combination link status states that we use with some frequency */
|
/* combination link status states that we use with some frequency */
|
||||||
#define IPATH_IBSTATE_MASK ((INFINIPATH_IBCS_LINKTRAININGSTATE_MASK \
|
#define IPATH_IBSTATE_MASK ((INFINIPATH_IBCS_LINKTRAININGSTATE_MASK \
|
||||||
<< INFINIPATH_IBCS_LINKSTATE_SHIFT) | \
|
<< INFINIPATH_IBCS_LINKTRAININGSTATE_SHIFT) | \
|
||||||
(INFINIPATH_IBCS_LINKSTATE_MASK \
|
(INFINIPATH_IBCS_LINKSTATE_MASK \
|
||||||
<<INFINIPATH_IBCS_LINKTRAININGSTATE_SHIFT))
|
<<INFINIPATH_IBCS_LINKSTATE_SHIFT))
|
||||||
#define IPATH_IBSTATE_INIT ((INFINIPATH_IBCS_L_STATE_INIT \
|
#define IPATH_IBSTATE_INIT ((INFINIPATH_IBCS_L_STATE_INIT \
|
||||||
<< INFINIPATH_IBCS_LINKSTATE_SHIFT) | \
|
<< INFINIPATH_IBCS_LINKSTATE_SHIFT) | \
|
||||||
(INFINIPATH_IBCS_LT_STATE_LINKUP \
|
(INFINIPATH_IBCS_LT_STATE_LINKUP \
|
||||||
|
|
Загрузка…
Ссылка в новой задаче