]> git.proxmox.com Git - ovs.git/commit - AUTHORS.rst
netdev-dpdk: Fix rx_error stat for dpdk ports.
authorIan Stokes <ian.stokes@intel.com>
Thu, 16 Feb 2017 15:31:22 +0000 (15:31 +0000)
committerDaniele Di Proietto <diproiettod@vmware.com>
Fri, 17 Feb 2017 00:11:10 +0000 (16:11 -0800)
commit21e9844c59c8e10da307e59be453795ce4d6282d
treefd3884956541f6943b76a1196e1d7faf6c6de0c4
parent57fc4fd033c3aa0e1fbfff8c179f4847ba92ddff
netdev-dpdk: Fix rx_error stat for dpdk ports.

"rx_error" stat for a DPDK interface was calculated with the assumption that
dropped packets due to hardware buffer overload were counted as errors
in DPDK and the rte ierror stat included rte imissed packets i.e.

rx_errors = rte_stats.ierrors - rte_stats.imissed

This results in negative statistic values as imissed packets are no longer
counted as part of ierror since DPDK v.16.04.

Fix this by setting rx_errors equal to ierrors only.

Fixes: 9e3ddd45 (netdev-dpdk: Add some missing statistics.)
CC: Timo Puha <timox.puha@intel.com>)
Reported-by: Stepan Andrushko <stepanx.andrushko@intel.com>
Signed-off-by: Ian Stokes <ian.stokes@intel.com>
Signed-off-by: Daniele Di Proietto <diproiettod@vmware.com>
AUTHORS.rst
lib/netdev-dpdk.c