get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 114679,
    "url": "https://patches.dpdk.org/api/patches/114679/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20220805220029.1096212-6-cristian.dumitrescu@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": "<20220805220029.1096212-6-cristian.dumitrescu@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20220805220029.1096212-6-cristian.dumitrescu@intel.com",
    "date": "2022-08-05T22:00:24",
    "name": "[05/10] port: prevent unnecessary flush for the Ethernet device output port",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "56a26dfa2fc80033af7fd190a35a9f70c3e9235f",
    "submitter": {
        "id": 19,
        "url": "https://patches.dpdk.org/api/people/19/?format=api",
        "name": "Cristian Dumitrescu",
        "email": "cristian.dumitrescu@intel.com"
    },
    "delegate": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20220805220029.1096212-6-cristian.dumitrescu@intel.com/mbox/",
    "series": [
        {
            "id": 24217,
            "url": "https://patches.dpdk.org/api/series/24217/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=24217",
            "date": "2022-08-05T22:00:23",
            "name": "port: implement output port non-blocking behavior",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/24217/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/114679/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/114679/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 07616A00C4;\n\tSat,  6 Aug 2022 00:00:43 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 1806942905;\n\tSat,  6 Aug 2022 00:00:38 +0200 (CEST)",
            "from mga14.intel.com (mga14.intel.com [192.55.52.115])\n by mails.dpdk.org (Postfix) with ESMTP id 49EEE400D6\n for <dev@dpdk.org>; Sat,  6 Aug 2022 00:00:35 +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:34 -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:33 -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=1659736835; x=1691272835;\n h=from:to:subject:date:message-id:in-reply-to:references:\n mime-version:content-transfer-encoding;\n bh=ZBh62HpW23Ht9f6a4VoeI/C2wkX5PrS7PTH/YxhgW8s=;\n b=F3+v0lQxUBKl3cLS19NJdjhOADID9eYUZ0W0IvMcutQ+BFy2891oTrSW\n hzsNo7cxuPbvx5MHrfi9JDcSfg0dXeFrjJEMY/l9fYggnuzk7DYkz0RhQ\n swF/bxIMHTX7p8QL2y2r8VLy1Jf7ypZHRESdhvquSPKQ/5fKzrEyrD7rm\n zdB5qZ2DsVPD6K24aung9QPXFxSkebZWSgK2EpoeasbxlKBgF2NNQSQCl\n CHoIiHCJB5lNdoJ14Dc8Z4HHoItP8YBCBxhMQ7F++E17rtAcJUh+fWLuz\n MST+98MeQlkEUds3KNVlPdznG0WcK0jWCvpKsWGAleuACEnnZTZzVNOaf g==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6400,9594,10430\"; a=\"290308813\"",
            "E=Sophos;i=\"5.93,216,1654585200\"; d=\"scan'208\";a=\"290308813\"",
            "E=Sophos;i=\"5.93,217,1654585200\"; d=\"scan'208\";a=\"693137562\""
        ],
        "X-ExtLoop1": "1",
        "From": "Cristian Dumitrescu <cristian.dumitrescu@intel.com>",
        "To": "dev@dpdk.org",
        "Subject": "[PATCH 05/10] port: prevent unnecessary flush for the Ethernet device\n output port",
        "Date": "Fri,  5 Aug 2022 22:00:24 +0000",
        "Message-Id": "<20220805220029.1096212-6-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_ethdev.c | 6 +++++-\n 1 file changed, 5 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/lib/port/rte_swx_port_ethdev.c b/lib/port/rte_swx_port_ethdev.c\nindex 8a1da71003..7cb3c4dfb1 100644\n--- a/lib/port/rte_swx_port_ethdev.c\n+++ b/lib/port/rte_swx_port_ethdev.c\n@@ -174,6 +174,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@@ -249,6 +250,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(\"[Ethdev TX port %u queue %u] Buffered packets flushed: %d out, %d dropped\\n\",\n \t      (uint32_t)p->params.port_id,\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": [
        "05/10"
    ]
}