From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from tama50.ecl.ntt.co.jp (tama50.ecl.ntt.co.jp [129.60.39.147]) by dpdk.org (Postfix) with ESMTP id B102D5F2A for ; Thu, 20 Sep 2018 10:30:21 +0200 (CEST) Received: from vc2.ecl.ntt.co.jp (vc2.ecl.ntt.co.jp [129.60.86.154]) by tama50.ecl.ntt.co.jp (8.13.8/8.13.8) with ESMTP id w8K8UK5Y011737; Thu, 20 Sep 2018 17:30:20 +0900 Received: from vc2.ecl.ntt.co.jp (localhost [127.0.0.1]) by vc2.ecl.ntt.co.jp (Postfix) with ESMTP id 0AB9D639155; Thu, 20 Sep 2018 17:30:20 +0900 (JST) Received: from jcms-pop21.ecl.ntt.co.jp (jcms-pop21.ecl.ntt.co.jp [129.60.87.134]) by vc2.ecl.ntt.co.jp (Postfix) with ESMTP id F3B276390C7; Thu, 20 Sep 2018 17:30:19 +0900 (JST) Received: from [IPv6:::1] (watercress.nslab.ecl.ntt.co.jp [129.60.13.73]) by jcms-pop21.ecl.ntt.co.jp (Postfix) with ESMTPSA id E960E40029E; Thu, 20 Sep 2018 17:30:19 +0900 (JST) References: <201807300510.w6U5AZdT010188@imss03.silk.ntt-tx.co.jp> <201808270050.w7R0oIne002966@imss03.silk.ntt-tx.co.jp> <8b3e705a-df9f-b9e2-1144-313c35f6aa21@lab.ntt.co.jp> From: Yasufumi Ogawa Message-ID: <1432cc4f-d879-f165-74ee-7280774407c2@lab.ntt.co.jp> Date: Thu, 20 Sep 2018 17:28:12 +0900 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <8b3e705a-df9f-b9e2-1144-313c35f6aa21@lab.ntt.co.jp> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-CC-Mail-RelayStamp: 1 To: spp@dpdk.org, x-fn-spp@sl.ntt-tx.co.jp Cc: ferruh.yigit@intel.com X-TM-AS-MML: disable Subject: Re: [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: Thu, 20 Sep 2018 08:30:22 -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.Thanks for your contribution! > > Acked-by: Yasufumi Ogawa Applied, thanks! >> >> 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 >> > >