From: Qi Zhang Date: Sun, 9 Jul 2017 19:54:58 +0000 (-0400) Subject: net/i40e: fix VF Tx bytes X-Git-Tag: spdx-start~2453 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=e0b3f4cf3e53765347bdeac125048685c8c23c53;p=dpdk.git net/i40e: fix VF Tx bytes Tx CRC size is not counted by VSI's stats register, so it is not necessary excluded by driver. Fixes: 98abce237ba7 ("net/i40e: fix VF statistics") Signed-off-by: Qi Zhang Acked-by: Beilei Xing --- diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c index 97a73e1cb9..cc4b2adc9e 100644 --- a/drivers/net/i40e/i40e_ethdev.c +++ b/drivers/net/i40e/i40e_ethdev.c @@ -2368,9 +2368,6 @@ i40e_update_vsi_stats(struct i40e_vsi *vsi) i40e_stat_update_48(hw, I40E_GLV_BPTCH(idx), I40E_GLV_BPTCL(idx), vsi->offset_loaded, &oes->tx_broadcast, &nes->tx_broadcast); - /* exclude CRC bytes */ - nes->tx_bytes -= (nes->tx_unicast + nes->tx_multicast + - nes->tx_broadcast) * ETHER_CRC_LEN; /* GLV_TDPC not supported */ i40e_stat_update_32(hw, I40E_GLV_TEPC(idx), vsi->offset_loaded, &oes->tx_errors, &nes->tx_errors);