Skip to contentSkip to conversation

app/testpmd: print Rx/Tx offload values

PATCH In review Ferruh Yigit 4 participants 12 messages Mar 6, 2018 – Apr 22, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 app/testpmd: print Rx/Tx offload values

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.

---
Cc: Shahaf Shuler <[email protected]>

---
 app/test-pmd/config.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
app/test-pmd/config.c +3 -4
index 4bb255c62..47845d0cb 100644
@@ -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 "
Signature · 1 line
2.13.6
#1 lore raw
Quoted 25 lines · Ferruh Yigit

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.

---
Cc: Shahaf Shuler <[email protected]>
---
app/test-pmd/config.c | 7 +++----

1 file changed, 3 insertions(+), 4 deletions(-)
app/test-pmd/config.c +0 -0
index 4bb255c62..47845d0cb 100644

app/test-pmd/config.c rxtx_config_display(void) · line 1687

Quoted 10 lines
app/test-pmd/config.c +3 -4
@@ -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);

So, if someone wants to know what these values mean, they should type 'show port cap all'.

BTW, tx_conf->offloads is printed a few lines later, then isn't it necessary to print rx_conf->offloads as well? Or, is it supposed to be identical to dev_conf.rxmode.offloads?

Thanks,
Yongseok

#2 lore raw
Quoted 27 lines · Yongseok Koh
Quoted 27 lines · Ferruh Yigit

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.

---
Cc: Shahaf Shuler <[email protected]>
---
app/test-pmd/config.c | 7 +++----

1 file changed, 3 insertions(+), 4 deletions(-)
app/test-pmd/config.c +0 -0
index 4bb255c62..47845d0cb 100644
@@ -1682,10 +1682,9 @@ rxtx_config_display(void)
 		struct rte_eth_txconf *tx_conf = &ports[pid].tx_conf;
 
Quoted 11 lines

app/test-pmd/config.c rxtx_config_display(void) · line 1687

Quoted 8 lines
app/test-pmd/config.c +3 -4
 		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);

So, if someone wants to know what these values mean, they should type 'show port cap all'.

Indeed I forget about 'show port cap all', it is better way to display offloads, still I believe it is good a have a brief info in the start, especially it already has "tx_conf->offloads"

btw, 'show port cap all' is missing some offload values, it needs to be updated.

Quoted 4 lines

BTW, tx_conf->offloads is printed a few lines later, then isn't it necessary to print rx_conf->offloads as well? Or, is it supposed to be identical to dev_conf.rxmode.offloads?

They may be different, good idea to add rx_conf->offloads as well. I will add it in v2.

Thanks,
ferruh

Quoted 4 lines

Thanks,
Yongseok

#3 lore raw

PATCH 1/1 app/testpmd: print Rx/Tx offload values

In reply to Ferruh Yigit

Which per port offloads are enabled is not clear. 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.

---
Cc: Shahaf Shuler <[email protected]>
Cc: Yongseok Koh <[email protected]>

v2:
* Add Rxq and Txq stats too
* Split Rx an Tx related logs and place them related group

---
 app/test-pmd/config.c | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)
app/test-pmd/config.c +7 -6
index 4bb255c62..6249b19bb 100644
@@ -1682,10 +1682,6 @@ 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 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 "
@@ -1693,6 +1689,9 @@ rxtx_config_display(void)
 				rx_conf->rx_thresh.pthresh,
 				rx_conf->rx_thresh.hthresh,
 				rx_conf->rx_thresh.wthresh);
+		printf("  Rx offloads=0x%"PRIx64" RXQ Offloads=0x%"PRIx64"\n",
+				ports[pid].dev_conf.rxmode.offloads,
+				rx_conf->offloads);
 		printf("  TX queues=%d - TX desc=%d - TX free threshold=%d\n",
 				nb_txq, nb_txd, tx_conf->tx_free_thresh);
 		printf("  TX threshold registers: pthresh=%d hthresh=%d "
@@ -1700,8 +1699,10 @@ rxtx_config_display(void)
 				tx_conf->tx_thresh.pthresh,
 				tx_conf->tx_thresh.hthresh,
 				tx_conf->tx_thresh.wthresh);
-		printf("  TX RS bit threshold=%d - TXQ offloads=0x%"PRIx64"\n",
-				tx_conf->tx_rs_thresh, tx_conf->offloads);
+		printf("  TX RS bit threshold=%d\n", tx_conf->tx_rs_thresh);
+		printf("  Tx Offloads=0x%"PRIx64" TXQ offloads=0x%"PRIx64"\n",
+				ports[pid].dev_conf.txmode.offloads,
+				tx_conf->offloads);
 	}
 }
 
Signature · 1 line
2.13.6
#4 lore raw

