Go to file
Flavia Musatescu d4bda0ab29 net/af_packet: improve Tx statistics accuracy
When sendto call fails and ENOBUFS/EAGAIN error is being set
some of the packets are actually successfully transmitted.
There is no available count of those packets, so in order to
make the statistics more accurate, all the previously enqueued
packets will be considered successful, even though this is not
entirely correct.

Statistics numbers before this update:

Pktgen:
   Total Rx Pkts:               1360084
         Tx Pkts:               2000000
testpmd:
   RX-packets: 1408346  RX-missed: 0       RX-bytes:  84503418
   TX-packets: 526486   TX-errors: 881851  TX-bytes:  31589724

Statistics numbers after this update:

Pktgen:
   Total Rx Pkts:               1329872
         Tx Pkts:               2000000
testpmd:
   RX-packets: 1389156  RX-missed: 0       RX-bytes:  83349360
   TX-packets: 1389156  TX-errors: 0       TX-bytes:  83349360

Fixes: 74b7fc0a0f ("net/af_packet: fix packet bytes counting")
Cc: stable@dpdk.org

Signed-off-by: Flavia Musatescu <flavia.musatescu@intel.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
2019-10-23 16:43:10 +02:00
.ci ci: exit setup on any error 2019-09-13 13:19:00 +02:00
app app/testpmd: fix help for loop topology option 2019-10-23 16:43:10 +02:00
buildtools buildtools: make experimental symbol check lighter 2019-10-09 10:22:45 +02:00
config net/iavf: enable AVX2 for iavf 2019-10-23 16:43:10 +02:00
devtools devtools: fix cleanup of checkpatch temporary file 2019-10-21 16:19:00 +02:00
doc net/ice: enable advanced RSS 2019-10-23 16:43:10 +02:00
drivers net/af_packet: improve Tx statistics accuracy 2019-10-23 16:43:10 +02:00
examples examples/fips_validation: separate ECB and CBC init 2019-10-23 16:57:06 +02:00
kernel kni: support allmulticast mode set 2019-10-15 21:16:32 +02:00
lib net: add missing endianness annotations 2019-10-23 16:43:10 +02:00
license fix dpdk.org URLs 2018-11-26 20:19:24 +01:00
mk net/pfe: introduce basic functions 2019-10-23 16:43:08 +02:00
usertools usertools: fix input handling in telemetry script 2019-08-08 17:42:24 +02:00
.gitattributes
.gitignore doc: fix missing asymmetric crypto table 2019-04-18 16:01:28 +02:00
.travis.yml ci: add missing dependencies for documentation 2019-09-13 13:04:13 +02:00
GNUmakefile test: move to app directory 2019-02-26 15:29:27 +01:00
MAINTAINERS maintainers: add next-net-brcm sub-tree 2019-10-23 16:43:10 +02:00
Makefile license: use SPDX tag in root makefile 2018-01-04 22:41:38 +01:00
meson_options.txt build: support disabling drivers with meson 2019-10-24 01:02:29 +02:00
meson.build build: print list of disabled components 2019-07-02 23:20:26 +02:00
README license: introduce SPDX identifiers 2018-01-04 22:41:38 +01:00
VERSION version: 19.11-rc0 2019-08-13 14:59:02 +02:00

DPDK is a set of libraries and drivers for fast packet processing.
It supports many processor architectures and both FreeBSD and Linux.

The DPDK uses the Open Source BSD-3-Clause license for the core libraries
and drivers. The kernel components are GPL-2.0 licensed.

Please check the doc directory for release notes,
API documentation, and sample application information.

For questions and usage discussions, subscribe to: users@dpdk.org
Report bugs and issues to the development mailing list: dev@dpdk.org