numam-dpdk/lib
Kevin Traynor bdd478eede bitrate: fix calculation to match API description
rte_stats_bitrate_calc() API states it returns 'Negative value on error'.

However, the implementation will return the error code from
rte_eth_stats_get() which may be non-zero on error.

Change the implementation of rte_stats_bitrate_calc() to match
the API description by always returning a negative value on error.

Fixes: 2ad7ba9a65 ("bitrate: add bitrate statistics library")

Signed-off-by: Kevin Traynor <ktraynor@redhat.com>
2021-10-01 15:31:06 +02:00
..
acl lib: remove C++ include guard from private headers 2021-09-22 22:00:17 +02:00
bbdev eal: remove sys/queue.h from public headers 2021-10-01 13:09:43 +02:00
bitratestats bitrate: fix calculation to match API description 2021-10-01 15:31:06 +02:00
bpf lib: remove C++ include guard from private headers 2021-09-22 22:00:17 +02:00
cfgfile version: 21.11-rc0 2021-08-17 08:37:52 +02:00
cmdline version: 21.11-rc0 2021-08-17 08:37:52 +02:00
compressdev log: register with standardized names 2021-05-11 15:17:55 +02:00
cryptodev eal: remove sys/queue.h from public headers 2021-10-01 13:09:43 +02:00
distributor lib: remove C++ include guard from private headers 2021-09-22 22:00:17 +02:00
eal eal: remove sys/queue.h from public headers 2021-10-01 13:09:43 +02:00
efd eal: remove sys/queue.h from public headers 2021-10-01 13:09:43 +02:00
ethdev eal: remove sys/queue.h from public headers 2021-10-01 13:09:43 +02:00
eventdev lib: remove C++ include guard from private headers 2021-09-22 22:00:17 +02:00
fib lib: remove C++ include guard from private headers 2021-09-22 22:00:17 +02:00
flow_classify flow_classify: fix leaking rules on delete 2021-06-24 15:34:45 +02:00
graph eal: save error in string copy 2021-07-05 15:11:30 +02:00
gro version: 21.11-rc0 2021-08-17 08:37:52 +02:00
gso version: 21.11-rc0 2021-08-17 08:37:52 +02:00
hash eal: remove sys/queue.h from public headers 2021-10-01 13:09:43 +02:00
ip_frag eal: remove sys/queue.h from public headers 2021-10-01 13:09:43 +02:00
ipsec version: 21.11-rc0 2021-08-17 08:37:52 +02:00
jobstats version: 21.11-rc0 2021-08-17 08:37:52 +02:00
kni version: 21.11-rc0 2021-08-17 08:37:52 +02:00
kvargs kvargs: fix comments style 2021-09-30 17:38:13 +02:00
latencystats version: 21.11-rc0 2021-08-17 08:37:52 +02:00
lpm version: 21.11-rc0 2021-08-17 08:37:52 +02:00
mbuf mbuf: enforce semantics for Tx inline IPsec processing 2021-09-27 09:55:41 +02:00
member version: 21.11-rc0 2021-08-17 08:37:52 +02:00
mempool eal: remove sys/queue.h from public headers 2021-10-01 13:09:43 +02:00
meter version: 21.11-rc0 2021-08-17 08:37:52 +02:00
metrics metrics: promote deinitialize API 2021-09-23 19:21:47 +02:00
net net: enable random address on Windows 2021-09-30 20:51:11 +02:00
node lib: remove C++ include guard from private headers 2021-09-22 22:00:17 +02:00
pci eal: remove sys/queue.h from public headers 2021-10-01 13:09:43 +02:00
pdump version: 21.11-rc0 2021-08-17 08:37:52 +02:00
pipeline pipeline: improve handling of learner action arguments 2021-09-27 12:18:49 +02:00
port version: 21.11-rc0 2021-08-17 08:37:52 +02:00
power lib: remove C++ include guard from private headers 2021-09-22 22:00:17 +02:00
rawdev version: 21.11-rc0 2021-08-17 08:37:52 +02:00
rcu lib: remove C++ include guard from private headers 2021-09-22 22:00:17 +02:00
regexdev lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
reorder version: 21.11-rc0 2021-08-17 08:37:52 +02:00
rib rib: fix max depth IPv6 lookup 2021-06-24 15:34:45 +02:00
ring ring: fix Doxygen comment of internal function 2021-10-01 14:39:12 +02:00
sched sched: get 64-bit greatest common divisor 2021-09-27 17:24:16 +02:00
security security: add option to configure tunnel header verification 2021-09-28 17:40:52 +02:00
stack stack: fix reload head when pop fails 2021-09-27 17:28:55 +02:00
table eal: remove sys/queue.h from public headers 2021-10-01 13:09:43 +02:00
telemetry telemetry: detach threads 2021-10-01 14:50:16 +02:00
timer version: 21.11-rc0 2021-08-17 08:37:52 +02:00
vhost eal: remove sys/queue.h from public headers 2021-10-01 13:09:43 +02:00
meson.build lib: build testpmd dependencies on Windows 2021-07-02 19:03:03 +02:00