From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail04.ics.ntt-tx.co.jp (mail05.ics.ntt-tx.co.jp [210.232.35.69]) by dpdk.org (Postfix) with ESMTP id 77E902BA4 for ; Mon, 27 Aug 2018 02:51:39 +0200 (CEST) Received: from gwchk03.silk.ntt-tx.co.jp (gwchk03.silk.ntt-tx.co.jp [10.107.0.111]) by mail04.ics.ntt-tx.co.jp (unknown) with ESMTP id w7R0pZiV009099; Mon, 27 Aug 2018 09:51:35 +0900 Received: (from root@localhost) by gwchk03.silk.ntt-tx.co.jp (unknown) id w7R0pZFa012406; Mon, 27 Aug 2018 09:51:35 +0900 Received: from gwchk.silk.ntt-tx.co.jp [10.107.0.110] by gwchk03.silk.ntt-tx.co.jp with ESMTP id KAA11837; Mon, 27 Aug 2018 09:50:18 +0900 Received: from imss03.silk.ntt-tx.co.jp (localhost [127.0.0.1]) by imss03.silk.ntt-tx.co.jp (unknown) with ESMTP id w7R0oIPQ002969; Mon, 27 Aug 2018 09:50:18 +0900 Received: from mgate01.silk.ntt-tx.co.jp (smtp02.silk.ntt-tx.co.jp [10.107.0.37]) by imss03.silk.ntt-tx.co.jp (unknown) with ESMTP id w7R0oIne002966; Mon, 27 Aug 2018 09:50:18 +0900 Message-Id: <201808270050.w7R0oIne002966@imss03.silk.ntt-tx.co.jp> Received: from localhost by mgate01.silk.ntt-tx.co.jp (unknown) id w7R0oIaY031623 ; Mon, 27 Aug 2018 09:50:18 +0900 From: x-fn-spp@sl.ntt-tx.co.jp To: ferruh.yigit@intel.com, ogawa.yasufumi@lab.ntt.co.jp Cc: spp@dpdk.org Date: Mon, 27 Aug 2018 09:50:17 +0900 X-Mailer: git-send-email 2.18.0 In-Reply-To: <201807300510.w6U5AZdT010188@imss03.silk.ntt-tx.co.jp> References: <201807300510.w6U5AZdT010188@imss03.silk.ntt-tx.co.jp> X-TM-AS-MML: No Subject: [spp] [PATCH v2] docs: add default route for classifier_table X-BeenThere: spp@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Soft Patch Panel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Aug 2018 00:51:42 -0000 From: Hideyuki Yamashita 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 Signed-off-by: Naoki Takada --- 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