get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/101026/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 101026,
    "url": "http://patches.dpdk.org/api/patches/101026/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20211011123733.961222-6-xuemingl@nvidia.com/",
    "project": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/projects/1/?format=api",
        "name": "DPDK",
        "link_name": "dpdk",
        "list_id": "dev.dpdk.org",
        "list_email": "dev@dpdk.org",
        "web_url": "http://core.dpdk.org",
        "scm_url": "git://dpdk.org/dpdk",
        "webscm_url": "http://git.dpdk.org/dpdk",
        "list_archive_url": "https://inbox.dpdk.org/dev",
        "list_archive_url_format": "https://inbox.dpdk.org/dev/{}",
        "commit_url_format": ""
    },
    "msgid": "<20211011123733.961222-6-xuemingl@nvidia.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20211011123733.961222-6-xuemingl@nvidia.com",
    "date": "2021-10-11T12:37:32",
    "name": "[v5,5/5] app/testpmd: add forwarding engine for shared Rx queue",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "846bea6d4e34bd12016037f05076ccd084663346",
    "submitter": {
        "id": 1904,
        "url": "http://patches.dpdk.org/api/people/1904/?format=api",
        "name": "Xueming Li",
        "email": "xuemingl@nvidia.com"
    },
    "delegate": {
        "id": 319,
        "url": "http://patches.dpdk.org/api/users/319/?format=api",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@amd.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20211011123733.961222-6-xuemingl@nvidia.com/mbox/",
    "series": [
        {
            "id": 19518,
            "url": "http://patches.dpdk.org/api/series/19518/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=19518",
            "date": "2021-10-11T12:37:27",
            "name": "ethdev: introduce shared Rx queue",
            "version": 5,
            "mbox": "http://patches.dpdk.org/series/19518/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/101026/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/101026/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Received": [
            "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 3C769A034F;\n\tMon, 11 Oct 2021 14:39:15 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 2B48D410DA;\n\tMon, 11 Oct 2021 14:39:15 +0200 (CEST)",
            "from NAM04-BN8-obe.outbound.protection.outlook.com\n (mail-bn8nam08on2066.outbound.protection.outlook.com [40.107.100.66])\n by mails.dpdk.org (Postfix) with ESMTP id C909C40E01\n for <dev@dpdk.org>; Mon, 11 Oct 2021 14:39:13 +0200 (CEST)",
            "from BN0PR04CA0081.namprd04.prod.outlook.com (2603:10b6:408:ea::26)\n by BYAPR12MB3224.namprd12.prod.outlook.com (2603:10b6:a03:137::19)\n with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4587.25; Mon, 11 Oct\n 2021 12:39:12 +0000",
            "from BN8NAM11FT028.eop-nam11.prod.protection.outlook.com\n (2603:10b6:408:ea:cafe::fb) by BN0PR04CA0081.outlook.office365.com\n (2603:10b6:408:ea::26) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4587.25 via Frontend\n Transport; Mon, 11 Oct 2021 12:39:11 +0000",
            "from mail.nvidia.com (216.228.112.34) by\n BN8NAM11FT028.mail.protection.outlook.com (10.13.176.225) with Microsoft SMTP\n Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id\n 15.20.4587.18 via Frontend Transport; Mon, 11 Oct 2021 12:39:10 +0000",
            "from nvidia.com (172.20.187.6) by HQMAIL107.nvidia.com\n (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Mon, 11 Oct\n 2021 12:39:07 +0000"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;\n b=B4z0jeqhnBBTzijTBz25+xKO4YcCyWpyilRdGHj4kFLCJVYn/YjbJFxLymRJM+i2Pb7PtTyEDF4XKhncPZ53/E//DeWaOZbD3zj2AYKUKV8hjW+KzT+PaLfIV/Klje3uP/jYufUsTb12ES3tRXQXG4gT5XHa65x2TA9TkM4GYsGrWO0Bo4F9Qx6UEixImV+1mr8JBz9blz/4HDsdRHj7ahXjOhCvt3EYdjSyLY5AloOqwwu6jolKEtUrEY4YR+aQpOK3z+9uVaYe6p2vjwn/7Lz2GBgWwVDnG8cDhssI/YlrIsc+Z9Lv/Moj0ItCDrRAev3RI0Fe4zwojvbNezCurA==",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;\n s=arcselector9901;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;\n bh=NN3Qa/MO4cYUzNEZsCl8SdG370Qcf5ev737YSADUQ1g=;\n b=ft7crCkBMdUnegWw51LddAPRic0oFmA7cJnEtm+e8EX1JGgIxRSGp6kAw62UOiOTZrES5lRZFZGLuc0uE8YSBe7jLW0loQ4mnMQM0q2qEUlqc2s4T31e4OgvODHs7nYVsmLi4NIk7+PpSKz29HkMcG15Pwt0/bXZKMDKV0x2ckuk+tEJxKNlfQM7a8L0OByJqIN0C+SC4tX+5HmRB0jLZw1ETd62zxlbZKYf3YsUH5ecewW/cYtqF93gDQ4uAM1N9oGptaIJhpaNtqBAHo47fc2Ha+64DRRDfMPtHnuTCi52uSVC8W3w49C6us1p6LxosKX1P/VxSIDsN5rdxOEARQ==",
        "ARC-Authentication-Results": "i=1; mx.microsoft.com 1; spf=pass (sender ip is\n 216.228.112.34) smtp.rcpttodomain=monjalon.net smtp.mailfrom=nvidia.com;\n dmarc=pass (p=quarantine sp=none pct=100) action=none header.from=nvidia.com;\n dkim=none (message not signed); arc=none",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com;\n s=selector2;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;\n bh=NN3Qa/MO4cYUzNEZsCl8SdG370Qcf5ev737YSADUQ1g=;\n b=arjJX6voqWIaZO4zDoK1V2WLr0+bULTbAqI5xViE78BLI7hqgLnz3Uq+qltgmoAw2Yo4gzzKfi6G6C1QUo0oK2twZ/nrRoC1hiTcuH5Sj/YiDSxuyHKAiyP4XO1b6YFUu6sb9hFMvi+us8l0Tg4fKLI8NRUgs6U7CzzM7QLch1hUOkqcfxFgmBoGRjMsqB/P3yC4BnJxmmQ3gn9z17mSWbIrDvTB3df84aCaOi85K7q4PL9JTsr5WWeESg67XXbkr5wT/FCCjf4LqPxlccg8irbXsWBZqFgwt2kC7SrzBac6fnpvezfJx1IgAbkk1OwVz/K1urF+own+88WwvxGuYQ==",
        "X-MS-Exchange-Authentication-Results": "spf=pass (sender IP is 216.228.112.34)\n smtp.mailfrom=nvidia.com; monjalon.net; dkim=none (message not signed)\n header.d=none;monjalon.net; dmarc=pass action=none header.from=nvidia.com;",
        "Received-SPF": "Pass (protection.outlook.com: domain of nvidia.com designates\n 216.228.112.34 as permitted sender) receiver=protection.outlook.com;\n client-ip=216.228.112.34; helo=mail.nvidia.com;",
        "From": "Xueming Li <xuemingl@nvidia.com>",
        "To": "<dev@dpdk.org>",
        "CC": "<xuemingl@nvidia.com>, Jerin Jacob <jerinjacobk@gmail.com>, Ferruh Yigit\n <ferruh.yigit@intel.com>, Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>,\n Viacheslav Ovsiienko <viacheslavo@nvidia.com>, Thomas Monjalon\n <thomas@monjalon.net>, Lior Margalit <lmargalit@nvidia.com>, \"Ananyev\n Konstantin\" <konstantin.ananyev@intel.com>, Xiaoyun Li <xiaoyun.li@intel.com>",
        "Date": "Mon, 11 Oct 2021 20:37:32 +0800",
        "Message-ID": "<20211011123733.961222-6-xuemingl@nvidia.com>",
        "X-Mailer": "git-send-email 2.33.0",
        "In-Reply-To": "<20211011123733.961222-1-xuemingl@nvidia.com>",
        "References": "<20210727034204.20649-1-xuemingl@nvidia.com>\n <20211011123733.961222-1-xuemingl@nvidia.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Originating-IP": "[172.20.187.6]",
        "X-ClientProxiedBy": "HQMAIL105.nvidia.com (172.20.187.12) To\n HQMAIL107.nvidia.com (172.20.187.13)",
        "X-EOPAttributedMessage": "0",
        "X-MS-PublicTrafficType": "Email",
        "X-MS-Office365-Filtering-Correlation-Id": "01a9117d-7048-4f91-036d-08d98cb42040",
        "X-MS-TrafficTypeDiagnostic": "BYAPR12MB3224:",
        "X-LD-Processed": "43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr",
        "X-Microsoft-Antispam-PRVS": "\n <BYAPR12MB3224B4D8D9E683EE32A33732A1B59@BYAPR12MB3224.namprd12.prod.outlook.com>",
        "X-MS-Oob-TLC-OOBClassifiers": "OLM:2803;",
        "X-MS-Exchange-SenderADCheck": "1",
        "X-MS-Exchange-AntiSpam-Relay": "0",
        "X-Microsoft-Antispam": "BCL:0;",
        "X-Microsoft-Antispam-Message-Info": "\n gkVnSj38BxVV0Ze5nG6EYw4ZSLbrYWFWgltcXtg/07WuhDSHd9HffuoLlSCH3mQsXgZ1Plc3xLIw7u+nj5yVUa4gTKebCE3ytoHAf2vJ6vxSTNXG99ODTBZBVmJU6U+iytlGTONsgqbOtVrXJaEsUISiMKxhzi/H+ISt6rYpOxJy3JHfOcWpv9KW7ohn0rjExz+QBz3l+tTe1kEKkvmq1b71q1mBEEtrthBaQPDp+0V4yYeb/ASE3J2fiM+jbiDqoMNwl3Dgt+gWN4IvzApupGMcPARpP9V7Tw4uqpcvvIvPNNxNe05xCyovKc7fTpZ3zY+1cY8w7nZL33Z/wMM4VT/qWDaKIJC5LC0ucQ0Bbhi69Rtc4fnR/FTP50WD8ytA6W/zGbaNgySwxYCfWhTgpgpunsm/GjjMzI6Otazz1LEy4n2Cj9L3Y82HJR8+Zo8aILjDMd/2dpkVuQh4dvBSlo8zj5WpYfNqQ9PWO1Aoi/bZvOPiej+34b/uG5ieJ0iOGnskXL/LMdAQcvE8a9MZ2IBmmzj7Lms4OXDEpVRridM4sYss3owkCTvfES5pWhVbds0WQgHxAKkWcS4eFq7o6czq8yCJBkWoWVrSiCCSOf5EjxKqu5pSS4NovgkLsuuI05pdwms5hJFtfKeXTNvUllj3peYCWUfMqovRMoMVG5jvw/LvsXUj8vVCHBNgPqZxuq6x5R/Unr+kLNZa2koSNw==",
        "X-Forefront-Antispam-Report": "CIP:216.228.112.34; CTRY:US; LANG:en; SCL:1;\n SRV:;\n IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:schybrid03.nvidia.com; CAT:NONE;\n SFS:(4636009)(46966006)(36840700001)(83380400001)(2616005)(316002)(426003)(8676002)(6666004)(186003)(1076003)(16526019)(70206006)(70586007)(4326008)(36860700001)(86362001)(336012)(8936002)(82310400003)(26005)(356005)(36756003)(7636003)(6286002)(6916009)(5660300002)(54906003)(47076005)(508600001)(55016002)(7696005)(2906002);\n DIR:OUT; SFP:1101;",
        "X-OriginatorOrg": "Nvidia.com",
        "X-MS-Exchange-CrossTenant-OriginalArrivalTime": "11 Oct 2021 12:39:10.8890 (UTC)",
        "X-MS-Exchange-CrossTenant-Network-Message-Id": "\n 01a9117d-7048-4f91-036d-08d98cb42040",
        "X-MS-Exchange-CrossTenant-Id": "43083d15-7273-40c1-b7db-39efd9ccc17a",
        "X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp": "\n TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.112.34];\n Helo=[mail.nvidia.com]",
        "X-MS-Exchange-CrossTenant-AuthSource": "\n BN8NAM11FT028.eop-nam11.prod.protection.outlook.com",
        "X-MS-Exchange-CrossTenant-AuthAs": "Anonymous",
        "X-MS-Exchange-CrossTenant-FromEntityHeader": "HybridOnPrem",
        "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "BYAPR12MB3224",
        "Subject": "[dpdk-dev] [PATCH v5 5/5] app/testpmd: add forwarding engine for\n shared Rx queue",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "To support shared Rx queue, this patch introduces dedicate forwarding\nengine. The engine groups received packets by mbuf->port into sub-group,\nupdates stream statistics and simply frees packets.\n\nSigned-off-by: Xueming Li <xuemingl@nvidia.com>\n---\n app/test-pmd/meson.build                    |   1 +\n app/test-pmd/shared_rxq_fwd.c               | 148 ++++++++++++++++++++\n app/test-pmd/testpmd.c                      |   1 +\n app/test-pmd/testpmd.h                      |   1 +\n doc/guides/testpmd_app_ug/run_app.rst       |   1 +\n doc/guides/testpmd_app_ug/testpmd_funcs.rst |   5 +-\n 6 files changed, 156 insertions(+), 1 deletion(-)\n create mode 100644 app/test-pmd/shared_rxq_fwd.c",
    "diff": "diff --git a/app/test-pmd/meson.build b/app/test-pmd/meson.build\nindex 98f3289bdfa..07042e45b12 100644\n--- a/app/test-pmd/meson.build\n+++ b/app/test-pmd/meson.build\n@@ -21,6 +21,7 @@ sources = files(\n         'noisy_vnf.c',\n         'parameters.c',\n         'rxonly.c',\n+        'shared_rxq_fwd.c',\n         'testpmd.c',\n         'txonly.c',\n         'util.c',\ndiff --git a/app/test-pmd/shared_rxq_fwd.c b/app/test-pmd/shared_rxq_fwd.c\nnew file mode 100644\nindex 00000000000..4e262b99bc7\n--- /dev/null\n+++ b/app/test-pmd/shared_rxq_fwd.c\n@@ -0,0 +1,148 @@\n+/* SPDX-License-Identifier: BSD-3-Clause\n+ * Copyright (c) 2021 NVIDIA Corporation & Affiliates\n+ */\n+\n+#include <stdarg.h>\n+#include <string.h>\n+#include <stdio.h>\n+#include <errno.h>\n+#include <stdint.h>\n+#include <unistd.h>\n+#include <inttypes.h>\n+\n+#include <sys/queue.h>\n+#include <sys/stat.h>\n+\n+#include <rte_common.h>\n+#include <rte_byteorder.h>\n+#include <rte_log.h>\n+#include <rte_debug.h>\n+#include <rte_cycles.h>\n+#include <rte_memory.h>\n+#include <rte_memcpy.h>\n+#include <rte_launch.h>\n+#include <rte_eal.h>\n+#include <rte_per_lcore.h>\n+#include <rte_lcore.h>\n+#include <rte_atomic.h>\n+#include <rte_branch_prediction.h>\n+#include <rte_mempool.h>\n+#include <rte_mbuf.h>\n+#include <rte_pci.h>\n+#include <rte_ether.h>\n+#include <rte_ethdev.h>\n+#include <rte_string_fns.h>\n+#include <rte_ip.h>\n+#include <rte_udp.h>\n+#include <rte_net.h>\n+#include <rte_flow.h>\n+\n+#include \"testpmd.h\"\n+\n+/*\n+ * Rx only sub-burst forwarding.\n+ */\n+static void\n+forward_rx_only(uint16_t nb_rx, struct rte_mbuf **pkts_burst)\n+{\n+\trte_pktmbuf_free_bulk(pkts_burst, nb_rx);\n+}\n+\n+/**\n+ * Get packet source stream by source port and queue.\n+ * All streams of same shared Rx queue locates on same core.\n+ */\n+static struct fwd_stream *\n+forward_stream_get(struct fwd_stream *fs, uint16_t port)\n+{\n+\tstreamid_t sm_id;\n+\tstruct fwd_lcore *fc;\n+\tstruct fwd_stream **fsm;\n+\tstreamid_t nb_fs;\n+\n+\tfc = fs->lcore;\n+\tfsm = &fwd_streams[fc->stream_idx];\n+\tnb_fs = fc->stream_nb;\n+\tfor (sm_id = 0; sm_id < nb_fs; sm_id++) {\n+\t\tif (fsm[sm_id]->rx_port == port &&\n+\t\t    fsm[sm_id]->rx_queue == fs->rx_queue)\n+\t\t\treturn fsm[sm_id];\n+\t}\n+\treturn NULL;\n+}\n+\n+/**\n+ * Forward packet by source port and queue.\n+ */\n+static void\n+forward_sub_burst(struct fwd_stream *src_fs, uint16_t port, uint16_t nb_rx,\n+\t\t  struct rte_mbuf **pkts)\n+{\n+\tstruct fwd_stream *fs = forward_stream_get(src_fs, port);\n+\n+\tif (fs != NULL) {\n+\t\tfs->rx_packets += nb_rx;\n+\t\tforward_rx_only(nb_rx, pkts);\n+\t} else {\n+\t\t/* Source stream not found, drop all packets. */\n+\t\tsrc_fs->fwd_dropped += nb_rx;\n+\t\twhile (nb_rx > 0)\n+\t\t\trte_pktmbuf_free(pkts[--nb_rx]);\n+\t}\n+}\n+\n+/**\n+ * Forward packets from shared Rx queue.\n+ *\n+ * Source port of packets are identified by mbuf->port.\n+ */\n+static void\n+forward_shared_rxq(struct fwd_stream *fs, uint16_t nb_rx,\n+\t\t   struct rte_mbuf **pkts_burst)\n+{\n+\tuint16_t i, nb_sub_burst, port, last_port;\n+\n+\tnb_sub_burst = 0;\n+\tlast_port = pkts_burst[0]->port;\n+\t/* Locate sub-burst according to mbuf->port. */\n+\tfor (i = 0; i < nb_rx - 1; ++i) {\n+\t\trte_prefetch0(pkts_burst[i + 1]);\n+\t\tport = pkts_burst[i]->port;\n+\t\tif (i > 0 && last_port != port) {\n+\t\t\t/* Forward packets with same source port. */\n+\t\t\tforward_sub_burst(fs, last_port, nb_sub_burst,\n+\t\t\t\t\t  &pkts_burst[i - nb_sub_burst]);\n+\t\t\tnb_sub_burst = 0;\n+\t\t\tlast_port = port;\n+\t\t}\n+\t\tnb_sub_burst++;\n+\t}\n+\t/* Last sub-burst. */\n+\tnb_sub_burst++;\n+\tforward_sub_burst(fs, last_port, nb_sub_burst,\n+\t\t\t  &pkts_burst[nb_rx - nb_sub_burst]);\n+}\n+\n+static void\n+shared_rxq_fwd(struct fwd_stream *fs)\n+{\n+\tstruct rte_mbuf *pkts_burst[nb_pkt_per_burst];\n+\tuint16_t nb_rx;\n+\tuint64_t start_tsc = 0;\n+\n+\tget_start_cycles(&start_tsc);\n+\tnb_rx = rte_eth_rx_burst(fs->rx_port, fs->rx_queue, pkts_burst,\n+\t\t\t\t nb_pkt_per_burst);\n+\tinc_rx_burst_stats(fs, nb_rx);\n+\tif (unlikely(nb_rx == 0))\n+\t\treturn;\n+\tforward_shared_rxq(fs, nb_rx, pkts_burst);\n+\tget_end_cycles(fs, start_tsc);\n+}\n+\n+struct fwd_engine shared_rxq_engine = {\n+\t.fwd_mode_name  = \"shared_rxq\",\n+\t.port_fwd_begin = NULL,\n+\t.port_fwd_end   = NULL,\n+\t.packet_fwd     = shared_rxq_fwd,\n+};\ndiff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c\nindex cab4b36b046..681ea591871 100644\n--- a/app/test-pmd/testpmd.c\n+++ b/app/test-pmd/testpmd.c\n@@ -188,6 +188,7 @@ struct fwd_engine * fwd_engines[] = {\n #ifdef RTE_LIBRTE_IEEE1588\n \t&ieee1588_fwd_engine,\n #endif\n+\t&shared_rxq_engine,\n \tNULL,\n };\n \ndiff --git a/app/test-pmd/testpmd.h b/app/test-pmd/testpmd.h\nindex f121a2da90c..f1fd607e365 100644\n--- a/app/test-pmd/testpmd.h\n+++ b/app/test-pmd/testpmd.h\n@@ -299,6 +299,7 @@ extern struct fwd_engine five_tuple_swap_fwd_engine;\n #ifdef RTE_LIBRTE_IEEE1588\n extern struct fwd_engine ieee1588_fwd_engine;\n #endif\n+extern struct fwd_engine shared_rxq_engine;\n \n extern struct fwd_engine * fwd_engines[]; /**< NULL terminated array. */\n extern cmdline_parse_inst_t cmd_set_raw;\ndiff --git a/doc/guides/testpmd_app_ug/run_app.rst b/doc/guides/testpmd_app_ug/run_app.rst\nindex 6cfe88951f7..277ef79ed9d 100644\n--- a/doc/guides/testpmd_app_ug/run_app.rst\n+++ b/doc/guides/testpmd_app_ug/run_app.rst\n@@ -252,6 +252,7 @@ The command line options are:\n        tm\n        noisy\n        5tswap\n+       shared-rxq\n \n *   ``--rss-ip``\n \ndiff --git a/doc/guides/testpmd_app_ug/testpmd_funcs.rst b/doc/guides/testpmd_app_ug/testpmd_funcs.rst\nindex bbef7063741..a30e2f4dfae 100644\n--- a/doc/guides/testpmd_app_ug/testpmd_funcs.rst\n+++ b/doc/guides/testpmd_app_ug/testpmd_funcs.rst\n@@ -314,7 +314,7 @@ set fwd\n Set the packet forwarding mode::\n \n    testpmd> set fwd (io|mac|macswap|flowgen| \\\n-                     rxonly|txonly|csum|icmpecho|noisy|5tswap) (\"\"|retry)\n+                     rxonly|txonly|csum|icmpecho|noisy|5tswap|shared-rxq) (\"\"|retry)\n \n ``retry`` can be specified for forwarding engines except ``rx_only``.\n \n@@ -357,6 +357,9 @@ The available information categories are:\n \n   L4 swaps the source port and destination port of transport layer (TCP and UDP).\n \n+* ``shared-rxq``: Receive only for shared Rx queue.\n+  Resolve packet source port from mbuf and update stream statistics accrodingly.\n+\n Example::\n \n    testpmd> set fwd rxonly\n",
    "prefixes": [
        "v5",
        "5/5"
    ]
}