net/memif: fix Tx bps statistics for zero-copy
authorTianyu Li <tianyu.li@arm.com>
Mon, 12 Apr 2021 08:22:31 +0000 (16:22 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 19 May 2021 09:32:49 +0000 (11:32 +0200)
commit78dafb4bb544a4288be174345c321b48e4c676fb
tree057369be6b1a30cc3344f55db8260e7f6764bdfa
parente27950a02b035a6d366ed362c6719b6c892dda6b
net/memif: fix Tx bps statistics for zero-copy

Fix the missing Tx-bps counter for memif zero-copy mode
Before
  Rx-pps:      6891450          Rx-bps:   3528438928
  Tx-pps:      6891482          Tx-bps:            0
After
  Throughput (since last show)
  Rx-pps:     11157056          Rx-bps:   5712413016
  Tx-pps:     11157056          Tx-bps:   5712413016

Fixes: 43b815d88188 ("net/memif: support zero-copy slave")
Cc: stable@dpdk.org
Signed-off-by: Tianyu Li <tianyu.li@arm.com>
Reviewed-by: Jakub Grajciar <jgrajcia@cisco.com>
drivers/net/memif/rte_eth_memif.c