get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 139630,
    "url": "https://patches.dpdk.org/api/patches/139630/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20240422190800.123027-4-hernan.vargas@intel.com/",
    "project": {
        "id": 1,
        "url": "https://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": "<20240422190800.123027-4-hernan.vargas@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20240422190800.123027-4-hernan.vargas@intel.com",
    "date": "2024-04-22T19:07:54",
    "name": "[v1,3/9] test/bbdev: fix interrupt tests",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "28197bba17ab68187042c58fd93c94e2945dbf7a",
    "submitter": {
        "id": 2659,
        "url": "https://patches.dpdk.org/api/people/2659/?format=api",
        "name": "Hernan Vargas",
        "email": "hernan.vargas@intel.com"
    },
    "delegate": {
        "id": 2642,
        "url": "https://patches.dpdk.org/api/users/2642/?format=api",
        "username": "mcoquelin",
        "first_name": "Maxime",
        "last_name": "Coquelin",
        "email": "maxime.coquelin@redhat.com"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20240422190800.123027-4-hernan.vargas@intel.com/mbox/",
    "series": [
        {
            "id": 31807,
            "url": "https://patches.dpdk.org/api/series/31807/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=31807",
            "date": "2024-04-22T19:07:51",
            "name": "test-bbdev fixes and improvements for 24.07",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/31807/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/139630/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/139630/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 04A9843EDD;\n\tMon, 22 Apr 2024 21:11:54 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id C739640395;\n\tMon, 22 Apr 2024 21:11:38 +0200 (CEST)",
            "from mgamail.intel.com (mgamail.intel.com [198.175.65.11])\n by mails.dpdk.org (Postfix) with ESMTP id 839B2402C5;\n Mon, 22 Apr 2024 21:11:33 +0200 (CEST)",
            "from orviesa006.jf.intel.com ([10.64.159.146])\n by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 22 Apr 2024 12:11:33 -0700",
            "from unknown (HELO csl-npg-qt0.la.intel.com) ([10.233.181.103])\n by orviesa006.jf.intel.com with ESMTP; 22 Apr 2024 12:11:32 -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=1713813094; x=1745349094;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=NEecPZy4s2m+H49jr/WpaOjrI2Y3JbJ5TEZLqzVGhlk=;\n b=FNcbeHJKJRleKgG+iyh84IRUqcFnBQEMff70EDvW+abshafIZ1GGnX0m\n SJKYr7XYkdeafdKkJAuqSbFPIBnGiYASUZC1vZmLGwXxYT7jrG+EWcsYh\n 2wq1iuPk1t/RWWdIn8QB4rLG1bCrCMN6owH+tLlFqIkGaY0hszVESxAWa\n vmD89Ei33eN6N/S8AU5ieRAZufhMx8x5Ae4p3Y8Ha/0HWwwtuYMgpWH5u\n +4vH72CbYpn3gnVZId+ofDQinicNOQe7AvvC1Y29yrRgknv5YuiA8OcsS\n z2LB+r3XwXnbYHLJ/oYSuEFESJOHggeKSFuMWuJPNo7KOkHw3cvl3pC/r w==;",
        "X-CSE-ConnectionGUID": [
            "reoeVv79RuuAfY8/oJd2oA==",
            "VOymZTCpSQuNz5sVUncbuA=="
        ],
        "X-CSE-MsgGUID": [
            "riUYnfhPQXi9zzbqEipfsg==",
            "66EOOVFWTd6dwACf2jIC+Q=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6600,9927,11052\"; a=\"19922802\"",
            "E=Sophos;i=\"6.07,221,1708416000\"; d=\"scan'208\";a=\"19922802\"",
            "E=Sophos;i=\"6.07,221,1708416000\"; d=\"scan'208\";a=\"24555952\""
        ],
        "X-ExtLoop1": "1",
        "From": "Hernan Vargas <hernan.vargas@intel.com>",
        "To": "dev@dpdk.org, gakhil@marvell.com, trix@redhat.com,\n maxime.coquelin@redhat.com",
        "Cc": "nicolas.chautru@intel.com, qi.z.zhang@intel.com,\n Hernan Vargas <hernan.vargas@intel.com>, stable@dpdk.org",
        "Subject": "[PATCH v1 3/9] test/bbdev: fix interrupt tests",
        "Date": "Mon, 22 Apr 2024 12:07:54 -0700",
        "Message-Id": "<20240422190800.123027-4-hernan.vargas@intel.com>",
        "X-Mailer": "git-send-email 2.37.1",
        "In-Reply-To": "<20240422190800.123027-1-hernan.vargas@intel.com>",
        "References": "<20240422190800.123027-1-hernan.vargas@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": "Fix possible error with regards to setting the burst size from the\nenqueue thread.\n\nFixes: b2e2aec3239e (\"app/bbdev: enhance interrupt test\")\nCc: stable@dpdk.org\n\nSigned-off-by: Hernan Vargas <hernan.vargas@intel.com>\n---\n app/test-bbdev/test_bbdev_perf.c | 98 ++++++++++++++++----------------\n 1 file changed, 49 insertions(+), 49 deletions(-)",
    "diff": "diff --git a/app/test-bbdev/test_bbdev_perf.c b/app/test-bbdev/test_bbdev_perf.c\nindex 9ed0c4648d24..28d78e73a9c1 100644\n--- a/app/test-bbdev/test_bbdev_perf.c\n+++ b/app/test-bbdev/test_bbdev_perf.c\n@@ -3406,15 +3406,6 @@ throughput_intr_lcore_ldpc_dec(void *arg)\n \t\t\tif (unlikely(num_to_process - enqueued < num_to_enq))\n \t\t\t\tnum_to_enq = num_to_process - enqueued;\n \n-\t\t\tenq = 0;\n-\t\t\tdo {\n-\t\t\t\tenq += rte_bbdev_enqueue_ldpc_dec_ops(\n-\t\t\t\t\t\ttp->dev_id,\n-\t\t\t\t\t\tqueue_id, &ops[enqueued],\n-\t\t\t\t\t\tnum_to_enq);\n-\t\t\t} while (unlikely(num_to_enq != enq));\n-\t\t\tenqueued += enq;\n-\n \t\t\t/* Write to thread burst_sz current number of enqueued\n \t\t\t * descriptors. It ensures that proper number of\n \t\t\t * descriptors will be dequeued in callback\n@@ -3424,6 +3415,15 @@ throughput_intr_lcore_ldpc_dec(void *arg)\n \t\t\t */\n \t\t\t__atomic_store_n(&tp->burst_sz, num_to_enq, __ATOMIC_RELAXED);\n \n+\t\t\tenq = 0;\n+\t\t\tdo {\n+\t\t\t\tenq += rte_bbdev_enqueue_ldpc_dec_ops(\n+\t\t\t\t\t\ttp->dev_id,\n+\t\t\t\t\t\tqueue_id, &ops[enqueued],\n+\t\t\t\t\t\tnum_to_enq);\n+\t\t\t} while (unlikely(num_to_enq != enq));\n+\t\t\tenqueued += enq;\n+\n \t\t\t/* Wait until processing of previous batch is\n \t\t\t * completed\n \t\t\t */\n@@ -3498,14 +3498,6 @@ throughput_intr_lcore_dec(void *arg)\n \t\t\tif (unlikely(num_to_process - enqueued < num_to_enq))\n \t\t\t\tnum_to_enq = num_to_process - enqueued;\n \n-\t\t\tenq = 0;\n-\t\t\tdo {\n-\t\t\t\tenq += rte_bbdev_enqueue_dec_ops(tp->dev_id,\n-\t\t\t\t\t\tqueue_id, &ops[enqueued],\n-\t\t\t\t\t\tnum_to_enq);\n-\t\t\t} while (unlikely(num_to_enq != enq));\n-\t\t\tenqueued += enq;\n-\n \t\t\t/* Write to thread burst_sz current number of enqueued\n \t\t\t * descriptors. It ensures that proper number of\n \t\t\t * descriptors will be dequeued in callback\n@@ -3515,6 +3507,14 @@ throughput_intr_lcore_dec(void *arg)\n \t\t\t */\n \t\t\t__atomic_store_n(&tp->burst_sz, num_to_enq, __ATOMIC_RELAXED);\n \n+\t\t\tenq = 0;\n+\t\t\tdo {\n+\t\t\t\tenq += rte_bbdev_enqueue_dec_ops(tp->dev_id,\n+\t\t\t\t\t\tqueue_id, &ops[enqueued],\n+\t\t\t\t\t\tnum_to_enq);\n+\t\t\t} while (unlikely(num_to_enq != enq));\n+\t\t\tenqueued += enq;\n+\n \t\t\t/* Wait until processing of previous batch is\n \t\t\t * completed\n \t\t\t */\n@@ -3584,14 +3584,6 @@ throughput_intr_lcore_enc(void *arg)\n \t\t\tif (unlikely(num_to_process - enqueued < num_to_enq))\n \t\t\t\tnum_to_enq = num_to_process - enqueued;\n \n-\t\t\tenq = 0;\n-\t\t\tdo {\n-\t\t\t\tenq += rte_bbdev_enqueue_enc_ops(tp->dev_id,\n-\t\t\t\t\t\tqueue_id, &ops[enqueued],\n-\t\t\t\t\t\tnum_to_enq);\n-\t\t\t} while (unlikely(enq != num_to_enq));\n-\t\t\tenqueued += enq;\n-\n \t\t\t/* Write to thread burst_sz current number of enqueued\n \t\t\t * descriptors. It ensures that proper number of\n \t\t\t * descriptors will be dequeued in callback\n@@ -3601,6 +3593,14 @@ throughput_intr_lcore_enc(void *arg)\n \t\t\t */\n \t\t\t__atomic_store_n(&tp->burst_sz, num_to_enq, __ATOMIC_RELAXED);\n \n+\t\t\tenq = 0;\n+\t\t\tdo {\n+\t\t\t\tenq += rte_bbdev_enqueue_enc_ops(tp->dev_id,\n+\t\t\t\t\t\tqueue_id, &ops[enqueued],\n+\t\t\t\t\t\tnum_to_enq);\n+\t\t\t} while (unlikely(enq != num_to_enq));\n+\t\t\tenqueued += enq;\n+\n \t\t\t/* Wait until processing of previous batch is\n \t\t\t * completed\n \t\t\t */\n@@ -3672,15 +3672,6 @@ throughput_intr_lcore_ldpc_enc(void *arg)\n \t\t\tif (unlikely(num_to_process - enqueued < num_to_enq))\n \t\t\t\tnum_to_enq = num_to_process - enqueued;\n \n-\t\t\tenq = 0;\n-\t\t\tdo {\n-\t\t\t\tenq += rte_bbdev_enqueue_ldpc_enc_ops(\n-\t\t\t\t\t\ttp->dev_id,\n-\t\t\t\t\t\tqueue_id, &ops[enqueued],\n-\t\t\t\t\t\tnum_to_enq);\n-\t\t\t} while (unlikely(enq != num_to_enq));\n-\t\t\tenqueued += enq;\n-\n \t\t\t/* Write to thread burst_sz current number of enqueued\n \t\t\t * descriptors. It ensures that proper number of\n \t\t\t * descriptors will be dequeued in callback\n@@ -3690,6 +3681,15 @@ throughput_intr_lcore_ldpc_enc(void *arg)\n \t\t\t */\n \t\t\t__atomic_store_n(&tp->burst_sz, num_to_enq, __ATOMIC_RELAXED);\n \n+\t\t\tenq = 0;\n+\t\t\tdo {\n+\t\t\t\tenq += rte_bbdev_enqueue_ldpc_enc_ops(\n+\t\t\t\t\t\ttp->dev_id,\n+\t\t\t\t\t\tqueue_id, &ops[enqueued],\n+\t\t\t\t\t\tnum_to_enq);\n+\t\t\t} while (unlikely(enq != num_to_enq));\n+\t\t\tenqueued += enq;\n+\n \t\t\t/* Wait until processing of previous batch is\n \t\t\t * completed\n \t\t\t */\n@@ -3761,14 +3761,6 @@ throughput_intr_lcore_fft(void *arg)\n \t\t\tif (unlikely(num_to_process - enqueued < num_to_enq))\n \t\t\t\tnum_to_enq = num_to_process - enqueued;\n \n-\t\t\tenq = 0;\n-\t\t\tdo {\n-\t\t\t\tenq += rte_bbdev_enqueue_fft_ops(tp->dev_id,\n-\t\t\t\t\t\tqueue_id, &ops[enqueued],\n-\t\t\t\t\t\tnum_to_enq);\n-\t\t\t} while (unlikely(enq != num_to_enq));\n-\t\t\tenqueued += enq;\n-\n \t\t\t/* Write to thread burst_sz current number of enqueued\n \t\t\t * descriptors. It ensures that proper number of\n \t\t\t * descriptors will be dequeued in callback\n@@ -3778,6 +3770,14 @@ throughput_intr_lcore_fft(void *arg)\n \t\t\t */\n \t\t\t__atomic_store_n(&tp->burst_sz, num_to_enq, __ATOMIC_RELAXED);\n \n+\t\t\tenq = 0;\n+\t\t\tdo {\n+\t\t\t\tenq += rte_bbdev_enqueue_fft_ops(tp->dev_id,\n+\t\t\t\t\t\tqueue_id, &ops[enqueued],\n+\t\t\t\t\t\tnum_to_enq);\n+\t\t\t} while (unlikely(enq != num_to_enq));\n+\t\t\tenqueued += enq;\n+\n \t\t\t/* Wait until processing of previous batch is\n \t\t\t * completed\n \t\t\t */\n@@ -3844,13 +3844,6 @@ throughput_intr_lcore_mldts(void *arg)\n \t\t\tif (unlikely(num_to_process - enqueued < num_to_enq))\n \t\t\t\tnum_to_enq = num_to_process - enqueued;\n \n-\t\t\tenq = 0;\n-\t\t\tdo {\n-\t\t\t\tenq += rte_bbdev_enqueue_mldts_ops(tp->dev_id,\n-\t\t\t\t\t\tqueue_id, &ops[enqueued], num_to_enq);\n-\t\t\t} while (unlikely(enq != num_to_enq));\n-\t\t\tenqueued += enq;\n-\n \t\t\t/* Write to thread burst_sz current number of enqueued\n \t\t\t * descriptors. It ensures that proper number of\n \t\t\t * descriptors will be dequeued in callback\n@@ -3860,6 +3853,13 @@ throughput_intr_lcore_mldts(void *arg)\n \t\t\t */\n \t\t\t__atomic_store_n(&tp->burst_sz, num_to_enq, __ATOMIC_RELAXED);\n \n+\t\t\tenq = 0;\n+\t\t\tdo {\n+\t\t\t\tenq += rte_bbdev_enqueue_mldts_ops(tp->dev_id,\n+\t\t\t\t\t\tqueue_id, &ops[enqueued], num_to_enq);\n+\t\t\t} while (unlikely(enq != num_to_enq));\n+\t\t\tenqueued += enq;\n+\n \t\t\t/* Wait until processing of previous batch is\n \t\t\t * completed\n \t\t\t */\n",
    "prefixes": [
        "v1",
        "3/9"
    ]
}