get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 63562,
    "url": "http://patches.dpdk.org/api/patches/63562/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20191204144345.5736-11-pbhagavatula@marvell.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": "<20191204144345.5736-11-pbhagavatula@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20191204144345.5736-11-pbhagavatula@marvell.com",
    "date": "2019-12-04T14:43:43",
    "name": "[v2,10/11] examples/l3fwd: add graceful teardown for eventdevice",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "d68bdd2daf85bae434d1f4cb79d34e841dbfb826",
    "submitter": {
        "id": 1183,
        "url": "http://patches.dpdk.org/api/people/1183/?format=api",
        "name": "Pavan Nikhilesh Bhagavatula",
        "email": "pbhagavatula@marvell.com"
    },
    "delegate": {
        "id": 310,
        "url": "http://patches.dpdk.org/api/users/310/?format=api",
        "username": "jerin",
        "first_name": "Jerin",
        "last_name": "Jacob",
        "email": "jerinj@marvell.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20191204144345.5736-11-pbhagavatula@marvell.com/mbox/",
    "series": [
        {
            "id": 7727,
            "url": "http://patches.dpdk.org/api/series/7727/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=7727",
            "date": "2019-12-04T14:43:33",
            "name": "example/l3fwd: introduce event device support",
            "version": 2,
            "mbox": "http://patches.dpdk.org/series/7727/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/63562/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/63562/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 dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 012F4A04B5;\n\tWed,  4 Dec 2019 15:45:39 +0100 (CET)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id C773C1BFA3;\n\tWed,  4 Dec 2019 15:44:47 +0100 (CET)",
            "from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com\n [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id D1DB21BFA2\n for <dev@dpdk.org>; Wed,  4 Dec 2019 15:44:46 +0100 (CET)",
            "from pps.filterd (m0045849.ppops.net [127.0.0.1])\n by mx0a-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id\n xB4Eiedu018562; Wed, 4 Dec 2019 06:44:46 -0800",
            "from sc-exch03.marvell.com ([199.233.58.183])\n by mx0a-0016f401.pphosted.com with ESMTP id 2wnvgvmewg-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT);\n Wed, 04 Dec 2019 06:44:46 -0800",
            "from SC-EXCH01.marvell.com (10.93.176.81) by SC-EXCH03.marvell.com\n (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Wed, 4 Dec\n 2019 06:44:42 -0800",
            "from maili.marvell.com (10.93.176.43) by SC-EXCH01.marvell.com\n (10.93.176.81) with Microsoft SMTP Server id 15.0.1367.3 via Frontend\n Transport; Wed, 4 Dec 2019 06:44:42 -0800",
            "from localhost.localdomain (unknown [10.36.16.86])\n by maili.marvell.com (Postfix) with ESMTP id B88363F703F;\n Wed,  4 Dec 2019 06:44:37 -0800 (PST)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com;\n h=from : to : cc :\n subject : date : message-id : in-reply-to : references : mime-version :\n content-transfer-encoding : content-type; s=pfpt0818;\n bh=kiPNIHeMytoru1xfooIOLIdxQVDWLhbJDVfMegd8zno=;\n b=qR+uj2CWbIFrDxWMjF01fLcWQdjZtp1D7D+CwBS13ISVuPdTvF4mJVDzI44aXqCeDI7R\n osOUPuRZgq5l9S/gUSqWKgaEyEVsNBF6euJ/FywveXpV/zhoBQSluAqk570wpbabag/3\n W94+9OsdzgbQcXjveRJN29xVeudhyPuPRJyx2oof8zDwC22HasKx6WlLXsLqw057zCNL\n xYZ6YkwyEgr7AeZY9lKBBzB6Wsx2lQeXROxdOsLJ+4Fdj+jw0uH+blpBbz6ci9DBOxkC\n Sc//tmALzWqoPBeuyaibMovkbwoEp8SfmqZ8Gkd94GIMCywCJoWE5ruCYra9K4G54Ht2 Mg==",
        "From": "<pbhagavatula@marvell.com>",
        "To": "<jerinj@marvell.com>, Marko Kovacevic <marko.kovacevic@intel.com>, Ori Kam\n <orika@mellanox.com>, Bruce Richardson <bruce.richardson@intel.com>, \"Radu\n Nicolau\" <radu.nicolau@intel.com>, Akhil Goyal <akhil.goyal@nxp.com>,\n \"Tomasz Kantecki\" <tomasz.kantecki@intel.com>,\n Sunil Kumar Kori <skori@marvell.com>,\n Pavan Nikhilesh <pbhagavatula@marvell.com>",
        "CC": "<dev@dpdk.org>",
        "Date": "Wed, 4 Dec 2019 20:13:43 +0530",
        "Message-ID": "<20191204144345.5736-11-pbhagavatula@marvell.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20191204144345.5736-1-pbhagavatula@marvell.com>",
        "References": "<20191204144345.5736-1-pbhagavatula@marvell.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Proofpoint-Virus-Version": "vendor=fsecure engine=2.50.10434:6.0.95,18.0.572\n definitions=2019-12-04_03:2019-12-04,2019-12-04 signatures=0",
        "Subject": "[dpdk-dev] [PATCH v2 10/11] examples/l3fwd: add graceful teardown\n\tfor eventdevice",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "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",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "From: Pavan Nikhilesh <pbhagavatula@marvell.com>\n\nAdd graceful teardown that addresses both event mode and poll mode.\n\nSigned-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>\n---\n examples/l3fwd/main.c | 49 ++++++++++++++++++++++++++++++-------------\n 1 file changed, 34 insertions(+), 15 deletions(-)",
    "diff": "diff --git a/examples/l3fwd/main.c b/examples/l3fwd/main.c\nindex 0ae64dd41..68998f42c 100644\n--- a/examples/l3fwd/main.c\n+++ b/examples/l3fwd/main.c\n@@ -920,7 +920,7 @@ main(int argc, char **argv)\n \tstruct lcore_conf *qconf;\n \tstruct rte_eth_dev_info dev_info;\n \tstruct rte_eth_txconf *txconf;\n-\tint ret;\n+\tint i, ret;\n \tunsigned nb_ports;\n \tuint16_t queueid, portid;\n \tunsigned lcore_id;\n@@ -1195,27 +1195,46 @@ main(int argc, char **argv)\n \t\t}\n \t}\n \n-\n \tcheck_all_ports_link_status(enabled_port_mask);\n \n \tret = 0;\n \t/* launch per-lcore init on every lcore */\n \trte_eal_mp_remote_launch(l3fwd_lkp.main_loop, NULL, CALL_MASTER);\n-\tRTE_LCORE_FOREACH_SLAVE(lcore_id) {\n-\t\tif (rte_eal_wait_lcore(lcore_id) < 0) {\n-\t\t\tret = -1;\n-\t\t\tbreak;\n+\tif (evt_rsrc->enabled) {\n+\t\tfor (i = 0; i < evt_rsrc->rx_adptr.nb_rx_adptr; i++)\n+\t\t\trte_event_eth_rx_adapter_stop(\n+\t\t\t\t\tevt_rsrc->rx_adptr.rx_adptr[i]);\n+\t\tfor (i = 0; i < evt_rsrc->tx_adptr.nb_tx_adptr; i++)\n+\t\t\trte_event_eth_tx_adapter_stop(\n+\t\t\t\t\tevt_rsrc->tx_adptr.tx_adptr[i]);\n+\n+\t\tRTE_ETH_FOREACH_DEV(portid) {\n+\t\t\tif ((enabled_port_mask & (1 << portid)) == 0)\n+\t\t\t\tcontinue;\n+\t\t\trte_eth_dev_stop(portid);\n \t\t}\n-\t}\n \n-\t/* stop ports */\n-\tRTE_ETH_FOREACH_DEV(portid) {\n-\t\tif ((enabled_port_mask & (1 << portid)) == 0)\n-\t\t\tcontinue;\n-\t\tprintf(\"Closing port %d...\", portid);\n-\t\trte_eth_dev_stop(portid);\n-\t\trte_eth_dev_close(portid);\n-\t\tprintf(\" Done\\n\");\n+\t\trte_eal_mp_wait_lcore();\n+\t\tRTE_ETH_FOREACH_DEV(portid) {\n+\t\t\tif ((enabled_port_mask & (1 << portid)) == 0)\n+\t\t\t\tcontinue;\n+\t\t\trte_eth_dev_close(portid);\n+\t\t}\n+\n+\t\trte_event_dev_stop(evt_rsrc->event_d_id);\n+\t\trte_event_dev_close(evt_rsrc->event_d_id);\n+\n+\t} else {\n+\t\trte_eal_mp_wait_lcore();\n+\n+\t\tRTE_ETH_FOREACH_DEV(portid) {\n+\t\t\tif ((enabled_port_mask & (1 << portid)) == 0)\n+\t\t\t\tcontinue;\n+\t\t\tprintf(\"Closing port %d...\", portid);\n+\t\t\trte_eth_dev_stop(portid);\n+\t\t\trte_eth_dev_close(portid);\n+\t\t\tprintf(\" Done\\n\");\n+\t\t}\n \t}\n \tprintf(\"Bye...\\n\");\n \n",
    "prefixes": [
        "v2",
        "10/11"
    ]
}