From: Bernard Iremonger Date: Fri, 7 Apr 2017 15:14:52 +0000 (+0100) Subject: doc: add QinQ flow to testpmd guide X-Git-Tag: spdx-start~3523 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=5a1affd8838e7307ce777bb4b386b3be84b6052b;p=dpdk.git doc: add QinQ flow to testpmd guide Add information on validating and creating QinQ flow rules to the flow rules management section of the Testpmd User Guide. Signed-off-by: Bernard Iremonger Acked-by: John McNamara --- diff --git a/doc/guides/testpmd_app_ug/testpmd_funcs.rst b/doc/guides/testpmd_app_ug/testpmd_funcs.rst index e1bcf27691..ddd1d9257e 100644 --- a/doc/guides/testpmd_app_ug/testpmd_funcs.rst +++ b/doc/guides/testpmd_app_ug/testpmd_funcs.rst @@ -2830,3 +2830,44 @@ Output can be limited to specific groups:: 5 0 1000 i- ETH IPV6 ICMP => QUEUE 7 63 0 i- ETH IPV6 UDP VXLAN => MARK QUEUE testpmd> + +Sample QinQ flow rules +~~~~~~~~~~~~~~~~~~~~~~ + +Validate and create a QinQ rule on port 0 to steer traffic to a VF queue in a VM. + +:: + + testpmd> flow validate 0 ingress pattern eth / vlan tpid is 0x8100 tci is 4 / + vlan tpid is 0x8100 tci is 5 / end actions vf id 1 / queue index 0 / end + Flow rule #0 validated + + testpmd> flow create 0 ingress pattern eth / vlan tpid is 0x8100 tci is 4 / + vlan tpid is 0x8100 tci is 5 / end actions vf id 1 / queue index 0 / end + Flow rule #0 created + + testpmd> flow list 0 + ID Group Prio Attr Rule + 0 0 0 i- ETH VLAN VLAN=>VF QUEUE + +Validate and create a QinQ rule on port 0 to steer traffic to a queue on the host. + +:: + + testpmd> flow validate 0 ingress pattern eth / vlan tpid is 0x8100 tci is 6 / + vlan tpid is 0x8100 tci is 7 / end actions pf / queue index 0 / end + Flow rule #1 validated + + testpmd> flow create 0 ingress pattern eth / vlan tpid is 0x8100 tci is 6 / + vlan tpid is 0x8100 tci is 7 / end actions pf / queue index 1 / end + Flow rule #1 created + + testpmd> flow list 0 + ID Group Prio Attr Rule + 0 0 0 i- ETH VLAN VLAN=>VF QUEUE + 1 0 0 i- ETH VLAN VLAN=>PF QUEUE + +After creating QinQ rule(s) the following command should be issued to enable QinQ:: + + testpmd> vlan set qinq on 0 +