[dpdk-dev] [PATCH] ethdev: expose link status and speed using xstats
Stephen Hemminger
stephen at networkplumber.org
Wed Jan 20 19:36:04 CET 2016
On Wed, 20 Jan 2016 16:13:34 +0100
Thomas Monjalon <thomas.monjalon at 6wind.com> wrote:
> > We already have the rte_eth_link_get function. Why not let users
> > continue to use that? It's well defined, it is simple, and it is
> > consistent.
+1
API's should not duplicate results (DRY)
That said, it would be useful to have some way to get statistics
on the number of link transitions and time since last change.
But this ideally should be in rte_eth_link_get() but that wouldn't
be ABI compatiable.
More information about the dev
mailing list