From patchwork Fri Apr 7 15:14:52 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Iremonger, Bernard" X-Patchwork-Id: 23329 X-Patchwork-Delegate: ferruh.yigit@amd.com Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id 20457532C; Fri, 7 Apr 2017 17:15:07 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id CD5BE37B4 for ; Fri, 7 Apr 2017 17:15:05 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=intel.com; i=@intel.com; q=dns/txt; s=intel; t=1491578105; x=1523114105; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=wSAwEZWsGLbX2//uLAhp54kdBf4ZltA8lKqqISRUORY=; b=J0joibZg+sj8r1BvTwLgoVl4+wcoz9tJUsjgGRUYHWV8WgJ+g9gIG95P hrxk/Mc6maSi8eDVa/rTl0LDuW+CvA==; Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 Apr 2017 08:15:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.37,165,1488873600"; d="scan'208";a="86018004" Received: from sivswdev01.ir.intel.com (HELO localhost.localdomain) ([10.237.217.45]) by fmsmga005.fm.intel.com with ESMTP; 07 Apr 2017 08:15:01 -0700 From: Bernard Iremonger To: dev@dpdk.org Cc: beilei.xing@intel.com, wenzhuo.lu@intel.com, john.mcnamara@intel.com, Bernard Iremonger Date: Fri, 7 Apr 2017 16:14:52 +0100 Message-Id: <1491578092-5823-2-git-send-email-bernard.iremonger@intel.com> X-Mailer: git-send-email 1.7.0.7 In-Reply-To: <1491578092-5823-1-git-send-email-bernard.iremonger@intel.com> References: <1491578092-5823-1-git-send-email-bernard.iremonger@intel.com> Subject: [dpdk-dev] [PATCH 2/2] doc: add QinQ flow information to testpmd 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 --- doc/guides/testpmd_app_ug/testpmd_funcs.rst | 41 +++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/doc/guides/testpmd_app_ug/testpmd_funcs.rst b/doc/guides/testpmd_app_ug/testpmd_funcs.rst index 497e2dd70..e9124f324 100644 --- a/doc/guides/testpmd_app_ug/testpmd_funcs.rst +++ b/doc/guides/testpmd_app_ug/testpmd_funcs.rst @@ -2794,3 +2794,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 +