PATCH v2 1/1 app/testpmd: print Rx/Tx offload values

In reply to Ferruh Yigit

Which per port offloads are enabled is not clear. 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.

---
Cc: Shahaf Shuler <[email protected]>
Cc: Yongseok Koh <[email protected]>

v2:
* Add Rxq and Txq stats too
* Split Rx an Tx related logs and place them related group

---
 app/test-pmd/config.c | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)
app/test-pmd/config.c +7 -6
index 4bb255c62..6249b19bb 100644
@@ -1682,10 +1682,6 @@ 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 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 "
@@ -1693,6 +1689,9 @@ rxtx_config_display(void)
 				rx_conf->rx_thresh.pthresh,
 				rx_conf->rx_thresh.hthresh,
 				rx_conf->rx_thresh.wthresh);
+		printf("  Rx offloads=0x%"PRIx64" RXQ Offloads=0x%"PRIx64"\n",
+				ports[pid].dev_conf.rxmode.offloads,
+				rx_conf->offloads);
 		printf("  TX queues=%d - TX desc=%d - TX free threshold=%d\n",
 				nb_txq, nb_txd, tx_conf->tx_free_thresh);
 		printf("  TX threshold registers: pthresh=%d hthresh=%d "
@@ -1700,8 +1699,10 @@ rxtx_config_display(void)
 				tx_conf->tx_thresh.pthresh,
 				tx_conf->tx_thresh.hthresh,
 				tx_conf->tx_thresh.wthresh);
-		printf("  TX RS bit threshold=%d - TXQ offloads=0x%"PRIx64"\n",
-				tx_conf->tx_rs_thresh, tx_conf->offloads);
+		printf("  TX RS bit threshold=%d\n", tx_conf->tx_rs_thresh);
+		printf("  Tx Offloads=0x%"PRIx64" TXQ offloads=0x%"PRIx64"\n",
+				ports[pid].dev_conf.txmode.offloads,
+				tx_conf->offloads);
 	}
 }
 
Signature · 1 line
2.13.6
Acked-by on v2 1/1
#5 lore raw
Quoted 51 lines · Ferruh Yigit

Which per port offloads are enabled is not clear. 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.

---
Cc: Shahaf Shuler <[email protected]>
Cc: Yongseok Koh <[email protected]>

v2:
* Add Rxq and Txq stats too
* Split Rx an Tx related logs and place them related group
---
app/test-pmd/config.c | 13 +++++++------

1 file changed, 7 insertions(+), 6 deletions(-)
app/test-pmd/config.c +3 -4
index 4bb255c62..6249b19bb 100644
@@ -1682,10 +1682,6 @@ 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 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 "
@@ -1693,6 +1689,9 @@ rxtx_config_display(void)
 				rx_conf->rx_thresh.pthresh,
 				rx_conf->rx_thresh.hthresh,
 				rx_conf->rx_thresh.wthresh);
+		printf("  Rx offloads=0x%"PRIx64" RXQ Offloads=0x%"PRIx64"\n",
+				ports[pid].dev_conf.rxmode.offloads,
+				rx_conf->offloads);
 		printf("  TX queues=%d - TX desc=%d - TX free threshold=%d\n",
 				nb_txq, nb_txd, tx_conf->tx_free_thresh);
 		printf("  TX threshold registers: pthresh=%d hthresh=%d "

app/test-pmd/config.c rxtx_config_display(void) · line 1703

Quoted 7 lines
app/test-pmd/config.c +2 -2
@@ -1700,8 +1699,10 @@ rxtx_config_display(void)
 				tx_conf->tx_thresh.pthresh,
 				tx_conf->tx_thresh.hthresh,
 				tx_conf->tx_thresh.wthresh);
-		printf("  TX RS bit threshold=%d - TXQ offloads=0x%"PRIx64"\n",
-				tx_conf->tx_rs_thresh, tx_conf->offloads);
+		printf("  TX RS bit threshold=%d\n", tx_conf->tx_rs_thresh);
+		printf("  Tx Offloads=0x%"PRIx64" TXQ offloads=0x%"PRIx64"\n",

Small comment. It would be better to be consistent between "Offloads" and "offloads" for Rx and Tx. :-)

Other than that,

Thanks

#6 lore raw
Quoted 53 lines · Yongseok Koh
Quoted 53 lines · Ferruh Yigit

Which per port offloads are enabled is not clear. 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.

---
Cc: Shahaf Shuler <[email protected]>
Cc: Yongseok Koh <[email protected]>

v2:
* Add Rxq and Txq stats too
* Split Rx an Tx related logs and place them related group
---
app/test-pmd/config.c | 13 +++++++------

