[dpdk-dev] [PATCH v7 0/2] app/testpmd: add new commands to test new Tx/Rx offloads

Ferruh Yigit ferruh.yigit at intel.com
Tue May 8 17:33:35 CEST 2018


On 5/8/2018 2:30 PM, Dai, Wei wrote:
> Hi, Ferruh
> 
> Thanks for your feedback.
> I lost your mail but I can found it in http://dpdk.org/ml/archives/dev/2018-April/096900.html
> I will update new version of this patch for new offload API in my v8 big patch for ethdev: check offloads.
> As my command to get offload capablites and configuration return all results on port level and all queues,
> I'd like to adopt your suggestion to use 'show port ...'
> I search '.help_str' in app/test-pmd/cmdline.c and find all existed 'port config ...' is for port level configuration.
> So if it is used to add new commands to enable/disable per-queue offloading,  the style will be broken.
> I'd like to use 'port config <port_id> <offload> on|off ' to enable/disable offloading on all queues.
> I also would like to use 'port <port_id> rxq|txq <queue_id> <offload> on|off' to enable/disable offloading on a queue.
> All above my plan want to keep the style of current command and avoid to introduce more commands.
> Can you agree it ?

Yes, thanks for the update.

Just to group the command what do you think using "offload" keyword before
offload value, like:

port config <port_id> offload <offload> on|off

same for queue offloads.

> 
> Thanks & Best Regards
> -Wei
> 
>> -----Original Message-----
>> From: Dai, Wei
>> Sent: Tuesday, April 3, 2018 4:58 PM
>> To: Lu, Wenzhuo <wenzhuo.lu at intel.com>; Wu, Jingjing
>> <jingjing.wu at intel.com>
>> Cc: dev at dpdk.org; Dai, Wei <wei.dai at intel.com>
>> Subject: [PATCH v7 0/2] app/testpmd: add new commands to test new Tx/Rx
>> offloads
>>
>> Existed testpmd commands can't support per queue offload configuration.
>> And there are different commands to enable or disable different offloading.
>> This patch set add following commands to support new Tx/Rx offloading API
>> test.
>>
>> To get Rx offload capability of a port, please run:
>> testpmd > rx_offload get capability <port_id>
>>
>> To get current Rx offload per queue and per port configuration of a port,
>> run:
>> tesstpmd > rx_offload get configuration <port_id>
>>
>> To enable or disable a Rx per port offloading, please run:
>> testpmd > rx_offload enable|disable per_port vlan_strip|ipv4_cksum|...
>> <port_id>
>> This command will set|clear the associated bit in
>> dev->dev_conf.rxmode.offloads
>> for rte_eth_dev_configure and tx_conf->offloads of all Rx queues for
>> rte_eth_rx_queue_setup( ).
>>
>> To enable or disable a Tx per port offloading, please run:
>> testpmd > rx_offload enable|disable per_queue vlan_strip|ipv4_cksum|...
>> <port_id> <queue_id>
>>
>> Same commands like "tx_offload ..." are also added to support new Tx
>> offload API test.
>>
>> Signed-off-by: Wei Dai <wei.dai at intel.com>
>> Acked-by: Jingjing Wu <jingjing.wu at intel.com>
>>
>> ---
>> v7:
>>    update testpmd document
>> v6:
>>    reconfig port and queues if offloading is enabled or disabled
>> v5:
>>    don't depend on enum types defined in rte_ethdev.
>> v4:
>>    improve testpmd command per port offload to set or clear the port
>> configuration
>>    and the queue configuration of all queues.
>> v3:
>>    add enum rte_eth_rx_offload_type and enum rte_eth_tx_offload_type
>>    free memory of port->rx_offloads and port->tx_offloads when testpmd
>> is existed
>> v2:
>>    use rte_eth_dev_rx_offload_name() and
>> rte_eth_dev_tx_offload_name().
>>    remove static const strings of Rx/Tx offload names.
>>
>>
>> Wei Dai (2):
>>   app/testpmd: add commands to test new Rx offload API
>>   app/testpmd: add commands to test new Tx offload API
>>
>>  app/test-pmd/cmdline.c                      | 759
>> ++++++++++++++++++++++++++++
>>  app/test-pmd/testpmd.c                      |  34 +-
>>  app/test-pmd/testpmd.h                      |   2 +
>>  doc/guides/testpmd_app_ug/testpmd_funcs.rst |  87 ++++
>>  4 files changed, 878 insertions(+), 4 deletions(-)
>>
>> --
>> 2.9.5
> 



More information about the dev mailing list