Go to file
Chengchang Tang c27e64ee3e net/hns3: fix stats flip overflow
Currently, statistics may overflow in some scenarios.

For example, if HW statistics are reset by stats reset operation,
but there are still a lot of residual packets exist in the HW
queues and these packets are error packets, flip may occurred
because the ipacket is obtained by subtracting the number of
software error packets from the number of HW received packets.

This patch verifies the calculation and returns 0 when overflow
may occur.

Fixes: 8839c5e202 ("net/hns3: support device stats")
Cc: stable@dpdk.org

Signed-off-by: Chengchang Tang <tangchengchang@huawei.com>
Signed-off-by: Lijun Ou <oulijun@huawei.com>
2021-02-04 18:19:37 +01:00
.ci ci: enable header includes check 2021-01-29 20:59:37 +01:00
.github/workflows ci: ignore APT update failure in GitHub Actions 2021-02-02 09:24:49 +01:00
app app/testpmd: add PF and VF targets to sample flow action 2021-02-03 00:48:11 +01:00
buildtools build: add header includes check 2021-01-29 20:59:37 +01:00
config config/arm: replace native machine args 2021-02-02 10:26:14 +01:00
devtools devtools: fix examples build test 2021-02-02 23:58:22 +01:00
doc doc: fix supported feature table in mlx5 guide 2021-02-04 18:19:37 +01:00
drivers net/hns3: fix stats flip overflow 2021-02-04 18:19:37 +01:00
examples examples/vhost: add error propagation in ioat ops 2021-02-04 18:19:36 +01:00
kernel kni: fix build on RHEL 8.3 2020-11-27 01:39:54 +01:00
lib vhost: fix vid allocation race 2021-02-04 18:19:36 +01:00
license license: add licenses for exception cases 2020-12-11 12:22:19 +01:00
usertools usertools: remove dpdk-setup.sh 2020-11-27 17:25:24 +01:00
.editorconfig devtools: add EditorConfig file 2020-02-22 21:05:22 +01:00
.gitattributes improve git diff 2016-11-13 15:25:12 +01:00
.gitignore regex/mlx5: introduce driver for BlueField 2 2020-07-21 19:04:05 +02:00
.travis.yml ci: add aarch64 clang cross-compilation Travis builds 2021-01-26 12:43:04 +01:00
ABI_VERSION version: 21.02-rc0 2020-11-30 10:55:22 +01:00
MAINTAINERS maintainers: update for nfp 2021-02-03 10:53:35 +01:00
Makefile build: create dummy Makefile 2020-09-07 23:51:57 +02:00
meson_options.txt build: add header includes check 2021-01-29 20:59:37 +01:00
meson.build build: add header includes check 2021-01-29 20:59:37 +01:00
README license: introduce SPDX identifiers 2018-01-04 22:41:38 +01:00
VERSION version: 21.02-rc2 2021-01-30 01:35:54 +01: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