Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/86633/?format=api
http://patchwork.dpdk.org/api/patches/86633/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/786eaba8b038429313a956bb4c78f54e8b417991.1610635488.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": "<786eaba8b038429313a956bb4c78f54e8b417991.1610635488.git.anatoly.burakov@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/786eaba8b038429313a956bb4c78f54e8b417991.1610635488.git.anatoly.burakov@intel.com", "date": "2021-01-14T14:46:11", "name": "[v17,09/11] net/i40e: implement power management API", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "de8ee69fa3e40110273b8f44a834ca3fbab02b0c", "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/786eaba8b038429313a956bb4c78f54e8b417991.1610635488.git.anatoly.burakov@intel.com/mbox/", "series": [ { "id": 14756, "url": "http://patchwork.dpdk.org/api/series/14756/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=14756", "date": "2021-01-14T14:46:02", "name": "Add PMD power management", "version": 17, "mbox": "http://patchwork.dpdk.org/series/14756/mbox/" } ], "comments": "http://patchwork.dpdk.org/api/patches/86633/comments/", "check": "success", "checks": "http://patchwork.dpdk.org/api/patches/86633/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 74785A0A02;\n\tThu, 14 Jan 2021 15:47:52 +0100 (CET)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 8F79914133B;\n\tThu, 14 Jan 2021 15:46:46 +0100 (CET)", "from mga12.intel.com (mga12.intel.com [192.55.52.136])\n by mails.dpdk.org (Postfix) with ESMTP id 67787141339\n for <dev@dpdk.org>; Thu, 14 Jan 2021 15:46:45 +0100 (CET)", "from fmsmga001.fm.intel.com ([10.253.24.23])\n by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 14 Jan 2021 06:46:44 -0800", "from silpixa00399498.ir.intel.com (HELO\n silpixa00399498.ger.corp.intel.com) ([10.237.222.179])\n by fmsmga001.fm.intel.com with ESMTP; 14 Jan 2021 06:46:39 -0800" ], "IronPort-SDR": [ "\n HLDGgtHx1L3SNfvn3UipGrRTs3Y0lKv7uMfk0vlus7afJ+hRV80zdZug5onfjys52tF1q4pczu\n TDERv89XdE0g==", "\n 9atDrlBcwE5psd8LrGdpJi6TYruPtP2Ej/zXZvqe4RIz5lOyNT6p7TAGuZ+R4v+whuoMfjYXvy\n ySNnVbxpXdMA==" ], "X-IronPort-AV": [ "E=McAfee;i=\"6000,8403,9864\"; a=\"157556238\"", "E=Sophos;i=\"5.79,347,1602572400\"; d=\"scan'208\";a=\"157556238\"", "E=Sophos;i=\"5.79,347,1602572400\"; d=\"scan'208\";a=\"465271397\"" ], "X-ExtLoop1": "1", "From": "Anatoly Burakov <anatoly.burakov@intel.com>", "To": "dev@dpdk.org", "Cc": "Liang Ma <liang.j.ma@intel.com>, Beilei Xing <beilei.xing@intel.com>,\n Jeff Guo <jia.guo@intel.com>, thomas@monjalon.net,\n konstantin.ananyev@intel.com, timothy.mcdaniel@intel.com,\n david.hunt@intel.com, bruce.richardson@intel.com, chris.macnamara@intel.com", "Date": "Thu, 14 Jan 2021 14:46:11 +0000", "Message-Id": "\n <786eaba8b038429313a956bb4c78f54e8b417991.1610635488.git.anatoly.burakov@intel.com>", "X-Mailer": "git-send-email 2.25.1", "In-Reply-To": "<cover.1610635488.git.anatoly.burakov@intel.com>", "References": "<cover.1610473000.git.anatoly.burakov@intel.com>\n <cover.1610635488.git.anatoly.burakov@intel.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[dpdk-dev] [PATCH v17 09/11] net/i40e: implement power management\n API", "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": "From: Liang Ma <liang.j.ma@intel.com>\n\nImplement support for the power management API by implementing a\n`get_monitor_addr` function that will return an address of an RX ring's\nstatus bit.\n\nSigned-off-by: Liang Ma <liang.j.ma@intel.com>\nSigned-off-by: Anatoly Burakov <anatoly.burakov@intel.com>\nAcked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>\nAcked-by: Jeff Guo <jia.guo@intel.com>\n---\n drivers/net/i40e/i40e_ethdev.c | 1 +\n drivers/net/i40e/i40e_rxtx.c | 25 +++++++++++++++++++++++++\n drivers/net/i40e/i40e_rxtx.h | 1 +\n 3 files changed, 27 insertions(+)", "diff": "diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c\nindex 14622484a0..ba1abc584f 100644\n--- a/drivers/net/i40e/i40e_ethdev.c\n+++ b/drivers/net/i40e/i40e_ethdev.c\n@@ -510,6 +510,7 @@ static const struct eth_dev_ops i40e_eth_dev_ops = {\n \t.mtu_set = i40e_dev_mtu_set,\n \t.tm_ops_get = i40e_tm_ops_get,\n \t.tx_done_cleanup = i40e_tx_done_cleanup,\n+\t.get_monitor_addr = i40e_get_monitor_addr,\n };\n \n /* store statistics names and its offset in stats structure */\ndiff --git a/drivers/net/i40e/i40e_rxtx.c b/drivers/net/i40e/i40e_rxtx.c\nindex 5df9a9df56..0b4220fc9c 100644\n--- a/drivers/net/i40e/i40e_rxtx.c\n+++ b/drivers/net/i40e/i40e_rxtx.c\n@@ -72,6 +72,31 @@\n #define I40E_TX_OFFLOAD_NOTSUP_MASK \\\n \t\t(PKT_TX_OFFLOAD_MASK ^ I40E_TX_OFFLOAD_MASK)\n \n+int\n+i40e_get_monitor_addr(void *rx_queue, struct rte_power_monitor_cond *pmc)\n+{\n+\tstruct i40e_rx_queue *rxq = rx_queue;\n+\tvolatile union i40e_rx_desc *rxdp;\n+\tuint16_t desc;\n+\n+\tdesc = rxq->rx_tail;\n+\trxdp = &rxq->rx_ring[desc];\n+\t/* watch for changes in status bit */\n+\tpmc->addr = &rxdp->wb.qword1.status_error_len;\n+\n+\t/*\n+\t * we expect the DD bit to be set to 1 if this descriptor was already\n+\t * written to.\n+\t */\n+\tpmc->val = rte_cpu_to_le_64(1 << I40E_RX_DESC_STATUS_DD_SHIFT);\n+\tpmc->mask = rte_cpu_to_le_64(1 << I40E_RX_DESC_STATUS_DD_SHIFT);\n+\n+\t/* registers are 64-bit */\n+\tpmc->data_sz = sizeof(uint64_t);\n+\n+\treturn 0;\n+}\n+\n static inline void\n i40e_rxd_to_vlan_tci(struct rte_mbuf *mb, volatile union i40e_rx_desc *rxdp)\n {\ndiff --git a/drivers/net/i40e/i40e_rxtx.h b/drivers/net/i40e/i40e_rxtx.h\nindex 57d7b4160b..e1494525ce 100644\n--- a/drivers/net/i40e/i40e_rxtx.h\n+++ b/drivers/net/i40e/i40e_rxtx.h\n@@ -248,6 +248,7 @@ uint16_t i40e_recv_scattered_pkts_vec_avx2(void *rx_queue,\n \tstruct rte_mbuf **rx_pkts, uint16_t nb_pkts);\n uint16_t i40e_xmit_pkts_vec_avx2(void *tx_queue, struct rte_mbuf **tx_pkts,\n \tuint16_t nb_pkts);\n+int i40e_get_monitor_addr(void *rx_queue, struct rte_power_monitor_cond *pmc);\n \n /* For each value it means, datasheet of hardware can tell more details\n *\n", "prefixes": [ "v17", "09/11" ] }{ "id": 86633, "url": "