Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/111561/?format=api
https://patches.dpdk.org/api/patches/111561/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20220520221255.1731-3-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": "<20220520221255.1731-3-cristian.dumitrescu@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20220520221255.1731-3-cristian.dumitrescu@intel.com", "date": "2022-05-20T22:12:55", "name": "[V3,3/3] examples/pipeline: improve learner table timers", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "4432c107b6f8a5e695f8425b8f1972396d26b1b1", "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/20220520221255.1731-3-cristian.dumitrescu@intel.com/mbox/", "series": [ { "id": 23072, "url": "https://patches.dpdk.org/api/series/23072/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=23072", "date": "2022-05-20T22:12:53", "name": "[V3,1/3] table: improve learner table timers", "version": 3, "mbox": "https://patches.dpdk.org/series/23072/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/111561/comments/", "check": "warning", "checks": "https://patches.dpdk.org/api/patches/111561/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 B833DA0093;\n\tSat, 21 May 2022 00:13:11 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 6E62B42B73;\n\tSat, 21 May 2022 00:13:02 +0200 (CEST)", "from mga01.intel.com (mga01.intel.com [192.55.52.88])\n by mails.dpdk.org (Postfix) with ESMTP id DC88F427F2\n for <dev@dpdk.org>; Sat, 21 May 2022 00:12:59 +0200 (CEST)", "from fmsmga004.fm.intel.com ([10.253.24.48])\n by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 20 May 2022 15:12:58 -0700", "from silpixa00400573.ir.intel.com (HELO\n silpixa00400573.ger.corp.intel.com) ([10.237.223.107])\n by fmsmga004.fm.intel.com with ESMTP; 20 May 2022 15:12:58 -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=1653084780; x=1684620780;\n h=from:to:subject:date:message-id:in-reply-to:references;\n bh=maHLaBc3LDRjSGFBVxk7EoEgpp8qPb9l2SK5G44EUr4=;\n b=TLCtLqpc9CEUUSz3NmB4tnnqVhXH/RgBk6GCfVsROX3RErAzq6E7P37l\n T3A638gdn1YttZxsa/Ro5qqn/dt8jtG4cKyvhCuhSO7XT1hzgea3kM9Hr\n GorCbxKgqpgDh7J+hp2KWtjmgXM1y44G7qaEVivijinerDWv4fT7mkmye\n NADP97hCLJ5SvYmiuJFpyWoN5t/fDD5mejFezG+KIvROG5JRMDsnRNSd4\n K1+JG6g6N32mA0jyoIulYvmr7tZDwFvBUko7YuEOmYsuMofZAPQ2UB/jE\n hSHItVwTQmEYqK+1fkANbxwcGdYMDHf/39JFYwXw1+Tv1FlEKE5kiOE+h A==;", "X-IronPort-AV": [ "E=McAfee;i=\"6400,9594,10353\"; a=\"298067080\"", "E=Sophos;i=\"5.91,240,1647327600\"; d=\"scan'208\";a=\"298067080\"", "E=Sophos;i=\"5.91,240,1647327600\"; d=\"scan'208\";a=\"640511078\"" ], "X-ExtLoop1": "1", "From": "Cristian Dumitrescu <cristian.dumitrescu@intel.com>", "To": "dev@dpdk.org", "Subject": "[PATCH V3 3/3] examples/pipeline: improve learner table timers", "Date": "Fri, 20 May 2022 23:12:55 +0100", "Message-Id": "<20220520221255.1731-3-cristian.dumitrescu@intel.com>", "X-Mailer": "git-send-email 2.17.1", "In-Reply-To": "<20220520221255.1731-1-cristian.dumitrescu@intel.com>", "References": "<20220422130343.44060-1-cristian.dumitrescu@intel.com>\n <20220520221255.1731-1-cristian.dumitrescu@intel.com>", "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": "Added the rearm counter to the statistics. Updated the learner table\nexample to the new learner table timer operation.\n\nSigned-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>\n---\n examples/pipeline/cli.c | 2 ++\n examples/pipeline/examples/learner.spec | 15 +++++++++++++--\n 2 files changed, 15 insertions(+), 2 deletions(-)", "diff": "diff --git a/examples/pipeline/cli.c b/examples/pipeline/cli.c\nindex d52ad6b61e..0334616bd9 100644\n--- a/examples/pipeline/cli.c\n+++ b/examples/pipeline/cli.c\n@@ -2677,12 +2677,14 @@ cmd_pipeline_stats(char **tokens,\n \t\t\t\"\\t\\tMiss (packets): %\" PRIu64 \"\\n\"\n \t\t\t\"\\t\\tLearn OK (packets): %\" PRIu64 \"\\n\"\n \t\t\t\"\\t\\tLearn error (packets): %\" PRIu64 \"\\n\"\n+\t\t\t\"\\t\\tRearm (packets): %\" PRIu64 \"\\n\"\n \t\t\t\"\\t\\tForget (packets): %\" PRIu64 \"\\n\",\n \t\t\tlearner_info.name,\n \t\t\tstats.n_pkts_hit,\n \t\t\tstats.n_pkts_miss,\n \t\t\tstats.n_pkts_learn_ok,\n \t\t\tstats.n_pkts_learn_err,\n+\t\t\tstats.n_pkts_rearm,\n \t\t\tstats.n_pkts_forget);\n \t\tout_size -= strlen(out);\n \t\tout += strlen(out);\ndiff --git a/examples/pipeline/examples/learner.spec b/examples/pipeline/examples/learner.spec\nindex 4ee52da7ac..095325c293 100644\n--- a/examples/pipeline/examples/learner.spec\n+++ b/examples/pipeline/examples/learner.spec\n@@ -48,6 +48,9 @@ struct metadata_t {\n \tbit<32> port_in\n \tbit<32> port_out\n \n+\t// Key timeout.\n+\tbit<32> timeout_id\n+\n \t// Arguments for the \"fwd_action\" action.\n \tbit<32> fwd_action_arg_port_out\n }\n@@ -68,10 +71,14 @@ struct fwd_action_args_t {\n \n action fwd_action args instanceof fwd_action_args_t {\n \tmov m.port_out t.port_out\n+\trearm\n \treturn\n }\n \n action learn_action args none {\n+\t// Pick the key timeout. Timeout ID #1 (i.e. 120 seconds) is selected.\n+\tmov m.timeout_id 1\n+\n \t// Read current counter value into m.fwd_action_arg_port_out.\n \tregrd m.fwd_action_arg_port_out counter 0\n \n@@ -84,7 +91,7 @@ action learn_action args none {\n \t// Add the current lookup key to the table with fwd_action as the key action. The action\n \t// arguments are read from the packet meta-data (the m.fwd_action_arg_port_out field). These\n \t// packet meta-data fields have to be written before the \"learn\" instruction is invoked.\n-\tlearn fwd_action m.fwd_action_arg_port_out\n+\tlearn fwd_action m.fwd_action_arg_port_out m.timeout_id\n \n \t// Send the current packet to the same output port.\n \tmov m.port_out m.fwd_action_arg_port_out\n@@ -110,7 +117,11 @@ learner fwd_table {\n \n \tsize 1048576\n \n-\ttimeout 120\n+\ttimeout {\n+\t\t60\n+\t\t120\n+\t\t180\n+\t}\n }\n \n //\n", "prefixes": [ "V3", "3/3" ] }{ "id": 111561, "url": "