Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/93168/?format=api
http://patchwork.dpdk.org/api/patches/93168/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/9dabec2f673cbf733a958a23a9769802e9adf852.1620747068.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": "<9dabec2f673cbf733a958a23a9769802e9adf852.1620747068.git.anatoly.burakov@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/9dabec2f673cbf733a958a23a9769802e9adf852.1620747068.git.anatoly.burakov@intel.com", "date": "2021-05-11T15:31:53", "name": "[21.08,v1,2/2] net/af_xdp: add power monitor support", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "90b8ae4771dd137d850d34baa9ef9a15ba0a4e3c", "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/9dabec2f673cbf733a958a23a9769802e9adf852.1620747068.git.anatoly.burakov@intel.com/mbox/", "series": [ { "id": 16930, "url": "http://patchwork.dpdk.org/api/series/16930/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=16930", "date": "2021-05-11T15:31:52", "name": "[21.08,v1,1/2] power: invert the monitor check", "version": 1, "mbox": "http://patchwork.dpdk.org/series/16930/mbox/" } ], "comments": "http://patchwork.dpdk.org/api/patches/93168/comments/", "check": "warning", "checks": "http://patchwork.dpdk.org/api/patches/93168/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 70338A0A0E;\n\tTue, 11 May 2021 17:33:16 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 5F008410E9;\n\tTue, 11 May 2021 17:33:16 +0200 (CEST)", "from mga03.intel.com (mga03.intel.com [134.134.136.65])\n by mails.dpdk.org (Postfix) with ESMTP id 320B54003E\n for <dev@dpdk.org>; Tue, 11 May 2021 17:33:14 +0200 (CEST)", "from orsmga001.jf.intel.com ([10.7.209.18])\n by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 11 May 2021 08:33:10 -0700", "from silpixa00399498.ir.intel.com (HELO\n silpixa00399498.ger.corp.intel.com) ([10.237.223.81])\n by orsmga001.jf.intel.com with ESMTP; 11 May 2021 08:32:57 -0700" ], "IronPort-SDR": [ "\n VY/cOy1Sg3lZmWdP9J9cY6/GLWUV331YUS+9YYDOTtBVyahF9o8o/gUsXZAQK6OXfdDCcK7LTW\n d3FjLDWxSYcQ==", "\n 5rdoI6KC2wzHYJsiiBQvpzt2o50Z1wOH9RfpLGgRKhLjPKxjnw5l+VWfRAaGjGumN09hGvEt2h\n dsufRt7V+erw==" ], "X-IronPort-AV": [ "E=McAfee;i=\"6200,9189,9981\"; a=\"199523980\"", "E=Sophos;i=\"5.82,291,1613462400\"; d=\"scan'208\";a=\"199523980\"", "E=Sophos;i=\"5.82,291,1613462400\"; d=\"scan'208\";a=\"471162608\"" ], "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>", "Date": "Tue, 11 May 2021 15:31:53 +0000", "Message-Id": "\n <9dabec2f673cbf733a958a23a9769802e9adf852.1620747068.git.anatoly.burakov@intel.com>", "X-Mailer": "git-send-email 2.25.1", "In-Reply-To": "\n <819ef1ace187365a615d3383e54579e3d9fb216e.1620747068.git.anatoly.burakov@intel.com>", "References": "\n <819ef1ace187365a615d3383e54579e3d9fb216e.1620747068.git.anatoly.burakov@intel.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[dpdk-dev] [21.08 PATCH v1 2/2] net/af_xdp: add power monitor\n 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 | 52 ++++++++++++++++++++---------\n 1 file changed, 37 insertions(+), 15 deletions(-)", "diff": "diff --git a/drivers/net/af_xdp/rte_eth_af_xdp.c b/drivers/net/af_xdp/rte_eth_af_xdp.c\nindex 0c91a40c4a..a4b4a4b75d 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@@ -778,6 +779,26 @@ 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->fq.producer;\n+\tconst uint32_t cur_val = rxq->fq.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+\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@@ -1423,21 +1444,22 @@ eth_dev_promiscuous_disable(struct rte_eth_dev *dev)\n }\n \n static const struct eth_dev_ops ops = {\n-\t.dev_start = eth_dev_start,\n-\t.dev_stop = eth_dev_stop,\n-\t.dev_close = eth_dev_close,\n-\t.dev_configure = eth_dev_configure,\n-\t.dev_infos_get = eth_dev_info,\n-\t.mtu_set = eth_dev_mtu_set,\n-\t.promiscuous_enable = eth_dev_promiscuous_enable,\n-\t.promiscuous_disable = eth_dev_promiscuous_disable,\n-\t.rx_queue_setup = eth_rx_queue_setup,\n-\t.tx_queue_setup = eth_tx_queue_setup,\n-\t.rx_queue_release = eth_queue_release,\n-\t.tx_queue_release = eth_queue_release,\n-\t.link_update = eth_link_update,\n-\t.stats_get = eth_stats_get,\n-\t.stats_reset = eth_stats_reset,\n+ .dev_start = eth_dev_start,\n+ .dev_stop = eth_dev_stop,\n+ .dev_close = eth_dev_close,\n+ .dev_configure = eth_dev_configure,\n+ .dev_infos_get = eth_dev_info,\n+ .mtu_set = eth_dev_mtu_set,\n+ .promiscuous_enable = eth_dev_promiscuous_enable,\n+ .promiscuous_disable = eth_dev_promiscuous_disable,\n+ .rx_queue_setup = eth_rx_queue_setup,\n+ .tx_queue_setup = eth_tx_queue_setup,\n+ .rx_queue_release = eth_queue_release,\n+ .tx_queue_release = eth_queue_release,\n+ .link_update = eth_link_update,\n+ .stats_get = eth_stats_get,\n+ .stats_reset = eth_stats_reset,\n+ .get_monitor_addr = eth_get_monitor_addr\n };\n \n /** parse busy_budget argument */\n", "prefixes": [ "21.08", "v1", "2/2" ] }{ "id": 93168, "url": "