1 file changed, 7 insertions(+), 6 deletions(-)
app/test-pmd/config.c +3 -4
index 4bb255c62..6249b19bb 100644
@@ -1682,10 +1682,6 @@ 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 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 "
@@ -1693,6 +1689,9 @@ rxtx_config_display(void)
 				rx_conf->rx_thresh.pthresh,
 				rx_conf->rx_thresh.hthresh,
 				rx_conf->rx_thresh.wthresh);
+		printf("  Rx offloads=0x%"PRIx64" RXQ Offloads=0x%"PRIx64"\n",
+				ports[pid].dev_conf.rxmode.offloads,
+				rx_conf->offloads);
 		printf("  TX queues=%d - TX desc=%d - TX free threshold=%d\n",
 				nb_txq, nb_txd, tx_conf->tx_free_thresh);
 		printf("  TX threshold registers: pthresh=%d hthresh=%d "
@@ -1700,8 +1699,10 @@ rxtx_config_display(void)
 				tx_conf->tx_thresh.pthresh,
 				tx_conf->tx_thresh.hthresh,
Quoted 8 lines

app/test-pmd/config.c rxtx_config_display(void) · line 1703

Quoted 5 lines
app/test-pmd/config.c +2 -2
 				tx_conf->tx_thresh.wthresh);
-		printf("  TX RS bit threshold=%d - TXQ offloads=0x%"PRIx64"\n",
-				tx_conf->tx_rs_thresh, tx_conf->offloads);
+		printf("  TX RS bit threshold=%d\n", tx_conf->tx_rs_thresh);
+		printf("  Tx Offloads=0x%"PRIx64" TXQ offloads=0x%"PRIx64"\n",

Small comment. It would be better to be consistent between "Offloads" and "offloads" for Rx and Tx. :-)

Right :) I will send a new version.

Quoted 6 lines

Other than that,

Thanks

#7 lore raw

PATCH v3 1/1 app/testpmd: print Rx/Tx offload values

In reply to Ferruh Yigit

Which per port offloads are enabled is not clear. 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.

---
Cc: Shahaf Shuler <[email protected]>
Cc: Yongseok Koh <[email protected]>

v2:
* Add Rxq and Txq stats too
* Split Rx an Tx related logs and place them related group

v3:
* Use consistent syntax in logs

---
 app/test-pmd/config.c | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)
app/test-pmd/config.c +7 -6
index 4bb255c62..51f725865 100644
@@ -1682,10 +1682,6 @@ 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 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 "
@@ -1693,6 +1689,9 @@ rxtx_config_display(void)
 				rx_conf->rx_thresh.pthresh,
 				rx_conf->rx_thresh.hthresh,
 				rx_conf->rx_thresh.wthresh);
+		printf("  Rx offloads=0x%"PRIx64" RXQ offloads=0x%"PRIx64"\n",
+				ports[pid].dev_conf.rxmode.offloads,
+				rx_conf->offloads);
 		printf("  TX queues=%d - TX desc=%d - TX free threshold=%d\n",
 				nb_txq, nb_txd, tx_conf->tx_free_thresh);
 		printf("  TX threshold registers: pthresh=%d hthresh=%d "
@@ -1700,8 +1699,10 @@ rxtx_config_display(void)
 				tx_conf->tx_thresh.pthresh,
 				tx_conf->tx_thresh.hthresh,
 				tx_conf->tx_thresh.wthresh);
-		printf("  TX RS bit threshold=%d - TXQ offloads=0x%"PRIx64"\n",
-				tx_conf->tx_rs_thresh, tx_conf->offloads);
+		printf("  TX RS bit threshold=%d\n", tx_conf->tx_rs_thresh);
+		printf("  Tx offloads=0x%"PRIx64" TXQ offloads=0x%"PRIx64"\n",
+				ports[pid].dev_conf.txmode.offloads,
+				tx_conf->offloads);
 	}
 }
 
Signature · 1 line
2.13.6
#8 lore raw
Quoted 10 lines

From: dev [mailto:[email protected]] On Behalf Of Ferruh Yigit
Sent: Monday, March 12, 2018 5:53 PM
To: Lu, Wenzhuo <[email protected]>; Wu, Jingjing <[email protected]>
Cc: [email protected]; Yigit, Ferruh <[email protected]>; Shahaf Shuler <[email protected]>; Yongseok Koh <[email protected]>
Subject: [dpdk-dev] [PATCH v3] app/testpmd: print Rx/Tx offload values

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

Quoted 6 lines

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.

Hmmm - I'm thinking is there a better method to reduce verbosity, but keep user friendliness?

Can the dynamic logs be used? By default, just print the hex mask, but with --log-level="pmd.net.*.offload_flags" we print the list, itemized?

