From: Ouyang Changchun Date: Thu, 12 Feb 2015 12:01:05 +0000 (+0800) Subject: ixgbe/base: fix X550 check X-Git-Tag: spdx-start~9286 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=20aa9f0c5388bd51b9f5454889ef340be0ac4604;p=dpdk.git ixgbe/base: fix X550 check Update the macro to read/write iosf sb stat. Signed-off-by: Changchun Ouyang Acked-by: Jijiang Liu --- diff --git a/lib/librte_pmd_ixgbe/ixgbe/ixgbe_x550.c b/lib/librte_pmd_ixgbe/ixgbe/ixgbe_x550.c index cad3bcd0e0..a8511a0849 100644 --- a/lib/librte_pmd_ixgbe/ixgbe/ixgbe_x550.c +++ b/lib/librte_pmd_ixgbe/ixgbe/ixgbe_x550.c @@ -543,7 +543,7 @@ s32 ixgbe_write_iosf_sb_reg_x550(struct ixgbe_hw *hw, u32 reg_addr, break; } - if ((command & IXGBE_SB_IOSF_CTRL_CMPL_ERR_MASK) != 0) { + if ((command & IXGBE_SB_IOSF_CTRL_RESP_STAT_MASK) != 0) { error = (command & IXGBE_SB_IOSF_CTRL_CMPL_ERR_MASK) >> IXGBE_SB_IOSF_CTRL_CMPL_ERR_SHIFT; ERROR_REPORT2(IXGBE_ERROR_POLLING, @@ -591,7 +591,7 @@ s32 ixgbe_read_iosf_sb_reg_x550(struct ixgbe_hw *hw, u32 reg_addr, break; } - if ((command & IXGBE_SB_IOSF_CTRL_CMPL_ERR_MASK) != 0) { + if ((command & IXGBE_SB_IOSF_CTRL_RESP_STAT_MASK) != 0) { error = (command & IXGBE_SB_IOSF_CTRL_CMPL_ERR_MASK) >> IXGBE_SB_IOSF_CTRL_CMPL_ERR_SHIFT; ERROR_REPORT2(IXGBE_ERROR_POLLING,