Soft Patch Panel
 help / color / mirror / Atom feed
* [spp] [PATCH] docs: add how to specify default route to classifier_table
@ 2018-07-30  5:10 x-fn-spp
  2018-08-22  4:22 ` Yasufumi Ogawa
  2018-08-27  0:50 ` [spp] [PATCH v2] docs: add default route for classifier_table x-fn-spp
  0 siblings, 2 replies; 5+ messages in thread
From: x-fn-spp @ 2018-07-30  5:10 UTC (permalink / raw)
  To: ferruh.yigit, ogawa.yasufumi; +Cc: spp

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

This patch adds how to specify default route to classifier_table.

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 | 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [spp] [PATCH] docs: add how to specify default route to classifier_table
  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 ` [spp] [PATCH v2] docs: add default route for classifier_table x-fn-spp
  1 sibling, 0 replies; 5+ messages in thread
From: Yasufumi Ogawa @ 2018-08-22  4:22 UTC (permalink / raw)
  To: x-fn-spp, ferruh.yigit; +Cc: spp

> From: Hideyuki <yamashita.hideyuki@po.ntt-tx.co.jp>
> 
> This patch adds how to specify default route to classifier_table.
> 
> 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 | 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
First, you also should update before this line. The word 'entry' is a little ambiguous. Here is my proposal.

From:
This is an example to register an entry for port ``ring:0``.

To:
This is an example to register MAC address ``52:54:00:01:00:01``
with resource ID ``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.
Second, It is too long. It should be less than 80 chars per one line.

I do not understand what is 'the difference' because you do not mention about the another example at first. Do you think 
changing it like this one.

Here is another example in which using keyword ``default`` instead of ``52:54:00:01:00:01``.
``default`` is used for packets which are not matched any of registered MAC addresses.
In this case, all of not matched packets are sent to ``ring:0``.

> +specifies default route and if the received packet
> +does not match any MAC address, then forwarded to specified default destination.
It is no need anymore.

> +
> +.. 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
It is almost similar to the first comment above.

>   
> +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.
And it is also similar to the second comment above.

Thanks for your contribution.
> +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
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [spp] [PATCH v2] docs: add default route for classifier_table
  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
  2018-08-27  7:02   ` Yasufumi Ogawa
  1 sibling, 1 reply; 5+ messages in thread
From: x-fn-spp @ 2018-08-27  0:50 UTC (permalink / raw)
  To: ferruh.yigit, ogawa.yasufumi; +Cc: spp

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [spp] [PATCH v2] docs: add default route for classifier_table
  2018-08-27  0:50 ` [spp] [PATCH v2] docs: add default route for classifier_table x-fn-spp
@ 2018-08-27  7:02   ` Yasufumi Ogawa
  2018-09-20  8:28     ` Yasufumi Ogawa
  0 siblings, 1 reply; 5+ messages in thread
From: Yasufumi Ogawa @ 2018-08-27  7:02 UTC (permalink / raw)
  To: x-fn-spp, ferruh.yigit; +Cc: spp

> 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.Thanks for your contribution!

Acked-by: Yasufumi Ogawa <ogawa.yasufumi@lab.ntt.co.jp>
> 
> 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
> 


-- 
Yasufumi Ogawa
NTT Network Service Systems Labs

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [spp] [PATCH v2] docs: add default route for classifier_table
  2018-08-27  7:02   ` Yasufumi Ogawa
@ 2018-09-20  8:28     ` Yasufumi Ogawa
  0 siblings, 0 replies; 5+ messages in thread
From: Yasufumi Ogawa @ 2018-09-20  8:28 UTC (permalink / raw)
  To: spp, x-fn-spp; +Cc: ferruh.yigit

>> 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.Thanks for your contribution!
> 
> Acked-by: Yasufumi Ogawa <ogawa.yasufumi@lab.ntt.co.jp>
Applied, thanks!

>>
>> 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
>>
> 
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-09-20  8:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 ` [spp] [PATCH v2] docs: add default route for classifier_table x-fn-spp
2018-08-27  7:02   ` Yasufumi Ogawa
2018-09-20  8:28     ` Yasufumi Ogawa

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).