crc strip .......... 1
vlan strip ......... 1
udp checksum ....... 0

I'm not sure what the exact string should be - testpmd specific or DPDK wide at the PMD level?

#9 lore raw
Quoted 21 lines · Harry
Quoted 10 lines

From: dev [mailto:[email protected]] On Behalf Of Ferruh Yigit
Sent: Monday, March 12, 2018 5:53 PM
To: Lu, Wenzhuo <[email protected]>; Wu, Jingjing <[email protected]>
Cc: [email protected]; Yigit, Ferruh <[email protected]>; Shahaf Shuler <[email protected]>; Yongseok Koh <[email protected]>
Subject: [dpdk-dev] [PATCH v3] app/testpmd: print Rx/Tx offload values

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

Quoted 6 lines

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.

Hmmm - I'm thinking is there a better method to reduce verbosity, but keep user friendliness?

Quoted 6 lines

Can the dynamic logs be used? By default, just print the hex mask, but with --log-level="pmd.net.*.offload_flags" we print the list, itemized?

crc strip .......... 1
vlan strip ......... 1
udp checksum ....... 0

As Yongseok mentioned 'show port cap all' prints the offload capabilities in a more user friendly way [1] [2]. This patch adds a summary config log after "start" command, I think it is good to keep it brief.

Related to the "pmd.net.*.offload_flags" suggestion, we are currently using log types to select components, it can be interesting to use feature based log types, ethdev may register them and PMDs can use it.

[1]
************ Port 0 supported offload features: ************

VLAN stripped:                 off
Double VLANs stripped:         off
RX IPv4 checksum:              off
RX UDP checksum:               off
RX TCP checksum:               off
RX Outer IPv4 checksum:               off
VLAN insert:                   off
Double VLANs insert:           off
TX IPv4 checksum:              off
TX UDP checksum:               off
TX TCP checksum:               off
TX SCTP checksum:              off
TX Outer IPv4 checksum:        off
TX TCP segmentation:           off
TSO for VXLAN tunnel packet:   off
TSO for GRE tunnel packet:     off
TSO for IPIP tunnel packet:    off
TSO for GENEVE tunnel packet:  off

[2]
This command needs a volunteer to add missing offloading types.

Quoted 4 lines

I'm not sure what the exact string should be - testpmd specific or DPDK wide at the PMD level?

#10 lore raw
Quoted 36 lines

-----Original Message-----
From: Yigit, Ferruh
Sent: Tuesday, March 13, 2018 10:21 AM
To: Van Haaren, Harry <[email protected]>; Lu, Wenzhuo <[email protected]>; Wu, Jingjing <[email protected]>
Cc: [email protected]; Shahaf Shuler <[email protected]>; Yongseok Koh <[email protected]>
Subject: Re: [dpdk-dev] [PATCH v3] app/testpmd: print Rx/Tx offload values

Quoted 3 lines · Harry
Quoted 3 lines

From: dev [mailto:[email protected]] On Behalf Of Ferruh Yigit
Sent: Monday, March 12, 2018 5:53 PM
To: Lu, Wenzhuo <[email protected]>; Wu, Jingjing

<[email protected]>

Quoted 11 lines
Quoted 11 lines

Cc: [email protected]; Yigit, Ferruh <[email protected]>; Shahaf Shuler <[email protected]>; Yongseok Koh <[email protected]>
Subject: [dpdk-dev] [PATCH v3] app/testpmd: print Rx/Tx offload values

Which per port offloads are enabled is not clear. 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.

Quoted 8 lines
Quoted 2 lines

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

Hmmm - I'm thinking is there a better method to reduce verbosity, but keep user friendliness?

Can the dynamic logs be used? By default, just print the hex mask, but

with

Quoted 2 lines

--log-level="pmd.net.*.offload_flags" we print the list, itemized?

Quoted 7 lines
Quoted 3 lines

crc strip .......... 1
vlan strip ......... 1
udp checksum ....... 0

As Yongseok mentioned 'show port cap all' prints the offload capabilities in a more user friendly way [1] [2]. This patch adds a summary config log after "start" command, I think it is good to keep it brief.

Apologies I didn't follow this thread from the start, Ack to keep it brief here.

Quoted 4 lines

Related to the "pmd.net.*.offload_flags" suggestion, we are currently using log
types to select components, it can be interesting to use feature based log types, ethdev may register them and PMDs can use it.

Yes - we'd need to define what log-levels exist per feature, so there is some consistency. I suggest postponing that as future work, existing patch is fine with me as is.

#11 lore raw
In reply to Ferruh Yigit

12/03/2018 18:53, Ferruh Yigit:

Quoted 7 lines

Which per port offloads are enabled is not clear. 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.

Quoted 5 lines

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

Applied, thanks