Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/42104/?format=api
http://patchwork.dpdk.org/api/patches/42104/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20180702154021.17908-1-emma.kenny@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": "<20180702154021.17908-1-emma.kenny@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20180702154021.17908-1-emma.kenny@intel.com", "date": "2018-07-02T15:40:21", "name": "[v1] examples/multi_process: fix build error", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "667d40e4c8ce06ab3a4da69c313eaaefba1689e1", "submitter": { "id": 1066, "url": "http://patchwork.dpdk.org/api/people/1066/?format=api", "name": "Emma Kenny", "email": "emma.kenny@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/20180702154021.17908-1-emma.kenny@intel.com/mbox/", "series": [ { "id": 358, "url": "http://patchwork.dpdk.org/api/series/358/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=358", "date": "2018-07-02T15:40:21", "name": "[v1] examples/multi_process: fix build error", "version": 1, "mbox": "http://patchwork.dpdk.org/series/358/mbox/" } ], "comments": "http://patchwork.dpdk.org/api/patches/42104/comments/", "check": "success", "checks": "http://patchwork.dpdk.org/api/patches/42104/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@dpdk.org", "Delivered-To": "patchwork@dpdk.org", "Received": [ "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id B2FA71B459;\n\tMon, 2 Jul 2018 17:39:20 +0200 (CEST)", "from mga17.intel.com (mga17.intel.com [192.55.52.151])\n\tby dpdk.org (Postfix) with ESMTP id D12BD5F29\n\tfor <dev@dpdk.org>; Mon, 2 Jul 2018 17:39:18 +0200 (CEST)", "from orsmga006.jf.intel.com ([10.7.209.51])\n\tby fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t02 Jul 2018 08:39:16 -0700", "from silpixa00399499.ir.intel.com (HELO\n\tsilpixa00399499.ger.corp.intel.com) ([10.237.222.184])\n\tby orsmga006.jf.intel.com with ESMTP; 02 Jul 2018 08:39:15 -0700" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.51,299,1526367600\"; d=\"scan'208\";a=\"54536864\"", "From": "Emma Kenny <emma.kenny@intel.com>", "To": "dev@dpdk.org", "Cc": "anatoly.burakov@intel.com, ferruh.yigit@intel.com,\n\tEmma Kenny <emma.kenny@intel.com>, shahafs@mellanox.com", "Date": "Mon, 2 Jul 2018 16:40:21 +0100", "Message-Id": "<20180702154021.17908-1-emma.kenny@intel.com>", "X-Mailer": "git-send-email 2.9.5", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=\"utf-8\"", "Content-Transfer-Encoding": "base64", "Subject": "[dpdk-dev] [PATCH v1] examples/multi_process: fix build error", "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\t<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\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "Fix bug with undeclared variable name and\ncalling a variable that is not member of struct.\n\nCC main.o\nl2fwd_fork/main.c: In function ‘main’: l2fwd_fork/main.c:1043:33:\n error: ‘dev_info’ undeclared (first use in this function)\n rte_eth_dev_info_get(portid, &dev_info);\n\nl2fwd_fork/main.c:1043:33: note: each undeclared identifier is\nreported only once for each function it appears in\nl2fwd_fork/main.c:1077:11: error: ‘struct rte_eth_txconf’\nhas no member named ‘tx_offloads’\n txq_conf.tx_offloads = local_port_conf.txmode.offloads;\n\nmake[1]: *** [main.o] Error 1\nmake: *** [all] Error 2\n\nFixes: f8c02ca878af (\"examples/multi_process: convert to new ethdev offloads API\")\nCc: shahafs@mellanox.com\n\nSigned-off-by: Emma Kenny <emma.kenny@intel.com>\n---\n examples/multi_process/l2fwd_fork/main.c | 3 ++-\n 1 file changed, 2 insertions(+), 1 deletion(-)", "diff": "diff --git a/examples/multi_process/l2fwd_fork/main.c b/examples/multi_process/l2fwd_fork/main.c\nindex 94318ab..62e3937 100644\n--- a/examples/multi_process/l2fwd_fork/main.c\n+++ b/examples/multi_process/l2fwd_fork/main.c\n@@ -1030,6 +1030,7 @@ main(int argc, char **argv)\n \t\tstruct rte_eth_rxconf rxq_conf;\n \t\tstruct rte_eth_txconf txq_conf;\n \t\tstruct rte_eth_conf local_port_conf = port_conf;\n+\t\tstruct rte_eth_dev_info dev_info;\n \n \t\t/* skip ports that are not enabled */\n \t\tif ((l2fwd_enabled_port_mask & (1 << portid)) == 0) {\n@@ -1074,7 +1075,7 @@ main(int argc, char **argv)\n \t\tfflush(stdout);\n \t\ttxq_conf = dev_info.default_txconf;\n \t\ttxq_conf.txq_flags = ETH_TXQ_FLAGS_IGNORE;\n-\t\ttxq_conf.tx_offloads = local_port_conf.txmode.offloads;\n+\t\ttxq_conf.offloads = local_port_conf.txmode.offloads;\n \t\tret = rte_eth_tx_queue_setup(portid, 0, nb_txd,\n \t\t\t\trte_eth_dev_socket_id(portid),\n \t\t\t\t&txq_conf);\n", "prefixes": [ "v1" ] }{ "id": 42104, "url": "