Soft Patch Panel
 help / color / mirror / Atom feed
From: x-fn-spp@sl.ntt-tx.co.jp
To: ferruh.yigit@intel.com, ogawa.yasufumi@lab.ntt.co.jp
Cc: spp@dpdk.org
Subject: [spp] [PATCH v2] docs: add default route for classifier_table
Date: Mon, 27 Aug 2018 09:50:17 +0900	[thread overview]
Message-ID: <201808270050.w7R0oIne002966@imss03.silk.ntt-tx.co.jp> (raw)
In-Reply-To: <201807300510.w6U5AZdT010188@imss03.silk.ntt-tx.co.jp>

From: Hideyuki Yamashita <yamashita.hideyuki@po.ntt-tx.co.jp>

Add a description for registering default route. Default route is
applied for packets which are not matched any of registered MAC
addresses.

Signed-off-by: Hideyuki Yamashita <yamashita.hideyuki@po.ntt-tx.co.jp>
Signed-off-by: Naoki Takada <takada.naoki@lab.ntt.co.jp>
---
 docs/guides/spp_vf/commands/secondary.rst | 27 ++++++++++++++++++++---
 1 file changed, 24 insertions(+), 3 deletions(-)

diff --git a/docs/guides/spp_vf/commands/secondary.rst b/docs/guides/spp_vf/commands/secondary.rst
index 58ccec5..de0e819 100644
--- a/docs/guides/spp_vf/commands/secondary.rst
+++ b/docs/guides/spp_vf/commands/secondary.rst
@@ -209,25 +209,46 @@ to classifier table.
 
     spp > sec [SEC_ID];classifier_table add mac [MAC_ADDRESS] [RES_ID]
 
-This is an example to register an entry for port ``ring:0``.
+This is an example to register MAC address ``52:54:00:01:00:01``
+with resource ID ``ring:0``.
 
 .. code-block:: console
 
     spp > sec 1;classifier_table add mac 52:54:00:01:00:01 ring:0
 
+Here is another example in which using keyword ``default`` instead of
+``52:54:00:01:00:01``.
+``default`` is applied for packets which are not matched any of registered
+MAC addresses.
+In this case, all of not matched packets are sent to ``ring:0``.
+
+.. code-block:: console
+
+    spp > sec 0;classifier_table add mac default ring:0
+
 Register an entry with a VLAN ID to classifier table.
 
 .. code-block:: console
 
     spp > sec 1;classifier_table add vlan [VLAN_ID] [MAC_ADDRESS] [RES_ID]
 
-This is an example to register an entry with VLAN ID 101
-for port ``ring:0``.
+This is an example to register MAC address ``52:54:00:01:00:01``
+with VLAN ID and resource ID ``ring:0``.
 
 .. code-block:: console
 
     spp > sec 0;classifier_table add vlan 101 52:54:00:01:00:01 ring:0
 
+Here is another example in which using keyword ``default`` instead of
+``52:54:00:01:00:01``.
+``default`` is applied for packets which are not matched any of registered
+MAC addresses for specified VLAN ID.
+In this case, all of not matched packets are sent to ``ring:0``.
+
+.. code-block:: console
+
+    spp > sec 0;classifier_table add vlan 101 default ring:1
+
 Delete an entry.
 
 .. code-block:: console
-- 
2.18.0

  parent reply	other threads:[~2018-08-27  0:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-30  5:10 [spp] [PATCH] docs: add how to specify default route to classifier_table x-fn-spp
2018-08-22  4:22 ` Yasufumi Ogawa
2018-08-27  0:50 ` x-fn-spp [this message]
2018-08-27  7:02   ` [spp] [PATCH v2] docs: add default route for classifier_table Yasufumi Ogawa
2018-09-20  8:28     ` Yasufumi Ogawa

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=201808270050.w7R0oIne002966@imss03.silk.ntt-tx.co.jp \
    --to=x-fn-spp@sl.ntt-tx.co.jp \
    --cc=ferruh.yigit@intel.com \
    --cc=ogawa.yasufumi@lab.ntt.co.jp \
    --cc=spp@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).