Fix port throughput related statistics for i40e virtual functions 77/68177/4
authorXavier Simonart <xavier.simonart@intel.com>
Mon, 1 Jul 2019 15:11:54 +0000 (17:11 +0200)
committerPatrice Buriez <patrice.buriez@intel.com>
Fri, 11 Oct 2019 12:01:52 +0000 (12:01 +0000)
commitd11d6d0006c890d586e0d2d3382436804cda8625
tree90ac1610c2d7393c5aa618885d265b7fc2e5b291
parentae43633b258e3cf53013cfac4643146761f03b9d
Fix port throughput related statistics for i40e virtual functions

When CRC stripping is enabled (default PROX behavior), the number of
rx bytes received by the NIC returned by DPDK usually does not take the
CRC 4 bytes into account.
However, for i40e virtual functions those 4 bytes are counted as part of
the received bytes. This resulted in both DPDK and PROX taking those 4 bytes
into account causing the RX % to be above 100%.

Change-Id: I59883b638ed67a6778f80c4dd6bfbfc4f9f2f528
Signed-off-by: Xavier Simonart <xavier.simonart@intel.com>
VNFs/DPPD-PROX/display_ports.c