Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/93721/?format=api
http://patchwork.dpdk.org/api/patches/93721/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/ddf0f0669c60576cf5f14be8bd76c810605238ff.1622548381.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": "<ddf0f0669c60576cf5f14be8bd76c810605238ff.1622548381.git.anatoly.burakov@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/ddf0f0669c60576cf5f14be8bd76c810605238ff.1622548381.git.anatoly.burakov@intel.com", "date": "2021-06-01T12:00:31", "name": "[v1,2/7] net/af_xdp: add power monitor support", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "ff4cc6fdd8ddeecfdb1ea0b28b7d889d2547e54c", "submitter": { "id": 4, "url": "http://patchwork.dpdk.org/api/people/4/?format=api", "name": "Burakov, Anatoly", "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/ddf0f0669c60576cf5f14be8bd76c810605238ff.1622548381.git.anatoly.burakov@intel.com/mbox/", "series": [ { "id": 17191, "url": "http://patchwork.dpdk.org/api/series/17191/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=17191", "date": "2021-06-01T12:00:29", "name": "Enhancements for PMD power management", "version": 1, "mbox": "http://patchwork.dpdk.org/series/17191/mbox/" } ], "comments": "http://patchwork.dpdk.org/api/patches/93721/comments/", "check": "warning", "checks": "http://patchwork.dpdk.org/api/patches/93721/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 3EF2DA0524;\n\tTue, 1 Jun 2021 14:00:56 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id D9CF6410E3;\n\tTue, 1 Jun 2021 14:00:45 +0200 (CEST)", "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n by mails.dpdk.org (Postfix) with ESMTP id E643540E64\n for <dev@dpdk.org>; Tue, 1 Jun 2021 14:00:42 +0200 (CEST)", "from fmsmga001.fm.intel.com ([10.253.24.23])\n by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 01 Jun 2021 05:00:42 -0700", "from silpixa00399498.ir.intel.com (HELO\n silpixa00399498.ger.corp.intel.com) ([10.237.222.54])\n by fmsmga001.fm.intel.com with ESMTP; 01 Jun 2021 05:00:40 -0700" ], "IronPort-SDR": [ "\n Zt3RQsIJ6nfQlR6AIKQsdWrykurFyKL/m1d7PUlzZ5awMul0AKll3GjKzBK6S2xqAP4WfiDwsP\n y8uTO94b6w+A==", "\n eN3k6PN3C6ghrePUTI9J9RenxglJnAkKZcLxl4fWlx+xnKVqTRJyS68Fja9VkwXl/vHzgV9RM8\n upcjt3AyvvBA==" ], "X-IronPort-AV": [ "E=McAfee;i=\"6200,9189,10001\"; a=\"203528469\"", "E=Sophos;i=\"5.83,239,1616482800\"; d=\"scan'208\";a=\"203528469\"", "E=Sophos;i=\"5.83,239,1616482800\"; d=\"scan'208\";a=\"549706987\"" ], "X-ExtLoop1": "1", "From": "Anatoly Burakov <anatoly.burakov@intel.com>", "To": "dev@dpdk.org, Ciara Loftus <ciara.loftus@intel.com>,\n Qi Zhang <qi.z.zhang@intel.com>", "Cc": "david.hunt@intel.com", "Date": "Tue, 1 Jun 2021 12:00:31 +0000", "Message-Id": "\n <ddf0f0669c60576cf5f14be8bd76c810605238ff.1622548381.git.anatoly.burakov@intel.com>", "X-Mailer": "git-send-email 2.25.1", "In-Reply-To": "<cover.1622548381.git.anatoly.burakov@intel.com>", "References": "<cover.1622548381.git.anatoly.burakov@intel.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[dpdk-dev] [PATCH v1 2/7] net/af_xdp: add power monitor support", "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", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "Implement support for .get_monitor_addr in AF_XDP driver.\n\nSigned-off-by: Anatoly Burakov <anatoly.burakov@intel.com>\n---\n drivers/net/af_xdp/rte_eth_af_xdp.c | 25 +++++++++++++++++++++++++\n 1 file changed, 25 insertions(+)", "diff": "diff --git a/drivers/net/af_xdp/rte_eth_af_xdp.c b/drivers/net/af_xdp/rte_eth_af_xdp.c\nindex eb5660a3dc..dfbf74ea53 100644\n--- a/drivers/net/af_xdp/rte_eth_af_xdp.c\n+++ b/drivers/net/af_xdp/rte_eth_af_xdp.c\n@@ -37,6 +37,7 @@\n #include <rte_malloc.h>\n #include <rte_ring.h>\n #include <rte_spinlock.h>\n+#include <rte_power_intrinsics.h>\n \n #include \"compat.h\"\n \n@@ -788,6 +789,29 @@ eth_dev_configure(struct rte_eth_dev *dev)\n \treturn 0;\n }\n \n+static int\n+eth_get_monitor_addr(void *rx_queue, struct rte_power_monitor_cond *pmc)\n+{\n+\tstruct pkt_rx_queue *rxq = rx_queue;\n+\tunsigned int *prod = rxq->rx.producer;\n+\tconst uint32_t cur_val = rxq->rx.cached_prod; /* use cached value */\n+\n+\t/* watch for changes in producer ring */\n+\tpmc->addr = (void*)prod;\n+\n+\t/* store current value */\n+\tpmc->val = cur_val;\n+\tpmc->mask = (uint32_t)~0; /* mask entire uint32_t value */\n+\n+\t/* AF_XDP producer ring index is 32-bit */\n+\tpmc->size = sizeof(uint32_t);\n+\n+\t/* this requires an inverted check */\n+\tpmc->invert = 1;\n+\n+\treturn 0;\n+}\n+\n static int\n eth_dev_info(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info)\n {\n@@ -1448,6 +1472,7 @@ static const struct eth_dev_ops ops = {\n \t.link_update = eth_link_update,\n \t.stats_get = eth_stats_get,\n \t.stats_reset = eth_stats_reset,\n+\t.get_monitor_addr = eth_get_monitor_addr\n };\n \n /** parse busy_budget argument */\n", "prefixes": [ "v1", "2/7" ] }{ "id": 93721, "url": "