From patchwork Thu Sep 28 09:10:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhao1, Wei" X-Patchwork-Id: 29236 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 [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E867A1B159; Thu, 28 Sep 2017 11:21:18 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id D80952BF2 for ; Thu, 28 Sep 2017 11:21:11 +0200 (CEST) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Sep 2017 02:21:11 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.42,449,1500966000"; d="scan'208";a="317173702" Received: from dpdk4.bj.intel.com ([172.16.182.85]) by fmsmga004.fm.intel.com with ESMTP; 28 Sep 2017 02:21:10 -0700 From: Wei Zhao To: dev@dpdk.org Cc: Wei Zhao Date: Thu, 28 Sep 2017 17:10:09 +0800 Message-Id: <1506589809-59533-4-git-send-email-wei.zhao1@intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1506589809-59533-1-git-send-email-wei.zhao1@intel.com> References: <1505445188-70251-1-git-send-email-wei.zhao1@intel.com> <1506589809-59533-1-git-send-email-wei.zhao1@intel.com> Subject: [dpdk-dev] [PATCH v4 3/3] doc/testpmd_app_ug: add doc info for queue region 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" Queue region only support PF by now, so this document is only for configuration of queue region on PF port. Signed-off-by: Wei Zhao --- doc/guides/testpmd_app_ug/testpmd_funcs.rst | 40 +++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/doc/guides/testpmd_app_ug/testpmd_funcs.rst b/doc/guides/testpmd_app_ug/testpmd_funcs.rst index 2ed62f5..f31ec5f 100644 --- a/doc/guides/testpmd_app_ug/testpmd_funcs.rst +++ b/doc/guides/testpmd_app_ug/testpmd_funcs.rst @@ -842,6 +842,46 @@ Where: Check the NIC Datasheet for hardware limits. +RSS queue region +~~~~~~~~~~~~~~~~ + +Set RSS queue region span on a port:: + + testpmd> queue-region set port (port_id) region_id (value) queue_start_index (value) queue_num (value) + +Set flowtype mapping on a RSS queue region on a port:: + + testpmd> queue-region set port (port_id) region_id (value) flowtype (value) + +where: + +* For the flowtype(pctype) of packet,the specific index for each type has + been defined in file i40e_type.h as enum i40e_filter_pctype. + +Set user priority mapping on a RSS queue region on a port:: + + testpmd> queue-region set port (port_id) UP (value) region_id (value) + +Flush all queue region related configuration on a port:: + + testpmd> queue-region flush (on|off) port (port_id) + +where: +* "on"is just an enable function which server for other configuration, + it is for all configuration about queue region from up layer, + at first will only keep in DPDK softwarestored in driver, + only after "flush on", it commit all configuration to HW. + "off" is just clean all configuration about queue region just now, + and restore all to DPDK i40e driver default config when start up. + +Get all queue region related configuration info on a port:: + + testpmd> queue-region get port (port_id) + +.. note:: +Queue region only support on PF by now, so these command is +only for configuration of queue region on PF port. + csum parse-tunnel ~~~~~~~~~~~~~~~~~