get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 138017,
    "url": "http://patchwork.dpdk.org/api/patches/138017/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20240306122445.4350-6-shaibran@amazon.com/",
    "project": {
        "id": 1,
        "url": "http://patchwork.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": "<20240306122445.4350-6-shaibran@amazon.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20240306122445.4350-6-shaibran@amazon.com",
    "date": "2024-03-06T12:24:17",
    "name": "[v3,05/33] net/ena: fix fast mbuf free",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "d599e0eecaa06cb1d32de7a108a1ad244be635f8",
    "submitter": {
        "id": 2930,
        "url": "http://patchwork.dpdk.org/api/people/2930/?format=api",
        "name": "Brandes, Shai",
        "email": "shaibran@amazon.com"
    },
    "delegate": {
        "id": 319,
        "url": "http://patchwork.dpdk.org/api/users/319/?format=api",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@amd.com"
    },
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20240306122445.4350-6-shaibran@amazon.com/mbox/",
    "series": [
        {
            "id": 31397,
            "url": "http://patchwork.dpdk.org/api/series/31397/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=31397",
            "date": "2024-03-06T12:24:13",
            "name": "net/ena: v2.9.0 driver release",
            "version": 3,
            "mbox": "http://patchwork.dpdk.org/series/31397/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/138017/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/138017/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 CA49743C5B;\n\tWed,  6 Mar 2024 13:25:24 +0100 (CET)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id ED78142E09;\n\tWed,  6 Mar 2024 13:25:05 +0100 (CET)",
            "from smtp-fw-9105.amazon.com (smtp-fw-9105.amazon.com\n [207.171.188.204])\n by mails.dpdk.org (Postfix) with ESMTP id 9F14F42DFC;\n Wed,  6 Mar 2024 13:25:03 +0100 (CET)",
            "from pdx4-co-svc-p1-lb2-vlan2.amazon.com (HELO\n smtpout.prod.us-east-1.prod.farcaster.email.amazon.dev) ([10.25.36.210])\n by smtp-border-fw-9105.sea19.amazon.com with\n ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Mar 2024 12:25:02 +0000",
            "from EX19MTAEUC002.ant.amazon.com [10.0.10.100:16231]\n by smtpin.naws.eu-west-1.prod.farcaster.email.amazon.dev [10.0.16.96:2525]\n with esmtp (Farcaster)\n id 83645b3d-1731-4a76-9524-a1b8ff4f37b6; Wed, 6 Mar 2024 12:25:00 +0000 (UTC)",
            "from EX19D007EUA001.ant.amazon.com (10.252.50.133) by\n EX19MTAEUC002.ant.amazon.com (10.252.51.245) with Microsoft SMTP Server\n (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n 15.2.1258.28; Wed, 6 Mar 2024 12:25:00 +0000",
            "from EX19MTAUWA001.ant.amazon.com (10.250.64.204) by\n EX19D007EUA001.ant.amazon.com (10.252.50.133) with Microsoft SMTP Server\n (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n 15.2.1258.28; Wed, 6 Mar 2024 12:25:00 +0000",
            "from HFA15-CG15235BS.amazon.com (10.1.213.21) by\n mail-relay.amazon.com (10.250.64.204) with Microsoft SMTP Server id\n 15.2.1258.28 via Frontend Transport; Wed, 6 Mar 2024 12:24:58 +0000"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209;\n t=1709727904; x=1741263904;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version;\n bh=VKWLz4oDznq//Hd+/QwTpu816la+fimxjPhi3Vu/OHA=;\n b=UZIgRhllVqQwFJD6U+Q1G+PLdcePfYbrPgDt7m0s7uYGCSy1g8x0gcG+\n VFP3nq9hqszV+h59gtsm09kPGunJKkeX0qPm1eQ6eUdC93eqV0rBPpMao\n TStH5W73WlHCINqB+sObMoBtl1HrhciPbS184rhwy/Rtig54Bj71JkQxX 0=;",
        "X-IronPort-AV": "E=Sophos;i=\"6.06,208,1705363200\"; d=\"scan'208\";a=\"709678927\"",
        "X-Farcaster-Flow-ID": "83645b3d-1731-4a76-9524-a1b8ff4f37b6",
        "From": "<shaibran@amazon.com>",
        "To": "<ferruh.yigit@amd.com>",
        "CC": "<dev@dpdk.org>, Shai Brandes <shaibran@amazon.com>, <stable@dpdk.org>",
        "Subject": "[PATCH v3 05/33] net/ena: fix fast mbuf free",
        "Date": "Wed, 6 Mar 2024 14:24:17 +0200",
        "Message-ID": "<20240306122445.4350-6-shaibran@amazon.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20240306122445.4350-1-shaibran@amazon.com>",
        "References": "<20240306122445.4350-1-shaibran@amazon.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain",
        "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": "From: Shai Brandes <shaibran@amazon.com>\n\nIn case the application enables fast mbuf release optimization,\nthe driver releases 256 TX mbufs in bulk upon reaching the\nTX free threshold.\nThe existing implementation utilizes rte_mempool_put_bulk for bulk\nfreeing TXs, which exclusively supports direct mbufs.\nIn case the application transmits indirect bufs, the driver must\nalso decrement the mbuf reference count and unlink the mbuf segment.\nFor such case, the driver should employ rte_pktmbuf_free_bulk.\n\nFixes: c339f53823f3 (\"net/ena: support fast mbuf free\")\nCc: stable@dpdk.org\n\nSigned-off-by: Shai Brandes <shaibran@amazon.com>\nReviewed-by: Amit Bernstein <amitbern@amazon.com>\n---\n doc/guides/rel_notes/release_24_03.rst | 1 +\n drivers/net/ena/ena_ethdev.c           | 6 ++----\n 2 files changed, 3 insertions(+), 4 deletions(-)",
    "diff": "diff --git a/doc/guides/rel_notes/release_24_03.rst b/doc/guides/rel_notes/release_24_03.rst\nindex f47073c7dc..6b73d4fedf 100644\n--- a/doc/guides/rel_notes/release_24_03.rst\n+++ b/doc/guides/rel_notes/release_24_03.rst\n@@ -105,6 +105,7 @@ New Features\n \n   * Removed the reporting of `rx_overruns` errors from xstats and instead updated `imissed` stat with its value.\n   * Added support for sub-optimal configuration notifications from the device.\n+  * Restructured fast release of mbufs when RTE_ETH_TX_OFFLOAD_MBUF_FAST_FREE optimization is enabled.\n \n * **Updated Atomic Rules' Arkville driver.**\n \ndiff --git a/drivers/net/ena/ena_ethdev.c b/drivers/net/ena/ena_ethdev.c\nindex 3157237c0d..537ee9f8c3 100644\n--- a/drivers/net/ena/ena_ethdev.c\n+++ b/drivers/net/ena/ena_ethdev.c\n@@ -3122,8 +3122,7 @@ ena_tx_cleanup_mbuf_fast(struct rte_mbuf **mbufs_to_clean,\n \t\tm_next = mbuf->next;\n \t\tmbufs_to_clean[mbuf_cnt++] = mbuf;\n \t\tif (mbuf_cnt == buf_size) {\n-\t\t\trte_mempool_put_bulk(mbufs_to_clean[0]->pool, (void **)mbufs_to_clean,\n-\t\t\t\t(unsigned int)mbuf_cnt);\n+\t\t\trte_pktmbuf_free_bulk(mbufs_to_clean, mbuf_cnt);\n \t\t\tmbuf_cnt = 0;\n \t\t}\n \t\tmbuf = m_next;\n@@ -3191,8 +3190,7 @@ static int ena_tx_cleanup(void *txp, uint32_t free_pkt_cnt)\n \t}\n \n \tif (mbuf_cnt != 0)\n-\t\trte_mempool_put_bulk(mbufs_to_clean[0]->pool,\n-\t\t\t(void **)mbufs_to_clean, mbuf_cnt);\n+\t\trte_pktmbuf_free_bulk(mbufs_to_clean, mbuf_cnt);\n \n \t/* Notify completion handler that full cleanup was performed */\n \tif (free_pkt_cnt == 0 || total_tx_pkts < cleanup_budget)\n",
    "prefixes": [
        "v3",
        "05/33"
    ]
}