Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/70681/?format=api
http://patches.dpdk.org/api/patches/70681/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/38add582d2ecbbfee61624029e752d94d0574f6b.1590656906.git.anatoly.burakov@intel.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": "<38add582d2ecbbfee61624029e752d94d0574f6b.1590656906.git.anatoly.burakov@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/38add582d2ecbbfee61624029e752d94d0574f6b.1590656906.git.anatoly.burakov@intel.com", "date": "2020-05-28T09:13:49", "name": "[1/3] l3fwd-power: disable interrupts by default", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "bb4cc1cf36f770ca7a3f6477d00c59626a7f5807", "submitter": { "id": 4, "url": "http://patches.dpdk.org/api/people/4/?format=api", "name": "Burakov, Anatoly", "email": "anatoly.burakov@intel.com" }, "delegate": null, "mbox": "http://patches.dpdk.org/project/dpdk/patch/38add582d2ecbbfee61624029e752d94d0574f6b.1590656906.git.anatoly.burakov@intel.com/mbox/", "series": [ { "id": 10267, "url": "http://patches.dpdk.org/api/series/10267/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=10267", "date": "2020-05-28T09:13:48", "name": "Add interrupt-only mode to l3fwd-power", "version": 1, "mbox": "http://patches.dpdk.org/series/10267/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/70681/comments/", "check": "warning", "checks": "http://patches.dpdk.org/api/patches/70681/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 860F5A00BE;\n\tThu, 28 May 2020 11:13:57 +0200 (CEST)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 50E901D99E;\n\tThu, 28 May 2020 11:13:50 +0200 (CEST)", "from mga12.intel.com (mga12.intel.com [192.55.52.136])\n by dpdk.org (Postfix) with ESMTP id 56F411D540\n for <dev@dpdk.org>; Thu, 28 May 2020 11:13:47 +0200 (CEST)", "from orsmga002.jf.intel.com ([10.7.209.21])\n by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 28 May 2020 02:13:46 -0700", "from silpixa00399498.ir.intel.com (HELO\n silpixa00399498.ger.corp.intel.com) ([10.237.222.52])\n by orsmga002.jf.intel.com with ESMTP; 28 May 2020 02:13:45 -0700" ], "IronPort-SDR": [ "\n oN1IRgkED8Zb0/e8h+empIJiFEv4o3ay30jihh5fS3/1cuH1WC+qhy+CwxZtHPpeJEoDQKugn5\n Shcx4fJgVy2A==", "\n nD+TO//ftKJWyKcA2GB92H27ekX/suLR45Gif8UM1L9NPUR86oCvYNatsgoZZXFJwtl0YdrImC\n 0FaehHgGis2A==" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.73,444,1583222400\"; d=\"scan'208\";a=\"285106507\"", "From": "Anatoly Burakov <anatoly.burakov@intel.com>", "To": "dev@dpdk.org", "Cc": "David Hunt <david.hunt@intel.com>, liang.j.ma@intel.com,\n reshma.pattan@intel.com", "Date": "Thu, 28 May 2020 10:13:49 +0100", "Message-Id": "\n <38add582d2ecbbfee61624029e752d94d0574f6b.1590656906.git.anatoly.burakov@intel.com>", "X-Mailer": "git-send-email 2.17.1", "In-Reply-To": [ "<cover.1590656906.git.anatoly.burakov@intel.com>", "<cover.1590656906.git.anatoly.burakov@intel.com>" ], "References": [ "<cover.1590656906.git.anatoly.burakov@intel.com>", "<cover.1590656906.git.anatoly.burakov@intel.com>" ], "Subject": "[dpdk-dev] [PATCH 1/3] l3fwd-power: disable interrupts by default", "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": "Currently, interrupts are enabled in telemetry and empty poll modes, but\nthey are not used. Switch to disabling interrupts by default, and only\nenable interrupts for modes that require them.\n\nSigned-off-by: Anatoly Burakov <anatoly.burakov@intel.com>\n---\n examples/l3fwd-power/main.c | 12 +++++++-----\n 1 file changed, 7 insertions(+), 5 deletions(-)", "diff": "diff --git a/examples/l3fwd-power/main.c b/examples/l3fwd-power/main.c\nindex 9db94ce044..2cc5d7b121 100644\n--- a/examples/l3fwd-power/main.c\n+++ b/examples/l3fwd-power/main.c\n@@ -256,10 +256,7 @@ static struct rte_eth_conf port_conf = {\n \t},\n \t.txmode = {\n \t\t.mq_mode = ETH_MQ_TX_NONE,\n-\t},\n-\t.intr_conf = {\n-\t\t.rxq = 1,\n-\t},\n+\t}\n };\n \n static struct rte_mempool * pktmbuf_pool[NB_SOCKETS];\n@@ -2270,6 +2267,8 @@ main(int argc, char **argv)\n \t/* initialize all ports */\n \tRTE_ETH_FOREACH_DEV(portid) {\n \t\tstruct rte_eth_conf local_port_conf = port_conf;\n+\t\t/* not all app modes need interrupts */\n+\t\tbool need_intr = app_mode == APP_MODE_LEGACY;\n \n \t\t/* skip ports that are not enabled */\n \t\tif ((enabled_port_mask & (1 << portid)) == 0) {\n@@ -2303,7 +2302,10 @@ main(int argc, char **argv)\n \t\t\tnb_rx_queue, (unsigned)n_tx_queue );\n \t\t/* If number of Rx queue is 0, no need to enable Rx interrupt */\n \t\tif (nb_rx_queue == 0)\n-\t\t\tlocal_port_conf.intr_conf.rxq = 0;\n+\t\t\tneed_intr = false;\n+\n+\t\tif (need_intr)\n+\t\t\tlocal_port_conf.intr_conf.rxq = 1;\n \n \t\tret = rte_eth_dev_info_get(portid, &dev_info);\n \t\tif (ret != 0)\n", "prefixes": [ "1/3" ] }{ "id": 70681, "url": "