Skip to content

oerrors stats fixes for virtual pmds

David Marchand dpdk-dev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest9 patches 5 repliesIn review
  2. v18 patches 13 repliesSuperseded

Changes in v2 from the cover letter

- added a patch on kni that drops a Rx counter
- dropped the Tx counter for kni, memif and ring

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9net/af_packet: remove unused Rx counterdrivers/net/af_packet/rte_eth_af_packet.c+0 -10 replies
2/9net/af_xdp: remove unused Tx counterdrivers/net/af_xdp/rte_eth_af_xdp.c+0 -20 replies
3/9net/null: remove unused Tx error counterdrivers/net/null/rte_eth_null.c+2 -70 replies
4/9net/virtio: remove unused Tx error counterdrivers/net/virtio/virtio_ethdev.c+0 -30 replies
5/9net/kni: remove unused Rx "error" counterdrivers/net/kni/rte_eth_kni.c+0 -11 reply
6/9net/kni: do not count unsent packets as errorsdrivers/net/kni/rte_eth_kni.c+0 -61 reply
7/9net/memif: do not count unsent packets as errorsdrivers/net/memif/rte_eth_memif.c drivers/net/memif/rte_eth_memif.h+0 -81 reply
8/9net/ring: do not count unsent packets as errorsdrivers/net/ring/rte_eth_ring.c+4 -121 reply
9/9net/vhost: do not count unsent packets as errorsdrivers/net/vhost/rte_eth_vhost.c+1 -30 replies

Reviews trailers per patch

All 9 patches have a Reviewed-by or Acked-by.

PatchFerruh YigitXiaolong YeTiwei Bie
1/9R-b
2/9R-b
3/9R-b
4/9R-b
5/9A-b
6/9A-b
7/9R-b
8/9R-b
9/9R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v2 thread

Cover letter [dpdk-dev] [PATCH v2 0/9] oerrors stats fixes for virtual pmds

I did a pass on the pmds about oerrors some time ago, but still did not find the motivation to finish yet.
For now, here is a series of cleanups on the virtual pmds.

The former patches are just about removing counters that adds nothing to the stats.

The latter patches make sure that unsent packets (because of a temporary situation) are not added to oerrors since an application can decide to send them again later.

Wrt oerrors, the pcap pmd should be fixed with the series [1]. But the tap pmd still needs to be inspected.

1: https://patchwork.dpdk.org/project/dpdk/list/?series=5701

Changelog since v1:
- added a patch on kni that drops a Rx counter
- dropped the Tx counter for kni, memif and ring

Signature · 26 lines
David Marchand

David Marchand (9):
  net/af_packet: remove unused Rx counter
  net/af_xdp: remove unused Tx counter
  net/null: remove unused Tx error counter
  net/virtio: remove unused Tx error counter
  net/kni: remove unused Rx "error" counter
  net/kni: do not count unsent packets as errors
  net/memif: do not count unsent packets as errors
  net/ring: do not count unsent packets as errors
  net/vhost: do not count unsent packets as errors

 drivers/net/af_packet/rte_eth_af_packet.c |  1 -
 drivers/net/af_xdp/rte_eth_af_xdp.c       |  2 --
 drivers/net/kni/rte_eth_kni.c             |  7 -------
 drivers/net/memif/rte_eth_memif.c         |  7 -------
 drivers/net/memif/rte_eth_memif.h         |  1 -
 drivers/net/null/rte_eth_null.c           |  9 ++-------
 drivers/net/ring/rte_eth_ring.c           | 16 ++++------------
 drivers/net/vhost/rte_eth_vhost.c         |  4 +---
 drivers/net/virtio/virtio_ethdev.c        |  3 ---
 9 files changed, 7 insertions(+), 43 deletions(-)

-- 
1.8.3.1