[spp] [PATCH] docs: add how to specify default route to classifier_table
x-fn-spp at sl.ntt-tx.co.jp
x-fn-spp at sl.ntt-tx.co.jp
Mon Jul 30 07:10:35 CEST 2018
From: Hideyuki <yamashita.hideyuki at po.ntt-tx.co.jp>
This patch adds how to specify default route to classifier_table.
Signed-off-by: Hideyuki Yamashita <yamashita.hideyuki at po.ntt-tx.co.jp>
Signed-off-by: Naoki Takada <takada.naoki at lab.ntt.co.jp>
---
docs/guides/spp_vf/commands/secondary.rst | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/docs/guides/spp_vf/commands/secondary.rst b/docs/guides/spp_vf/commands/secondary.rst
index 58ccec5..872c162 100644
--- a/docs/guides/spp_vf/commands/secondary.rst
+++ b/docs/guides/spp_vf/commands/secondary.rst
@@ -215,6 +215,15 @@ This is an example to register an entry for port ``ring:0``.
spp > sec 1;classifier_table add mac 52:54:00:01:00:01 ring:0
+The difference is this example uses ``default`` instead of ``52:54:00:01:00:01`` to forward packets to ``ring:0`` if packets does not match any of registered
+MAC address.
+specifies default route and if the received packet
+does not match any MAC address, then forwarded to specified default destination.
+
+.. 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
@@ -228,6 +237,14 @@ for port ``ring:0``.
spp > sec 0;classifier_table add vlan 101 52:54:00:01:00:01 ring:0
+The difference is this example uses ``default`` instead of ``52:54:00:01:00:01`` to forward packets to ``ring:1`` if packets does not match any of registered MAC address for specified VLAN_ID.
+specifies default route of the specified vlan and if the received packet
+does not match any MAC address, then forwarded to specified default destination.
+
+.. code-block:: console
+
+ spp > sec 0;classifier_table add vlan 101 default ring:1
+
Delete an entry.
.. code-block:: console
--
2.18.0
More information about the spp
mailing list