On 9/15/2020 9:44 PM, Morten Brørup wrote:
From: Ivan Dyukov [mailto:i.dyu...@samsung.com]
Sent: Tuesday, September 15, 2020 9:07 PM
There is new link_speed value introduced. It's INT_MAX value which
means that speed is unknown. To simplify processing of the value
in application, new function is added which convert link_speed to
string. Also dpdk examples have many duplicated code which format
entire link status structure to text.
This commit adds two functions:
* rte_eth_link_speed_to_str - format link_speed to string
* rte_eth_link_to_str - convert link status structure to string
Signed-off-by: Ivan Dyukov <i.dyu...@samsung.com>
Great work, Ivan!
+1
Acked-by: Morten Brørup <m...@smartsharesystems.com>
Reviewed-by: Ferruh Yigit <ferruh.yi...@intel.com>