From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 884989E3 for ; Tue, 18 Apr 2017 16:20:53 +0200 (CEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga104.jf.intel.com with ESMTP; 18 Apr 2017 07:20:51 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.37,219,1488873600"; d="scan'208";a="1157534777" Received: from sivswdev01.ir.intel.com (HELO localhost.localdomain) ([10.237.217.45]) by fmsmga002.fm.intel.com with ESMTP; 18 Apr 2017 07:20:50 -0700 From: Bernard Iremonger To: dev@dpdk.org Cc: john.mcnamara@intel.com, wenzhuo.lu@intel.com, beilei.xing@intel.com, yulong.pei@intel.com, Bernard Iremonger Date: Tue, 18 Apr 2017 15:20:46 +0100 Message-Id: <1492525246-2776-1-git-send-email-bernard.iremonger@intel.com> X-Mailer: git-send-email 1.7.0.7 Subject: [dpdk-dev] [PATCH] doc: revise sample testpmd flow commands X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Apr 2017 14:20:54 -0000 Stop port before enabling QinQ. Add commands to set inner and outer TPID's and start port. Remove TPID's from flow validate and and flow create commands. Signed-off-by: Bernard Iremonger --- doc/guides/testpmd_app_ug/testpmd_funcs.rst | 33 ++++++++++++++++++----------- 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/doc/guides/testpmd_app_ug/testpmd_funcs.rst b/doc/guides/testpmd_app_ug/testpmd_funcs.rst index ddd1d9257..bc949b755 100644 --- a/doc/guides/testpmd_app_ug/testpmd_funcs.rst +++ b/doc/guides/testpmd_app_ug/testpmd_funcs.rst @@ -2834,16 +2834,29 @@ Output can be limited to specific groups:: Sample QinQ flow rules ~~~~~~~~~~~~~~~~~~~~~~ +Before creating QinQ rule(s) the following commands should be issued to enable QinQ:: + + testpmd> port stop 0 + testpmd> vlan set qinq on 0 + +The above command sets the inner and outer TPID's to 0x8100. + +To change the TPID's the following commands should be used:: + + testpmd> vlan set outer tpid 0xa100 0 + testpmd> vlan set inner tpid 0x9100 0 + testpmd> port start 0 + 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 + testpmd> flow validate 0 ingress pattern eth / vlan tci is 123 / + vlan tci is 456 / 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 + testpmd> flow create 0 ingress pattern eth / vlan tci is 4 / + vlan tci is 456 / end actions vf id 123 / queue index 0 / end Flow rule #0 created testpmd> flow list 0 @@ -2854,12 +2867,12 @@ Validate and create a QinQ rule on port 0 to steer traffic to a queue on the hos :: - 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 + testpmd> flow validate 0 ingress pattern eth / vlan tci is 321 / + vlan tci is 654 / 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 + testpmd> flow create 0 ingress pattern eth / vlan tci is 321 / + vlan tci is 654 / end actions pf / queue index 1 / end Flow rule #1 created testpmd> flow list 0 @@ -2867,7 +2880,3 @@ Validate and create a QinQ rule on port 0 to steer traffic to a queue on the hos 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 - -- 2.11.0