get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 114683,
    "url": "http://patchwork.dpdk.org/api/patches/114683/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20220805220029.1096212-9-cristian.dumitrescu@intel.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": "<20220805220029.1096212-9-cristian.dumitrescu@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20220805220029.1096212-9-cristian.dumitrescu@intel.com",
    "date": "2022-08-05T22:00:27",
    "name": "[08/10] port: prevent unnecessary flush for the ring output port",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "95cf298dd0d7f0b99fb6cea435d45c2e3a496c0e",
    "submitter": {
        "id": 19,
        "url": "http://patchwork.dpdk.org/api/people/19/?format=api",
        "name": "Cristian Dumitrescu",
        "email": "cristian.dumitrescu@intel.com"
    },
    "delegate": {
        "id": 1,
        "url": "http://patchwork.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20220805220029.1096212-9-cristian.dumitrescu@intel.com/mbox/",
    "series": [
        {
            "id": 24217,
            "url": "http://patchwork.dpdk.org/api/series/24217/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=24217",
            "date": "2022-08-05T22:00:23",
            "name": "port: implement output port non-blocking behavior",
            "version": 1,
            "mbox": "http://patchwork.dpdk.org/series/24217/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/114683/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/114683/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 8ABC2A00C4;\n\tSat,  6 Aug 2022 00:01:05 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id A512B42C45;\n\tSat,  6 Aug 2022 00:00:41 +0200 (CEST)",
            "from mga14.intel.com (mga14.intel.com [192.55.52.115])\n by mails.dpdk.org (Postfix) with ESMTP id 35B2D4282D\n for <dev@dpdk.org>; Sat,  6 Aug 2022 00:00:37 +0200 (CEST)",
            "from fmsmga003.fm.intel.com ([10.253.24.29])\n by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 05 Aug 2022 15:00:36 -0700",
            "from silpixa00400573.ir.intel.com (HELO\n silpixa00400573.ger.corp.intel.com.) ([10.237.223.157])\n by FMSMGA003.fm.intel.com with ESMTP; 05 Aug 2022 15:00:35 -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=1659736837; x=1691272837;\n h=from:to:subject:date:message-id:in-reply-to:references:\n mime-version:content-transfer-encoding;\n bh=mvqdhbjyhQGS+1VK6E9SEmTdMFSWl8K3B6tpeE4gkV8=;\n b=GX/6YNzlJF7HEe15l35zOKlf0Ry5yFqw7nxOWTUEaQcT8kR/b2lMXrMh\n Wd24Z7pxKDvECFqIhZ7kb+eYx3AooBfuoj44EGikabork6KdIbl94eNlL\n d6nW1ZsHUvHmRymlS0lyEkDOILHrinXHXdyqtLouK+5UQyQTHRVjqoaHu\n T0xse3XuHcz703AqCuK91YcvA97mPEAQ7T95FAnkSh2yPsRwGz8SFMtB6\n CZ1hTfKAEWMZlM0BAD3Q5670VI2HWRNUH4NdByc+ZSS55F03E7JC2AcmN\n X4AdXPwyBKW02w2CkgvDuChawitZFwIsU47vkrwCrLJbSUKWLQMJjUMSi w==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6400,9594,10430\"; a=\"290308824\"",
            "E=Sophos;i=\"5.93,216,1654585200\"; d=\"scan'208\";a=\"290308824\"",
            "E=Sophos;i=\"5.93,217,1654585200\"; d=\"scan'208\";a=\"693137585\""
        ],
        "X-ExtLoop1": "1",
        "From": "Cristian Dumitrescu <cristian.dumitrescu@intel.com>",
        "To": "dev@dpdk.org",
        "Subject": "[PATCH 08/10] port: prevent unnecessary flush for the ring output\n port",
        "Date": "Fri,  5 Aug 2022 22:00:27 +0000",
        "Message-Id": "<20220805220029.1096212-9-cristian.dumitrescu@intel.com>",
        "X-Mailer": "git-send-email 2.34.1",
        "In-Reply-To": "<20220805220029.1096212-1-cristian.dumitrescu@intel.com>",
        "References": "<20220805220029.1096212-1-cristian.dumitrescu@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": "Do not flush the buffered packets unnecessarily when a burst was sent\nsince the last flush call.\n\nSigned-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>\n---\n lib/port/rte_swx_port_ring.c | 6 +++++-\n 1 file changed, 5 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/lib/port/rte_swx_port_ring.c b/lib/port/rte_swx_port_ring.c\nindex 7cdcd4b638..d0058087bd 100644\n--- a/lib/port/rte_swx_port_ring.c\n+++ b/lib/port/rte_swx_port_ring.c\n@@ -173,6 +173,7 @@ struct writer {\n \tstruct rte_mbuf **pkts;\n \tint n_pkts;\n \tuint32_t n_bytes;\n+\tint flush_flag;\n };\n \n static void *\n@@ -253,6 +254,7 @@ __writer_flush(struct writer *p)\n \tp->stats.n_bytes_drop = n_bytes_drop_total + n_bytes_drop;\n \tp->n_pkts = 0;\n \tp->n_bytes = 0;\n+\tp->flush_flag = 0;\n \n \tTRACE(\"[Ring %s] Buffered packets flushed: %d out, %d dropped\\n\",\n \t      p->params.name,\n@@ -363,8 +365,10 @@ writer_flush(void *port)\n {\n \tstruct writer *p = port;\n \n-\tif (p->n_pkts)\n+\tif (p->n_pkts && p->flush_flag)\n \t\t__writer_flush(p);\n+\n+\tp->flush_flag = 1;\n }\n \n static void\n",
    "prefixes": [
        "08/10"
    ]
}