From: Wenzhuo Lu Date: Thu, 18 May 2017 03:29:04 +0000 (+0800) Subject: net/i40e/base: fix Tx error stats on VF X-Git-Tag: spdx-start~3159 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=bc9ee862baa7c7aab11dd3be97389421396e1622;p=dpdk.git net/i40e/base: fix Tx error stats on VF Unfortunately the datasheet has a mistake. The address of the TX error counter is wrong. Fixes: 8db9e2a1b232 ("i40e: base driver") CC: stable@dpdk.org Signed-off-by: Wenzhuo Lu --- diff --git a/drivers/net/i40e/base/i40e_register.h b/drivers/net/i40e/base/i40e_register.h index 3a305b677f..b150fbdf68 100644 --- a/drivers/net/i40e/base/i40e_register.h +++ b/drivers/net/i40e/base/i40e_register.h @@ -2805,7 +2805,7 @@ POSSIBILITY OF SUCH DAMAGE. #define I40E_GLV_RUPP_MAX_INDEX 383 #define I40E_GLV_RUPP_RUPP_SHIFT 0 #define I40E_GLV_RUPP_RUPP_MASK I40E_MASK(0xFFFFFFFF, I40E_GLV_RUPP_RUPP_SHIFT) -#define I40E_GLV_TEPC(_VSI) (0x00344000 + ((_VSI) * 4)) /* _i=0...383 */ /* Reset: CORER */ +#define I40E_GLV_TEPC(_VSI) (0x00344000 + ((_VSI) * 8)) /* _i=0...383 */ /* Reset: CORER */ #define I40E_GLV_TEPC_MAX_INDEX 383 #define I40E_GLV_TEPC_TEPC_SHIFT 0 #define I40E_GLV_TEPC_TEPC_MASK I40E_MASK(0xFFFFFFFF, I40E_GLV_TEPC_TEPC_SHIFT)