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

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


  Branch: refs/heads/branch-2.7
  Home:   https://github.com/openvswitch/ovs
  Commit: a619d9b35712ed8998ce72b05ec8fc5a678df4b5
      https://github.com/openvswitch/ovs/commit/a619d9b35712ed8998ce72b05ec8fc5a678df4b5
  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