| 4ad8807c | 09-Jul-2021 |
Kevin Traynor <[email protected]> |
bitrate: promote free function to stable
rte_stats_bitrate_free() has been in DPDK since 20.11.
Its signature is very basic as it just frees an opaque data struct allocated in rte_stats_bitrate_cre
bitrate: promote free function to stable
rte_stats_bitrate_free() has been in DPDK since 20.11.
Its signature is very basic as it just frees an opaque data struct allocated in rte_stats_bitrate_create() and returns void.
It's unlikely that such a basic signature would need to change so might as well promote it to stable for the next major ABI.
Signed-off-by: Kevin Traynor <[email protected]>
show more ...
|
| bdd478ee | 09-Jul-2021 |
Kevin Traynor <[email protected]> |
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
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: 2ad7ba9a6567 ("bitrate: add bitrate statistics library")
Signed-off-by: Kevin Traynor <[email protected]>
show more ...
|