[dpdk-dev] [PATCH v5 38/41] examples/pipeline: add configuration commands

Dumitrescu, Cristian cristian.dumitrescu at intel.com
Wed Sep 30 08:50:54 CEST 2020



> -----Original Message-----
> From: David Marchand <david.marchand at redhat.com>
> Sent: Tuesday, September 29, 2020 2:52 PM
> To: Dumitrescu, Cristian <cristian.dumitrescu at intel.com>
> Cc: dev <dev at dpdk.org>; Thomas Monjalon <thomas at monjalon.net>
> Subject: Re: [PATCH v5 38/41] examples/pipeline: add configuration
> commands
> 
> Caught while diffing with ip_pipeline code.
> 
> On Wed, Sep 23, 2020 at 8:07 PM Cristian Dumitrescu
> <cristian.dumitrescu at intel.com> wrote:
> [snip]
> > +       snprintf(out, out_size,
> > +               "\n"
> > +               "%s: flags=<%s> mtu %u\n"
> > +               "\tether %02X:%02X:%02X:%02X:%02X:%02X rxqueues %u
> txqueues %u\n"
> > +               "\tport# %u  speed %u Mbps\n"
> 
> +               "\tport# %u  speed %s\n"
> 
> > +               "\tRX packets %" PRIu64"  bytes %" PRIu64"\n"
> > +               "\tRX errors %" PRIu64"  missed %" PRIu64"  no-mbuf %"
> PRIu64"\n"
> > +               "\tTX packets %" PRIu64"  bytes %" PRIu64"\n"
> > +               "\tTX errors %" PRIu64"\n",
> > +               link->name,
> > +               eth_link.link_status == 0 ? "DOWN" : "UP",
> > +               mtu,
> > +               mac_addr.addr_bytes[0], mac_addr.addr_bytes[1],
> > +               mac_addr.addr_bytes[2], mac_addr.addr_bytes[3],
> > +               mac_addr.addr_bytes[4], mac_addr.addr_bytes[5],
> > +               link->n_rxq,
> > +               link->n_txq,
> > +               link->port_id,
> > +               eth_link.link_speed,
> 
> +               rte_eth_link_speed_to_str(eth_link.link_speed),
> 
> > +               stats.ipackets,
> > +               stats.ibytes,
> > +               stats.ierrors,
> > +               stats.imissed,
> > +               stats.rx_nombuf,
> > +               stats.opackets,
> > +               stats.obytes,
> > +               stats.oerrors);
> 
> 
> 
> --
> David Marchand

Using rte_eth_link_speed_to_str() in V6, thanks!


More information about the dev mailing list