* [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
* Re: [dpdk-dev] [PATCH] app/testpmd: print Rx/Tx offload values
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
2 siblings, 1 reply; 12+ messages in thread
From: Yongseok Koh @ 2018-03-07 21:36 UTC (permalink / raw)
To: Ferruh Yigit; +Cc: Wenzhuo Lu, Jingjing Wu, dev, Shahaf Shuler
> On Mar 6, 2018, at 8:28 AM, Ferruh Yigit <ferruh.yigit@intel.com> wrote:
>
> 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);
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
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [dpdk-dev] [PATCH] app/testpmd: print Rx/Tx offload values
2018-03-07 21:36 ` Yongseok Koh
@ 2018-03-09 18:27 ` Ferruh Yigit
0 siblings, 0 replies; 12+ messages in thread
From: Ferruh Yigit @ 2018-03-09 18:27 UTC (permalink / raw)
To: Yongseok Koh; +Cc: Wenzhuo Lu, Jingjing Wu, dev, Shahaf Shuler
On 3/7/2018 9:36 PM, Yongseok Koh wrote:
>
>> On Mar 6, 2018, at 8:28 AM, Ferruh Yigit <ferruh.yigit@intel.com> wrote:
>>
>> 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);
>
> 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.
>
> 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
>
> Thanks,
> Yongseok
>
^ permalink raw reply [flat|nested] 12+ messages in thread
* [dpdk-dev] [PATCH] app/testpmd: print Rx/Tx offload values
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-12 14:59 ` Ferruh Yigit
2018-03-12 15:05 ` [dpdk-dev] [PATCH v2] " Ferruh Yigit
2 siblings, 0 replies; 12+ messages in thread
From: Ferruh Yigit @ 2018-03-12 14:59 UTC (permalink / raw)
To: Wenzhuo Lu, Jingjing Wu; +Cc: dev, Ferruh Yigit, Shahaf Shuler, Yongseok Koh
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.
Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
---
Cc: Shahaf Shuler <shahafs@mellanox.com>
Cc: Yongseok Koh <yskoh@mellanox.com>
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(-)
diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c
index 4bb255c62..6249b19bb 100644
--- a/app/test-pmd/config.c
+++ b/app/test-pmd/config.c
@@ -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);
}
}
--
2.13.6
^ permalink raw reply [flat|nested] 12+ messages in thread
* [dpdk-dev] [PATCH v2] app/testpmd: print Rx/Tx offload values
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-12 14:59 ` Ferruh Yigit
@ 2018-03-12 15:05 ` Ferruh Yigit
2018-03-12 17:26 ` Yongseok Koh
2018-03-12 17:53 ` [dpdk-dev] [PATCH v3] " Ferruh Yigit
2 siblings, 2 replies; 12+ messages in thread
From: Ferruh Yigit @ 2018-03-12 15:05 UTC (permalink / raw)
To: Wenzhuo Lu, Jingjing Wu; +Cc: dev, Ferruh Yigit, Shahaf Shuler, Yongseok Koh
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.
Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
---
Cc: Shahaf Shuler <shahafs@mellanox.com>
Cc: Yongseok Koh <yskoh@mellanox.com>
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(-)
diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c
index 4bb255c62..6249b19bb 100644
--- a/app/test-pmd/config.c
+++ b/app/test-pmd/config.c
@@ -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);
}
}
--
2.13.6
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [dpdk-dev] [PATCH v2] app/testpmd: print Rx/Tx offload values
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
1 sibling, 1 reply; 12+ messages in thread
From: Yongseok Koh @ 2018-03-12 17:26 UTC (permalink / raw)
To: Ferruh Yigit; +Cc: Wenzhuo Lu, Jingjing Wu, dev, Shahaf Shuler
> On Mar 12, 2018, at 8:05 AM, Ferruh Yigit <ferruh.yigit@intel.com> wrote:
>
> 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.
>
> Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
> ---
> Cc: Shahaf Shuler <shahafs@mellanox.com>
> Cc: Yongseok Koh <yskoh@mellanox.com>
>
> 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(-)
>
> diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c
> index 4bb255c62..6249b19bb 100644
> --- a/app/test-pmd/config.c
> +++ b/app/test-pmd/config.c
> @@ -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",
Small comment. It would be better to be consistent between "Offloads" and "offloads"
for Rx and Tx. :-)
Other than that,
Acked-by: Yongseok Koh <yskoh@mellanox.com>
Thanks
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [dpdk-dev] [PATCH v2] app/testpmd: print Rx/Tx offload values
2018-03-12 17:26 ` Yongseok Koh
@ 2018-03-12 17:46 ` Ferruh Yigit
0 siblings, 0 replies; 12+ messages in thread
From: Ferruh Yigit @ 2018-03-12 17:46 UTC (permalink / raw)
To: Yongseok Koh; +Cc: Wenzhuo Lu, Jingjing Wu, dev, Shahaf Shuler
On 3/12/2018 5:26 PM, Yongseok Koh wrote:
>
>> On Mar 12, 2018, at 8:05 AM, Ferruh Yigit <ferruh.yigit@intel.com> wrote:
>>
>> 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.
>>
>> Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
>> ---
>> Cc: Shahaf Shuler <shahafs@mellanox.com>
>> Cc: Yongseok Koh <yskoh@mellanox.com>
>>
>> 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(-)
>>
>> diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c
>> index 4bb255c62..6249b19bb 100644
>> --- a/app/test-pmd/config.c
>> +++ b/app/test-pmd/config.c
>> @@ -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",
>
> Small comment. It would be better to be consistent between "Offloads" and "offloads"
> for Rx and Tx. :-)
Right :) I will send a new version.
>
> Other than that,
>
> Acked-by: Yongseok Koh <yskoh@mellanox.com>
> Thanks
>
^ permalink raw reply [flat|nested] 12+ messages in thread
* [dpdk-dev] [PATCH v3] app/testpmd: print Rx/Tx offload values
2018-03-12 15:05 ` [dpdk-dev] [PATCH v2] " Ferruh Yigit
2018-03-12 17:26 ` Yongseok Koh
@ 2018-03-12 17:53 ` Ferruh Yigit
2018-03-13 9:24 ` Van Haaren, Harry
2018-04-22 23:02 ` Thomas Monjalon
1 sibling, 2 replies; 12+ messages in thread
From: Ferruh Yigit @ 2018-03-12 17:53 UTC (permalink / raw)
To: Wenzhuo Lu, Jingjing Wu; +Cc: dev, Ferruh Yigit, Shahaf Shuler, Yongseok Koh
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.
Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
Acked-by: Yongseok Koh <yskoh@mellanox.com>
---
Cc: Shahaf Shuler <shahafs@mellanox.com>
Cc: Yongseok Koh <yskoh@mellanox.com>
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(-)
diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c
index 4bb255c62..51f725865 100644
--- a/app/test-pmd/config.c
+++ b/app/test-pmd/config.c
@@ -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);
}
}
--
2.13.6
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [dpdk-dev] [PATCH v3] app/testpmd: print Rx/Tx offload values
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-04-22 23:02 ` Thomas Monjalon
1 sibling, 1 reply; 12+ messages in thread
From: Van Haaren, Harry @ 2018-03-13 9:24 UTC (permalink / raw)
To: Yigit, Ferruh, Lu, Wenzhuo, Wu, Jingjing
Cc: dev, Yigit, Ferruh, Shahaf Shuler, Yongseok Koh
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Ferruh Yigit
> Sent: Monday, March 12, 2018 5:53 PM
> To: Lu, Wenzhuo <wenzhuo.lu@intel.com>; Wu, Jingjing <jingjing.wu@intel.com>
> Cc: dev@dpdk.org; Yigit, Ferruh <ferruh.yigit@intel.com>; Shahaf Shuler
> <shahafs@mellanox.com>; Yongseok Koh <yskoh@mellanox.com>
> 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.
>
> 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?
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [dpdk-dev] [PATCH v3] app/testpmd: print Rx/Tx offload values
2018-03-13 9:24 ` Van Haaren, Harry
@ 2018-03-13 10:21 ` Ferruh Yigit
2018-03-13 11:06 ` Van Haaren, Harry
0 siblings, 1 reply; 12+ messages in thread
From: Ferruh Yigit @ 2018-03-13 10:21 UTC (permalink / raw)
To: Van Haaren, Harry, Lu, Wenzhuo, Wu, Jingjing
Cc: dev, Shahaf Shuler, Yongseok Koh
On 3/13/2018 9:24 AM, Van Haaren, Harry wrote:
>> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Ferruh Yigit
>> Sent: Monday, March 12, 2018 5:53 PM
>> To: Lu, Wenzhuo <wenzhuo.lu@intel.com>; Wu, Jingjing <jingjing.wu@intel.com>
>> Cc: dev@dpdk.org; Yigit, Ferruh <ferruh.yigit@intel.com>; Shahaf Shuler
>> <shahafs@mellanox.com>; Yongseok Koh <yskoh@mellanox.com>
>> 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.
>>
>> 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
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.
>
>
> I'm not sure what the exact string should be - testpmd specific or DPDK wide at the PMD level?
>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [dpdk-dev] [PATCH v3] app/testpmd: print Rx/Tx offload values
2018-03-13 10:21 ` Ferruh Yigit
@ 2018-03-13 11:06 ` Van Haaren, Harry
0 siblings, 0 replies; 12+ messages in thread
From: Van Haaren, Harry @ 2018-03-13 11:06 UTC (permalink / raw)
To: Yigit, Ferruh, Lu, Wenzhuo, Wu, Jingjing; +Cc: dev, Shahaf Shuler, Yongseok Koh
> -----Original Message-----
> From: Yigit, Ferruh
> Sent: Tuesday, March 13, 2018 10:21 AM
> To: Van Haaren, Harry <harry.van.haaren@intel.com>; Lu, Wenzhuo
> <wenzhuo.lu@intel.com>; Wu, Jingjing <jingjing.wu@intel.com>
> Cc: dev@dpdk.org; Shahaf Shuler <shahafs@mellanox.com>; Yongseok Koh
> <yskoh@mellanox.com>
> Subject: Re: [dpdk-dev] [PATCH v3] app/testpmd: print Rx/Tx offload values
>
> On 3/13/2018 9:24 AM, Van Haaren, Harry wrote:
> >> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Ferruh Yigit
> >> Sent: Monday, March 12, 2018 5:53 PM
> >> To: Lu, Wenzhuo <wenzhuo.lu@intel.com>; Wu, Jingjing
> <jingjing.wu@intel.com>
> >> Cc: dev@dpdk.org; Yigit, Ferruh <ferruh.yigit@intel.com>; Shahaf Shuler
> >> <shahafs@mellanox.com>; Yongseok Koh <yskoh@mellanox.com>
> >> 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.
> >>
> >> 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
>
> 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.
> 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.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [dpdk-dev] [PATCH v3] app/testpmd: print Rx/Tx offload values
2018-03-12 17:53 ` [dpdk-dev] [PATCH v3] " Ferruh Yigit
2018-03-13 9:24 ` Van Haaren, Harry
@ 2018-04-22 23:02 ` Thomas Monjalon
1 sibling, 0 replies; 12+ messages in thread
From: Thomas Monjalon @ 2018-04-22 23:02 UTC (permalink / raw)
To: Ferruh Yigit; +Cc: dev, Wenzhuo Lu, Jingjing Wu, Shahaf Shuler, Yongseok Koh
12/03/2018 18:53, 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.
>
> Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
> Acked-by: Yongseok Koh <yskoh@mellanox.com>
Applied, thanks
^ 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).