Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/71799/?format=api
http://patchwork.dpdk.org/api/patches/71799/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/b0c7c1b1e0715eb3d3ca618e0fb0c35ab647db5d.1592563994.git.anatoly.burakov@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": "<b0c7c1b1e0715eb3d3ca618e0fb0c35ab647db5d.1592563994.git.anatoly.burakov@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/b0c7c1b1e0715eb3d3ca618e0fb0c35ab647db5d.1592563994.git.anatoly.burakov@intel.com", "date": "2020-06-19T10:53:52", "name": "[v3,4/7] l3fwd-power: add support for requesting legacy mode", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "3663c7af7f91ed85e1f8325c07450a5864bcf816", "submitter": { "id": 4, "url": "http://patchwork.dpdk.org/api/people/4/?format=api", "name": "Anatoly Burakov", "email": "anatoly.burakov@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/b0c7c1b1e0715eb3d3ca618e0fb0c35ab647db5d.1592563994.git.anatoly.burakov@intel.com/mbox/", "series": [ { "id": 10521, "url": "http://patchwork.dpdk.org/api/series/10521/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=10521", "date": "2020-06-19T10:53:49", "name": "Add interrupt-only mode to l3fwd-power", "version": 3, "mbox": "http://patchwork.dpdk.org/series/10521/mbox/" } ], "comments": "http://patchwork.dpdk.org/api/patches/71799/comments/", "check": "success", "checks": "http://patchwork.dpdk.org/api/patches/71799/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 107F5A0518;\n\tFri, 19 Jun 2020 12:54:33 +0200 (CEST)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 770AB1BEC3;\n\tFri, 19 Jun 2020 12:54:07 +0200 (CEST)", "from mga02.intel.com (mga02.intel.com [134.134.136.20])\n by dpdk.org (Postfix) with ESMTP id 7D2EA1BE99\n for <dev@dpdk.org>; Fri, 19 Jun 2020 12:54:02 +0200 (CEST)", "from orsmga007.jf.intel.com ([10.7.209.58])\n by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 19 Jun 2020 03:54:02 -0700", "from silpixa00399498.ir.intel.com (HELO\n silpixa00399498.ger.corp.intel.com) ([10.237.222.52])\n by orsmga007.jf.intel.com with ESMTP; 19 Jun 2020 03:54:00 -0700" ], "IronPort-SDR": [ "\n UHDUF8akzT0rMmlfQcEuu0JxdlcQT3i2pkHL4++4kHqjlR/NPFUun6miNwGz44dTzPFssNLZ1f\n ZWeJBX0I98Yw==", "\n 96dnHXVGOn3ea5vTQowu08DRQ+XAoUDSBaS9FGL2U+OuhcqDkDf2PexqgN4Dorw+xI2WipEt18\n TMgJFiP5HP5Q==" ], "X-IronPort-AV": [ "E=McAfee;i=\"6000,8403,9656\"; a=\"131318777\"", "E=Sophos;i=\"5.75,255,1589266800\"; d=\"scan'208\";a=\"131318777\"", "E=Sophos;i=\"5.75,255,1589266800\"; d=\"scan'208\";a=\"263347315\"" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "From": "Anatoly Burakov <anatoly.burakov@intel.com>", "To": "dev@dpdk.org", "Cc": "David Hunt <david.hunt@intel.com>, reshma.pattan@intel.com,\n hkalra@marvell.com, jerinjacobk@gmail.com, yinan.wang@intel.com", "Date": "Fri, 19 Jun 2020 11:53:52 +0100", "Message-Id": "\n <b0c7c1b1e0715eb3d3ca618e0fb0c35ab647db5d.1592563994.git.anatoly.burakov@intel.com>", "X-Mailer": "git-send-email 2.17.1", "In-Reply-To": [ "<cover.1592563994.git.anatoly.burakov@intel.com>", "<cover.1592563994.git.anatoly.burakov@intel.com>" ], "References": [ "<cover.1592563994.git.anatoly.burakov@intel.com>", "<cover.1592500565.git.anatoly.burakov@intel.com>\n <cover.1592563994.git.anatoly.burakov@intel.com>" ], "Subject": "[dpdk-dev] [PATCH v3 4/7] l3fwd-power: add support for requesting\n\tlegacy mode", "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, legacy mode is the implicit default, but it is not possible\nto directly request using legacy mode. Add the argument to enable\nrequesting legacy mode, and also make it the default.\n\nSigned-off-by: Anatoly Burakov <anatoly.burakov@intel.com>\n---\n examples/l3fwd-power/main.c | 28 +++++++++++++++++++++++-----\n 1 file changed, 23 insertions(+), 5 deletions(-)", "diff": "diff --git a/examples/l3fwd-power/main.c b/examples/l3fwd-power/main.c\nindex c70611bb7f..c02b0a3574 100644\n--- a/examples/l3fwd-power/main.c\n+++ b/examples/l3fwd-power/main.c\n@@ -195,7 +195,8 @@ static int parse_ptype; /**< Parse packet type using rx callback, and */\n \t\t\t/**< disabled by default */\n \n enum appmode {\n-\tAPP_MODE_LEGACY = 0,\n+\tAPP_MODE_DEFAULT = 0,\n+\tAPP_MODE_LEGACY,\n \tAPP_MODE_EMPTY_POLL,\n \tAPP_MODE_TELEMETRY\n };\n@@ -1435,6 +1436,7 @@ print_usage(const char *prgname)\n \t\t\" --enable-jumbo: enable jumbo frame\"\n \t\t\" which max packet len is PKTLEN in decimal (64-9600)\\n\"\n \t\t\" --parse-ptype: parse packet type by software\\n\"\n+\t\t\" --legacy: use legacy interrupt-based scaling\\n\"\n \t\t\" --empty-poll: enable empty poll detection\"\n \t\t\" follow (training_flag, high_threshold, med_threshold)\\n\"\n \t\t\" --telemetry: enable telemetry mode, to update\"\n@@ -1581,6 +1583,7 @@ parse_ep_config(const char *q_arg)\n \n }\n #define CMD_LINE_OPT_PARSE_PTYPE \"parse-ptype\"\n+#define CMD_LINE_OPT_LEGACY \"legacy\"\n #define CMD_LINE_OPT_EMPTY_POLL \"empty-poll\"\n #define CMD_LINE_OPT_TELEMETRY \"telemetry\"\n \n@@ -1601,6 +1604,7 @@ parse_args(int argc, char **argv)\n \t\t{\"enable-jumbo\", 0, 0, 0},\n \t\t{CMD_LINE_OPT_EMPTY_POLL, 1, 0, 0},\n \t\t{CMD_LINE_OPT_PARSE_PTYPE, 0, 0, 0},\n+\t\t{CMD_LINE_OPT_LEGACY, 0, 0, 0},\n \t\t{CMD_LINE_OPT_TELEMETRY, 0, 0, 0},\n \t\t{NULL, 0, 0, 0}\n \t};\n@@ -1673,10 +1677,21 @@ parse_args(int argc, char **argv)\n \t\t\t\tnuma_on = 0;\n \t\t\t}\n \n+\t\t\tif (!strncmp(lgopts[option_index].name,\n+\t\t\t\t\tCMD_LINE_OPT_LEGACY,\n+\t\t\t\t\tsizeof(CMD_LINE_OPT_LEGACY))) {\n+\t\t\t\tif (app_mode != APP_MODE_DEFAULT) {\n+\t\t\t\t\tprintf(\" legacy mode is mutually exclusive with other modes\\n\");\n+\t\t\t\t\treturn -1;\n+\t\t\t\t}\n+\t\t\t\tapp_mode = APP_MODE_LEGACY;\n+\t\t\t\tprintf(\"legacy mode is enabled\\n\");\n+\t\t\t}\n+\n \t\t\tif (!strncmp(lgopts[option_index].name,\n \t\t\t\t\tCMD_LINE_OPT_EMPTY_POLL, 10)) {\n-\t\t\t\tif (app_mode == APP_MODE_TELEMETRY) {\n-\t\t\t\t\tprintf(\" empty-poll cannot be enabled as telemetry mode is enabled\\n\");\n+\t\t\t\tif (app_mode != APP_MODE_DEFAULT) {\n+\t\t\t\t\tprintf(\" empty-poll mode is mutually exclusive with other modes\\n\");\n \t\t\t\t\treturn -1;\n \t\t\t\t}\n \t\t\t\tapp_mode = APP_MODE_EMPTY_POLL;\n@@ -1693,8 +1708,8 @@ parse_args(int argc, char **argv)\n \t\t\tif (!strncmp(lgopts[option_index].name,\n \t\t\t\t\tCMD_LINE_OPT_TELEMETRY,\n \t\t\t\t\tsizeof(CMD_LINE_OPT_TELEMETRY))) {\n-\t\t\t\tif (app_mode == APP_MODE_EMPTY_POLL) {\n-\t\t\t\t\tprintf(\"telemetry mode cannot be enabled as empty poll mode is enabled\\n\");\n+\t\t\t\tif (app_mode != APP_MODE_DEFAULT) {\n+\t\t\t\t\tprintf(\" telemetry mode is mutually exclusive with other modes\\n\");\n \t\t\t\t\treturn -1;\n \t\t\t\t}\n \t\t\t\tapp_mode = APP_MODE_TELEMETRY;\n@@ -2254,6 +2269,9 @@ main(int argc, char **argv)\n \tif (ret < 0)\n \t\trte_exit(EXIT_FAILURE, \"Invalid L3FWD parameters\\n\");\n \n+\tif (app_mode == APP_MODE_DEFAULT)\n+\t\tapp_mode = APP_MODE_LEGACY;\n+\n \t/* only legacy and empty poll mode rely on power library */\n \tif ((app_mode == APP_MODE_LEGACY || app_mode == APP_MODE_EMPTY_POLL) &&\n \t\t\tinit_power_library())\n", "prefixes": [ "v3", "4/7" ] }{ "id": 71799, "url": "