[spp] [PATCH v2] docs: add default route for classifier_table
Yasufumi Ogawa
ogawa.yasufumi at lab.ntt.co.jp
Thu Sep 20 10:28:12 CEST 2018
>> From: Hideyuki Yamashita <yamashita.hideyuki at 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 at lab.ntt.co.jp>
Applied, thanks!
>>
>> 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 | 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
>>
>
>
More information about the spp
mailing list