Re: [dpdk-dev] [PATCH v2 2/7] ethdev: add a link status textrepresentation

2020-06-08 Thread Morten Brørup
> From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Ferruh Yigit > Sent: Friday, June 5, 2020 1:45 PM > > On 5/27/2020 8:45 AM, Morten Brørup wrote: > >> From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Ivan Dyukov > >> Sent: Tuesday, May 26, 2020 9:10 PM > >> > >> This commit add function

Re: [dpdk-dev] [PATCH v2 2/7] ethdev: add a link status textrepresentation

2020-06-05 Thread Ferruh Yigit
On 5/27/2020 8:45 AM, Morten Brørup wrote: >> From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Ivan Dyukov >> Sent: Tuesday, May 26, 2020 9:10 PM >> >> This commit add function which treat link status structure >> and format it to text representation. >> >> Signed-off-by: Ivan Dyukov >> --- >>

Re: [dpdk-dev] [PATCH v2 2/7] ethdev: add a link status textrepresentation

2020-05-27 Thread Stephen Hemminger
On Wed, 27 May 2020 09:45:49 +0200 Morten Brørup wrote: > void rte_eth_link_prepare_text(char *str, const struct rte_eth_link *const > link) > { > if (link.link_status == ETH_LINK_DOWN) { > str += sprintf(str, "Link down"); > } else { > str += sprintf(str, "Link up at ");

Re: [dpdk-dev] [PATCH v2 2/7] ethdev: add a link status textrepresentation

2020-05-27 Thread Morten Brørup
> From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Ivan Dyukov > Sent: Tuesday, May 26, 2020 9:10 PM > > This commit add function which treat link status structure > and format it to text representation. > > Signed-off-by: Ivan Dyukov > --- > lib/librte_ethdev/rte_ethdev.c | 39