From: Jingjing Wu <jingjing.wu@intel.com>
To: dev@dpdk.org
Subject: [dpdk-dev] [PATCH v2 5/5] doc: commands changed in testpmd_funcs for flex filter
Date: Sun, 15 Feb 2015 12:07:34 +0800 [thread overview]
Message-ID: <1423973254-605-6-git-send-email-jingjing.wu@intel.com> (raw)
In-Reply-To: <1423973254-605-1-git-send-email-jingjing.wu@intel.com>
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 <jingjing.wu@intel.com>
---
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
next prev parent reply other threads:[~2015-02-15 4:07 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <igbv1>
2015-01-30 4:48 ` [dpdk-dev] [PATCH] igb: integrate flex filter to new API zhida zang
2015-02-15 4:07 ` [dpdk-dev] [PATCH v2 0/5] Integrate flex filter in igb driver " Jingjing Wu
2015-02-15 4:07 ` [dpdk-dev] [PATCH v2 1/5] ethdev: define flex filter type and its structure Jingjing Wu
2015-02-15 4:07 ` [dpdk-dev] [PATCH v2 2/5] e1000: new functions replace old ones for flex filter Jingjing Wu
2015-02-15 4:07 ` [dpdk-dev] [PATCH v2 3/5] testpmd: new commands " Jingjing Wu
2015-02-15 4:07 ` [dpdk-dev] [PATCH v2 4/5] ethdev: remove old APIs and structures of " Jingjing Wu
2015-02-15 4:07 ` Jingjing Wu [this message]
2015-02-21 1:53 ` [dpdk-dev] [PATCH v3 0/5] Integrate flex filter in igb driver to new API Pablo de Lara
2015-02-21 1:53 ` [dpdk-dev] [PATCH v3 1/5] ethdev: define flex filter type and its structure Pablo de Lara
2015-02-21 1:53 ` [dpdk-dev] [PATCH v3 2/5] e1000: new functions replace old ones for flex filter Pablo de Lara
2015-02-21 1:53 ` [dpdk-dev] [PATCH v3 3/5] testpmd: new commands " Pablo de Lara
2015-02-21 1:53 ` [dpdk-dev] [PATCH v3 4/5] ethdev: remove old APIs and structures of " Pablo de Lara
2015-02-21 1:53 ` [dpdk-dev] [PATCH v3 5/5] doc: commands changed in testpmd_funcs for " Pablo de Lara
2015-02-22 1:29 ` [dpdk-dev] [PATCH v3 0/5] Integrate flex filter in igb driver to new API Thomas Monjalon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1423973254-605-6-git-send-email-jingjing.wu@intel.com \
--to=jingjing.wu@intel.com \
--cc=dev@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).