Caught while diffing with ip_pipeline code.

On Wed, Sep 23, 2020 at 8:07 PM Cristian Dumitrescu
<cristian.dumitre...@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

Reply via email to