From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 7ED01A04C0; Fri, 25 Sep 2020 07:41:23 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 566111E4C9; Fri, 25 Sep 2020 07:41:23 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 2F5721E4C8; Fri, 25 Sep 2020 07:41:21 +0200 (CEST) IronPort-SDR: yj21HiCE1+vxZIGHa7yMFB5TIFCI/lZEDOL9m9C8S3WG063zzsQsUyAg50Q1paag7hnNYEoqlw aRnODeFPSw2g== X-IronPort-AV: E=McAfee;i="6000,8403,9754"; a="158794986" X-IronPort-AV: E=Sophos;i="5.77,300,1596524400"; d="scan'208";a="158794986" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Sep 2020 22:41:20 -0700 IronPort-SDR: GtAiZ++seB1fjzX/+QG1revRBFFgDcCuHtaADkPBbJPT6ZBHN74bbjD9V/eFVPtFn6INLtuF35 3wgiWK7gXUXg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,300,1596524400"; d="scan'208";a="323243053" Received: from npg-dpdk-virtio-xiachenbo-nw.sh.intel.com ([10.67.119.123]) by orsmga002.jf.intel.com with ESMTP; 24 Sep 2020 22:41:11 -0700 From: Chenbo Xia To: dev@dpdk.org Cc: shepard.siegel@atomicrules.com, ed.czeck@atomicrules.com, john.miller@atomicrules.com, ajit.khaparde@broadcom.com, somnath.kotur@broadcom.com, qiming.yang@intel.com, qi.z.zhang@intel.com, rmody@marvell.com, shshaikh@marvell.com, sbhosle@broadcom.com, kishore.padmanabha@broadcom.com, michael.baucom@broadcom.com, venkatkumar.duvvuru@broadcom.com, xiaoyun.li@intel.com, ferruh.yigit@intel.com, jingjing.wu@intel.com, irusskikh@marvell.com, wenzhuo.lu@intel.com, beilei.xing@intel.com, bernard.iremonger@intel.com, nikhil.rao@intel.com, konstantin.ananyev@intel.com, jerin.jacob@caviumnetworks.com, marko.kovacevic@intel.com, orika@nvidia.com, bruce.richardson@intel.com, radu.nicolau@intel.com, akhil.goyal@nxp.com, tomasz.kantecki@intel.com, skori@marvell.com, pbhagavatula@marvell.com, john.mcnamara@intel.com, stable@dpdk.org Date: Fri, 25 Sep 2020 13:37:02 +0800 Message-Id: <20200925053702.80367-3-chenbo.xia@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200925053702.80367-1-chenbo.xia@intel.com> References: <20200804174147.64473-1-chenbo.xia@intel.com> <20200925053702.80367-1-chenbo.xia@intel.com> Subject: [dpdk-dev] [PATCH v2 3/3] doc: fix variable size of ethdev port id 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" The ethdev port id should be 16 bits now. This patch changes the variable size of port id in docs from 8 bits to 16 bits. Fixes: fdec9301f52d ("doc: add flow classify guides") Fixes: 4a3ef59a10c8 ("examples/flow_filtering: add simple demo of flow API") Cc: stable@dpdk.org Signed-off-by: Chenbo Xia --- doc/guides/sample_app_ug/flow_classify.rst | 2 +- doc/guides/sample_app_ug/flow_filtering.rst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/guides/sample_app_ug/flow_classify.rst b/doc/guides/sample_app_ug/flow_classify.rst index dc40b4d6f..31175cff0 100644 --- a/doc/guides/sample_app_ug/flow_classify.rst +++ b/doc/guides/sample_app_ug/flow_classify.rst @@ -271,7 +271,7 @@ Forwarding application is shown below: .. code-block:: c static inline int - port_init(uint8_t port, struct rte_mempool *mbuf_pool) + port_init(uint16_t port, struct rte_mempool *mbuf_pool) { struct rte_eth_conf port_conf = port_conf_default; const uint16_t rx_rings = 1, tx_rings = 1; diff --git a/doc/guides/sample_app_ug/flow_filtering.rst b/doc/guides/sample_app_ug/flow_filtering.rst index 5e5a6cd8a..d3653e57b 100644 --- a/doc/guides/sample_app_ug/flow_filtering.rst +++ b/doc/guides/sample_app_ug/flow_filtering.rst @@ -384,7 +384,7 @@ This function is located in the ``flow_blocks.c`` file. .. code-block:: c static struct rte_flow * - generate_ipv4_flow(uint8_t port_id, uint16_t rx_q, + generate_ipv4_flow(uint16_t port_id, uint16_t rx_q, uint32_t src_ip, uint32_t src_mask, uint32_t dest_ip, uint32_t dest_mask, struct rte_flow_error *error) -- 2.17.1