[ovs-git] [openvswitch/ovs] 21e984: netdev-dpdk: Fix rx_error stat for dpdk ports.

GitHub noreply at github.com
Fri Feb 17 00:20:06 UTC 2017

  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 21e9844c59c8e10da307e59be453795ce4d6282d
  Author: Ian Stokes <ian.stokes at intel.com>
  Date:   2017-02-16 (Thu, 16 Feb 2017)

  Changed paths:
    M AUTHORS.rst
    M lib/netdev-dpdk.c

  Log Message:
  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 at intel.com>)
Reported-by: Stepan Andrushko <stepanx.andrushko at intel.com>
Signed-off-by: Ian Stokes <ian.stokes at intel.com>
Signed-off-by: Daniele Di Proietto <diproiettod at vmware.com>

More information about the git mailing list