Skip to content

Commit

Permalink
app/testpmd: fix show port info routine
Browse files Browse the repository at this point in the history
[ upstream commit a1be9d7 ]

This patch updates "show port info [port_id]" command to display
the tx_desc_lim.nb_seg_max and tx_desc_lim.nb_mtu_seg_max fields
of rte_eth_dev_info structure.

Fixes: 4fb7e80 ("ethdev: add Tx preparation")

Signed-off-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
Acked-by: Bernard Iremonger <bernard.iremonger@intel.com>
  • Loading branch information
viacheslavo authored and kevintraynor committed Aug 28, 2019
1 parent 6a1aa84 commit 670186c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/test-pmd/config.c
Expand Up @@ -510,6 +510,10 @@ port_infos_display(portid_t port_id)
printf("Min possible number of TXDs per queue: %hu\n",
dev_info.tx_desc_lim.nb_min);
printf("TXDs number alignment: %hu\n", dev_info.tx_desc_lim.nb_align);
printf("Max segment number per packet: %hu\n",
dev_info.tx_desc_lim.nb_seg_max);
printf("Max segment number per MTU/TSO: %hu\n",
dev_info.tx_desc_lim.nb_mtu_seg_max);

/* Show switch info only if valid switch domain and port id is set */
if (dev_info.switch_info.domain_id !=
Expand Down

0 comments on commit 670186c

Please sign in to comment.