get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 117075,
    "url": "http://patches.dpdk.org/api/patches/117075/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20220928191223.1630200-2-abdullah.sevincer@intel.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": "<20220928191223.1630200-2-abdullah.sevincer@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20220928191223.1630200-2-abdullah.sevincer@intel.com",
    "date": "2022-09-28T19:11:47",
    "name": "[v5,2/3] event/dlb2: add fence bypass option for producer ports",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "84909ba31e9b341801139e9e7c93dd84ca647c2a",
    "submitter": {
        "id": 2843,
        "url": "http://patches.dpdk.org/api/people/2843/?format=api",
        "name": "Sevincer, Abdullah",
        "email": "abdullah.sevincer@intel.com"
    },
    "delegate": null,
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20220928191223.1630200-2-abdullah.sevincer@intel.com/mbox/",
    "series": [
        {
            "id": 24888,
            "url": "http://patches.dpdk.org/api/series/24888/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=24888",
            "date": "2022-09-28T19:11:47",
            "name": null,
            "version": 5,
            "mbox": "http://patches.dpdk.org/series/24888/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/117075/comments/",
    "check": "pending",
    "checks": "http://patches.dpdk.org/api/patches/117075/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 582C0A00C4;\n\tWed, 28 Sep 2022 21:12:46 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id BF8D8427F1;\n\tWed, 28 Sep 2022 21:12:41 +0200 (CEST)",
            "from mga14.intel.com (mga14.intel.com [192.55.52.115])\n by mails.dpdk.org (Postfix) with ESMTP id 787F8410FA\n for <dev@dpdk.org>; Wed, 28 Sep 2022 21:12:39 +0200 (CEST)",
            "from orsmga002.jf.intel.com ([10.7.209.21])\n by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 28 Sep 2022 12:12:38 -0700",
            "from txanpdk02.an.intel.com ([10.123.117.76])\n by orsmga002.jf.intel.com with ESMTP; 28 Sep 2022 12:12:38 -0700"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1664392359; x=1695928359;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=VkabtjjukNabY6kku20RObaxlU9mXIoYFE3pxHo0LkA=;\n b=S5glsQbdsBHh0WEbRjt9IKM+3Gc+VkJwILmzq8bCbff8TodXn+ez5kKK\n +A0HsqSR8l3RvZy8ASgwDdJZ0AXddl/2/BlxPIckwgHPamVSdn4Gq4/z1\n jU0DaRtxaYMNjRUxH578NHiSidoExD70SlEtgjoAoTOsEXQz9DdWFgMR/\n asrWPdfix27oG8Od2B0o6Hmx1vo0CPSy4LnHUISy0kCUKYGMxfiuMTzmJ\n L8uUGLZbx/7RAwevjMqJIGaY8GrJnJFXm5jWYYep1ZEQq9CV1KCs8ceaj\n tIh6BqKY3hz+hYzsIFlX0NDZjcw25WV/sSOY5n+cKJmxz9zpuTwItABK8 A==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6500,9779,10484\"; a=\"301667870\"",
            "E=Sophos;i=\"5.93,352,1654585200\"; d=\"scan'208\";a=\"301667870\"",
            "E=McAfee;i=\"6500,9779,10484\"; a=\"622040150\"",
            "E=Sophos;i=\"5.93,352,1654585200\"; d=\"scan'208\";a=\"622040150\""
        ],
        "X-ExtLoop1": "1",
        "From": "Abdullah Sevincer <abdullah.sevincer@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "jerinj@marvell.com,\n\tAbdullah Sevincer <abdullah.sevincer@intel.com>",
        "Subject": "[PATCH v5 2/3] event/dlb2: add fence bypass option for producer ports",
        "Date": "Wed, 28 Sep 2022 14:11:47 -0500",
        "Message-Id": "<20220928191223.1630200-2-abdullah.sevincer@intel.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20220927014204.1401746-1-abdullah.sevincer@intel.com>",
        "References": "<20220820005957.2986689-2-timothy.mcdaniel@intel.com>\n <20220927014204.1401746-1-abdullah.sevincer@intel.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "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"
    },
    "content": "If producer thread is only acting as a bridge between NIC and DLB, then\nperformance can be greatly improved by bypassing the fence instruction.\nDLB enqueue API calls memory fence once per enqueue burst.  If prodcuer\nthread is just reading from NIC and sending to DLB without updating\nthe read buffers or buffer headers OR producer is not writing\nto data structures with dependencies on the enqueue write order, then\nfencing can be safely disabled.\n\nSigned-off-by: Abdullah Sevincer <abdullah.sevincer@intel.com>\n---\n drivers/event/dlb2/dlb2.c | 29 +++++++++++++++++++++--------\n 1 file changed, 21 insertions(+), 8 deletions(-)",
    "diff": "diff --git a/drivers/event/dlb2/dlb2.c b/drivers/event/dlb2/dlb2.c\nindex 6a9db4b642..4dd1d55ddc 100644\n--- a/drivers/event/dlb2/dlb2.c\n+++ b/drivers/event/dlb2/dlb2.c\n@@ -35,6 +35,16 @@\n #include \"dlb2_iface.h\"\n #include \"dlb2_inline_fns.h\"\n \n+/*\n+ * Bypass memory fencing instructions when port is of Producer type.\n+ * This should be enabled very carefully with understanding that producer\n+ * is not doing any writes which need fencing. The movdir64 instruction used to\n+ * enqueue events to DLB is a weakly-ordered instruction and movdir64 write\n+ * to DLB can go ahead of relevant application writes like updates to buffers\n+ * being sent with event\n+ */\n+#define DLB2_BYPASS_FENCE_ON_PP 0  /* 1 == Bypass fence, 0 == do not bypass */\n+\n /*\n  * Resources exposed to eventdev. Some values overridden at runtime using\n  * values returned by the DLB kernel driver.\n@@ -1985,21 +1995,15 @@ dlb2_eventdev_port_setup(struct rte_eventdev *dev,\n \tsw_credit_quanta = dlb2->sw_credit_quanta;\n \thw_credit_quanta = dlb2->hw_credit_quanta;\n \n+\tev_port->qm_port.is_producer = false;\n \tev_port->qm_port.is_directed = port_conf->event_port_cfg &\n \t\tRTE_EVENT_PORT_CFG_SINGLE_LINK;\n \n-\t/*\n-\t * Validate credit config before creating port\n-\t */\n-\n-\t/* Default for worker ports */\n-\tsw_credit_quanta = dlb2->sw_credit_quanta;\n-\thw_credit_quanta = dlb2->hw_credit_quanta;\n-\n \tif (port_conf->event_port_cfg & RTE_EVENT_PORT_CFG_HINT_PRODUCER) {\n \t\t/* Producer type ports. Mostly enqueue */\n \t\tsw_credit_quanta = DLB2_SW_CREDIT_P_QUANTA_DEFAULT;\n \t\thw_credit_quanta = DLB2_SW_CREDIT_P_BATCH_SZ;\n+\t\tev_port->qm_port.is_producer = true;\n \t}\n \tif (port_conf->event_port_cfg & RTE_EVENT_PORT_CFG_HINT_CONSUMER) {\n \t\t/* Consumer type ports. Mostly dequeue */\n@@ -2009,6 +2013,10 @@ dlb2_eventdev_port_setup(struct rte_eventdev *dev,\n \tev_port->credit_update_quanta = sw_credit_quanta;\n \tev_port->qm_port.hw_credit_quanta = hw_credit_quanta;\n \n+\t/*\n+\t * Validate credit config before creating port\n+\t */\n+\n \tif (port_conf->enqueue_depth > sw_credit_quanta ||\n \t    port_conf->enqueue_depth > hw_credit_quanta) {\n \t\tDLB2_LOG_ERR(\"Invalid port config. Enqueue depth %d must be <= credit quanta %d and batch size %d\\n\",\n@@ -3073,7 +3081,12 @@ __dlb2_event_enqueue_burst(void *event_port,\n \t\tdlb2_event_build_hcws(qm_port, &events[i], j - pop_offs,\n \t\t\t\t      sched_types, queue_ids);\n \n+#if DLB2_BYPASS_FENCE_ON_PP == 1\n+\t\t/* Bypass fence instruction for producer ports */\n+\t\tdlb2_hw_do_enqueue(qm_port, i == 0 && !qm_port->is_producer, port_data);\n+#else\n \t\tdlb2_hw_do_enqueue(qm_port, i == 0, port_data);\n+#endif\n \n \t\t/* Don't include the token pop QE in the enqueue count */\n \t\ti += j - pop_offs;\n",
    "prefixes": [
        "v5",
        "2/3"
    ]
}