[dpdk-dev] [PATCH v9 02/24] ethdev: add a link status text representation

Stephen Hemminger stephen at networkplumber.org
Tue Aug 11 17:47:11 CEST 2020


On Tue, 11 Aug 2020 11:52:21 +0300
Ivan Dyukov <i.dyukov at samsung.com> wrote:

> Link status structure keeps complicated values which are hard to
> represent to end user. e.g. link_speed has INT_MAX value which
> means that speed is unknown, link_duplex equal to 0 means
> 'half-duplex' etc. To simplify processing of the values
> in application, new dpdk function is introduced.
> 
> This commit adds function which treat link status structure
> and format it to text representation. User may create custom
> link status string using format string. If format string is NULL,
> the function construct standard link status string.
> 
> Signed-off-by: Ivan Dyukov <i.dyukov at samsung.com>

Why pander to driver specific link messages?
This should come from core code in one format for all drivers.


More information about the dev mailing list