From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id E473EB52A for ; Sun, 15 Feb 2015 05:07:53 +0100 (CET) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga103.fm.intel.com with ESMTP; 14 Feb 2015 20:00:32 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.09,579,1418112000"; d="scan'208";a="666550571" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by fmsmga001.fm.intel.com with ESMTP; 14 Feb 2015 20:07:51 -0800 Received: from shecgisg004.sh.intel.com (shecgisg004.sh.intel.com [10.239.29.89]) by shvmail01.sh.intel.com with ESMTP id t1F47nXD031350; Sun, 15 Feb 2015 12:07:49 +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 t1F47k3C000674; Sun, 15 Feb 2015 12:07:48 +0800 Received: (from wujingji@localhost) by shecgisg004.sh.intel.com (8.13.6/8.13.6/Submit) id t1F47kCL000670; Sun, 15 Feb 2015 12:07:46 +0800 From: Jingjing Wu To: dev@dpdk.org Date: Sun, 15 Feb 2015 12:07:34 +0800 Message-Id: <1423973254-605-6-git-send-email-jingjing.wu@intel.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1423973254-605-1-git-send-email-jingjing.wu@intel.com> References: <1422593303-15308-1-git-send-email-zhida.zang@intel.com> <1423973254-605-1-git-send-email-jingjing.wu@intel.com> Subject: [dpdk-dev] [PATCH v2 5/5] doc: commands changed in testpmd_funcs for flex filter 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: Sun, 15 Feb 2015 04:07:54 -0000 document of new command: - flex_filter (add|del) (port_id) len (len_value) bytes (bytes_value) mask (mask_value) priority (prio_value) queue (queue_id) Signed-off-by: Jingjing Wu --- doc/guides/testpmd_app_ug/testpmd_funcs.rst | 56 ++++++----------------------- 1 file changed, 10 insertions(+), 46 deletions(-) diff --git a/doc/guides/testpmd_app_ug/testpmd_funcs.rst b/doc/guides/testpmd_app_ug/testpmd_funcs.rst index 218835a..9e38423 100644 --- a/doc/guides/testpmd_app_ug/testpmd_funcs.rst +++ b/doc/guides/testpmd_app_ug/testpmd_funcs.rst @@ -1595,15 +1595,14 @@ Example: syn filter: on, priority: high, queue: 3 -add_flex_filter +flex_filter ~~~~~~~~~~~~~~~ -Add a Flex filter, -which recognizes any arbitrary pattern within the first 128 bytes of the packet +By flex filter, packets can be recognized by any arbitrary pattern within the first 128 bytes of the packet and routes packets into one of the receive queues. -add_flex_filter (port_id) len (len_value) bytes (bytes_string) mask (mask_value) -priority (prio_value) queue (queue_id) index (idx) +flex_filter (add|del) (port_id) len (len_value) bytes (bytes_value) +mask (mask_value) priority (prio_value) queue (queue_id) The available information parameters are: @@ -1611,55 +1610,20 @@ The available information parameters are: * len_value: filter length in byte, no greater than 128. -* bytes_string: a sting in format of octal, means the value the flex filter need to match. +* bytes_value: a sting in format of octal, means the value the flex filter need to match. -* mask_value: a sting in format of octal, bit 1 means corresponding byte in DWORD participates in the match. +* mask_value: a sting in format of octal, bit 1 means corresponding byte participates in the match. * prio_value: the priority of this filter. * queue_id: The receive queue associated with this Flex filter. -* index: the index of this Flex filter - Example: .. code-block:: console - testpmd> add_flex_filter 0 len 16 bytes 0x00000000000000000000000008060000 mask 000C priority 3 queue 3 index 0 - -Assign a packet whose 13th and 14th bytes are 0x0806 to queue 3. - -remove_flex_filter -~~~~~~~~~~~~~~~~~~ - -Remove a Flex filter - -remove_flex_filter (port_id) index (idx) + testpmd> flex_filter 0 add len 16 bytes 0x00000000000000000000000008060000 + mask 000C priority 3 queue 3 -get_flex_filter -~~~~~~~~~~~~~~~ - -Get and display a Flex filter - -get_flex_filter (port_id) index (idx) - -Example: - -.. code-block:: console - - testpmd> get_flex_filter 0 index 0 - - filter[0]: - - length: 16 - - dword[]: 0x00000000 00000000 00000000 08060000 00000000 00000000 00000000 - 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 - 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 - 00000000 00000000 00000000 00000000 00000000 00000000 00000000 - - mask[]: - 0b0000000000001100000000000000000000000000000000000000000000000000000000 - 0000000000000000000000000000000000000000000000000000000000 - - priority: 3 queue: 3 + testpmd> flex_filter 0 del len 16 bytes 0x00000000000000000000000008060000 + mask 000C priority 3 queue 3 -- 1.9.3