From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 8F7DF1B683 for ; Tue, 3 Apr 2018 10:58:11 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Apr 2018 01:58:10 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.48,400,1517904000"; d="scan'208";a="47526614" Received: from dw2.bj.intel.com ([172.16.117.110]) by orsmga002.jf.intel.com with ESMTP; 03 Apr 2018 01:58:09 -0700 From: Wei Dai To: wenzhuo.lu@intel.com, jingjing.wu@intel.com Cc: dev@dpdk.org, Wei Dai Date: Tue, 3 Apr 2018 16:57:33 +0800 Message-Id: <20180403085735.3090-1-wei.dai@intel.com> X-Mailer: git-send-email 2.9.5 In-Reply-To: <20180322080025.30830-1-wei.dai@intel.com> References: <20180322080025.30830-1-wei.dai@intel.com> Subject: [dpdk-dev] [PATCH v7 0/2] app/testpmd: add new commands to test new Tx/Rx offloads X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Apr 2018 08:58:12 -0000 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 To get current Rx offload per queue and per port configuration of a port, run: tesstpmd > rx_offload get configuration To enable or disable a Rx per port offloading, please run: testpmd > rx_offload enable|disable per_port vlan_strip|ipv4_cksum|... 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|... Same commands like "tx_offload ..." are also added to support new Tx offload API test. Signed-off-by: Wei Dai Acked-by: Jingjing Wu --- 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