DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] app/testpmd: print Rx/Tx offload values
@ 2018-03-06 16:28 Ferruh Yigit
  2018-03-07 21:36 ` Yongseok Koh
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Ferruh Yigit @ 2018-03-06 16:28 UTC (permalink / raw)
  To: Wenzhuo Lu, Jingjing Wu; +Cc: dev, Ferruh Yigit, Shahaf Shuler

It is not clear which per port offloads are enabled. Printing offloads
values at forwarding start.

CRC strip offload value was printed in more verbose manner, it is
removed since Rx/Tx offload values covers it and printing only CRC one
can cause confusion.

Hexadecimal offloads values are not very user friendly but preferred to
not create to much noise during forwarding start.

Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
---
Cc: Shahaf Shuler <shahafs@mellanox.com>
---
 app/test-pmd/config.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c
index 4bb255c62..47845d0cb 100644
--- a/app/test-pmd/config.c
+++ b/app/test-pmd/config.c
@@ -1682,10 +1682,9 @@ rxtx_config_display(void)
 		struct rte_eth_txconf *tx_conf = &ports[pid].tx_conf;
 
 		printf("  port %d:\n", (unsigned int)pid);
-		printf("  CRC stripping %s\n",
-				(ports[pid].dev_conf.rxmode.offloads &
-				 DEV_RX_OFFLOAD_CRC_STRIP) ?
-				"enabled" : "disabled");
+		printf("  Rx offloads=0x%"PRIx64" Tx Offloads=0x%"PRIx64"\n",
+				ports[pid].dev_conf.rxmode.offloads,
+				ports[pid].dev_conf.txmode.offloads);
 		printf("  RX queues=%d - RX desc=%d - RX free threshold=%d\n",
 				nb_rxq, nb_rxd, rx_conf->rx_free_thresh);
 		printf("  RX threshold registers: pthresh=%d hthresh=%d "
-- 
2.13.6

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2018-04-22 23:02 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-06 16:28 [dpdk-dev] [PATCH] app/testpmd: print Rx/Tx offload values Ferruh Yigit
2018-03-07 21:36 ` Yongseok Koh
2018-03-09 18:27   ` Ferruh Yigit
2018-03-12 14:59 ` Ferruh Yigit
2018-03-12 15:05 ` [dpdk-dev] [PATCH v2] " Ferruh Yigit
2018-03-12 17:26   ` Yongseok Koh
2018-03-12 17:46     ` Ferruh Yigit
2018-03-12 17:53   ` [dpdk-dev] [PATCH v3] " Ferruh Yigit
2018-03-13  9:24     ` Van Haaren, Harry
2018-03-13 10:21       ` Ferruh Yigit
2018-03-13 11:06         ` Van Haaren, Harry
2018-04-22 23:02     ` Thomas Monjalon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).