From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id C513B5A76 for ; Mon, 9 Mar 2015 15:39:34 +0100 (CET) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP; 09 Mar 2015 07:39:33 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.11,368,1422950400"; d="scan'208";a="689207673" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by fmsmga002.fm.intel.com with ESMTP; 09 Mar 2015 07:39:33 -0700 Received: from shecgisg004.sh.intel.com (shecgisg004.sh.intel.com [10.239.29.89]) by shvmail01.sh.intel.com with ESMTP id t29EdUSa021047; Mon, 9 Mar 2015 22:39:30 +0800 Received: from shecgisg004.sh.intel.com (localhost [127.0.0.1]) by shecgisg004.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP id t29EdRxx020912; Mon, 9 Mar 2015 22:39:29 +0800 Received: (from hzhan75@localhost) by shecgisg004.sh.intel.com (8.13.6/8.13.6/Submit) id t29EdPMN020908; Mon, 9 Mar 2015 22:39:25 +0800 From: Helin Zhang To: dev@dpdk.org Date: Mon, 9 Mar 2015 22:39:23 +0800 Message-Id: <1425911963-20878-1-git-send-email-helin.zhang@intel.com> X-Mailer: git-send-email 1.7.4.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] =?utf-8?q?=5BPATCH=5D_doc=3A_update_of_testpmd_user_gu?= =?utf-8?q?ide?= X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Mar 2015 14:39:35 -0000 It updated the user guide of testpmd, for the newly supported commands of getting/setting hash functions, and the command of showing port information. Signed-off-by: Helin Zhang --- doc/guides/testpmd_app_ug/testpmd_funcs.rst | 76 +++++++++++++++++++++++++++-- 1 file changed, 73 insertions(+), 3 deletions(-) diff --git a/doc/guides/testpmd_app_ug/testpmd_funcs.rst b/doc/guides/testpmd_app_ug/testpmd_funcs.rst index a99e14d..cc01c89 100644 --- a/doc/guides/testpmd_app_ug/testpmd_funcs.rst +++ b/doc/guides/testpmd_app_ug/testpmd_funcs.rst @@ -138,16 +138,32 @@ For example: ********************* Infos for port 0 ********************* MAC address: XX:XX:XX:XX:XX:XX + Connect to socket: 0 + memory allocation on the socket: 0 Link status: up - Link speed: 10000 Mbps + Link speed: 40000 Mbps Link duplex: full-duplex Promiscuous mode: enabled Allmulticast mode: disabled - Maximum number of MAC addresses: 127 + Maximum number of MAC addresses: 64 + Maximum number of MAC addresses of hash filtering: 0 VLAN offload: strip on filter on qinq(extend) off + Redirection table size: 512 + Supported flow types: + ipv4-frag + ipv4-tcp + ipv4-udp + ipv4-sctp + ipv4-other + ipv6-frag + ipv6-tcp + ipv6-udp + ipv6-sctp + ipv6-other + l2_payload show port rss reta ~~~~~~~~~~~~~~~~~~ @@ -968,7 +984,7 @@ port config - RSS Set the RSS (Receive Side Scaling) mode on or off: -port config all rss (ip|udp|none) +port config all rss (all|ip|tcp|udp|sctp|ether|none) RSS is on by default. @@ -1518,3 +1534,57 @@ For example, to select the first 16 bytes from the offset 4 (bytes) of packet’ .. code-block:: console testpmd> flow_director_flex_payload 0 l4 (4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19) + +get_sym_hash_ena_per_port +~~~~~~~~~~~~~~~~~~~~~~~~~ + +Get symmetric hash enable configuration per port. + +get_sym_hash_ena_per_port (port_id) + +For example, to get symmetric hash enable configuration of port 1. + +.. code-block:: console + + testpmd> get_sym_hash_ena_per_port 1 + +set_sym_hash_ena_per_port +~~~~~~~~~~~~~~~~~~~~~~~~~ + +Set symmetric hash enable configuration per port to enable or disable. + +set_sym_hash_ena_per_port (port_id) (enable|disable) + +For example, to set symmetric hash enable configuration of port 1 to enable. + +.. code-block:: console + + testpmd> set_sym_hash_ena_per_port 1 enable + +get_hash_global_config +~~~~~~~~~~~~~~~~~~~~~~ + +Get the global configurations of hash filters. + +get_hash_global_config (port_id) + +For example, to get the global configurations of hash filters of port 1. + +.. code-block:: console + + testpmd> get_hash_global_config 1 + +set_hash_global_config +~~~~~~~~~~~~~~~~~~~~~~ + +Set the global configurations of hash filters. + +set_hash_global_config (port_id) (toeplitz|simple_xor|default) +(ipv4|ipv4-frag|ipv4-tcp|ipv4-udp|ipv4-sctp|ipv4-other|ipv6|ipv6-frag|ipv6-tcp|ipv6-udp|ipv6-sctp|ipv6-other|l2_payload) +(enable|disable) + +For example, to enable simple_xor for flow type of ipv6 on port 2. + +.. code-block:: console + + testpmd> set_hash_global_config 2 simple_xor ipv6 enable -- 1.9.3