Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/75421/?format=api
https://patches.dpdk.org/api/patches/75421/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/1597141666-20621-3-git-send-email-liang.j.ma@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": "<1597141666-20621-3-git-send-email-liang.j.ma@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1597141666-20621-3-git-send-email-liang.j.ma@intel.com", "date": "2020-08-11T10:27:44", "name": "[RFC,v2,3/5] net/ixgbe: implement power management API", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "a4c2f3623d5d2f3782f58d7e8c703743bbef99db", "submitter": { "id": 904, "url": "https://patches.dpdk.org/api/people/904/?format=api", "name": "Liang, Ma", "email": "liang.j.ma@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/1597141666-20621-3-git-send-email-liang.j.ma@intel.com/mbox/", "series": [ { "id": 11598, "url": "https://patches.dpdk.org/api/series/11598/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=11598", "date": "2020-08-11T10:27:42", "name": "[RFC,v2,1/5] eal: add power management intrinsics", "version": 2, "mbox": "https://patches.dpdk.org/series/11598/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/75421/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/75421/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 14AD3A04C3;\n\tTue, 11 Aug 2020 12:28:22 +0200 (CEST)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 0B4DF1C0B1;\n\tTue, 11 Aug 2020 12:28:03 +0200 (CEST)", "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n by dpdk.org (Postfix) with ESMTP id 83F581C025\n for <dev@dpdk.org>; Tue, 11 Aug 2020 12:28:00 +0200 (CEST)", "from orsmga008.jf.intel.com ([10.7.209.65])\n by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 11 Aug 2020 03:28:00 -0700", "from irvmail001.ir.intel.com ([163.33.26.43])\n by orsmga008.jf.intel.com with ESMTP; 11 Aug 2020 03:27:58 -0700", "from sivswdev09.ir.intel.com (sivswdev09.ir.intel.com\n [10.237.217.48])\n by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id\n 07BARwwx012809; Tue, 11 Aug 2020 11:27:58 +0100", "from sivswdev09.ir.intel.com (localhost [127.0.0.1])\n by sivswdev09.ir.intel.com with ESMTP id 07BARw99020785;\n Tue, 11 Aug 2020 11:27:58 +0100", "(from lma25@localhost)\n by sivswdev09.ir.intel.com with LOCAL id 07BARwCx020781;\n Tue, 11 Aug 2020 11:27:58 +0100" ], "IronPort-SDR": [ "\n 0IPtwbv1sL/D5UyB0sZF8xOWVAO3iWb7jUiLGFk/t0IeXFJpVeySr5EnEEeU2tYTOiiNnZODD6\n TVgxNn1K8o3g==", "\n AeCufWQIT1O9M4cWBsL6caiK8ZZ4/GlI8uxWC+AYxKjKFQUFeV91rR3QvuGkuW9SvbZ9f/dFB6\n W2oEgEizFIRw==" ], "X-IronPort-AV": [ "E=McAfee;i=\"6000,8403,9709\"; a=\"154825045\"", "E=Sophos;i=\"5.75,460,1589266800\"; d=\"scan'208\";a=\"154825045\"", "E=Sophos;i=\"5.75,460,1589266800\"; d=\"scan'208\";a=\"324723619\"" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "From": "Liang Ma <liang.j.ma@intel.com>", "To": "dev@dpdk.org", "Cc": "anatoly.burakov@intel.com, Liang Ma <liang.j.ma@intel.com>", "Date": "Tue, 11 Aug 2020 11:27:44 +0100", "Message-Id": "<1597141666-20621-3-git-send-email-liang.j.ma@intel.com>", "X-Mailer": "git-send-email 1.7.7.4", "In-Reply-To": "<1597141666-20621-1-git-send-email-liang.j.ma@intel.com>", "References": "<cover.1590598121.git.anatoly.burakov@intel.com>\n <1597141666-20621-1-git-send-email-liang.j.ma@intel.com>", "Subject": "[dpdk-dev] [RFC v2 3/5] net/ixgbe: implement power management API", "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": "Implement support for the power management API by implementing a\n`next_rx_desc` function that will return an address of an RX ring's\nstatus bit.\n\nSigned-off-by: Anatoly Burakov <anatoly.burakov@intel.com>\nSigned-off-by: Liang Ma <liang.j.ma@intel.com>\n---\n drivers/net/ixgbe/ixgbe_ethdev.c | 1 +\n drivers/net/ixgbe/ixgbe_rxtx.c | 22 ++++++++++++++++++++++\n drivers/net/ixgbe/ixgbe_rxtx.h | 2 ++\n 3 files changed, 25 insertions(+)", "diff": "diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c\nindex fd0cb9b0e..618fc1573 100644\n--- a/drivers/net/ixgbe/ixgbe_ethdev.c\n+++ b/drivers/net/ixgbe/ixgbe_ethdev.c\n@@ -592,6 +592,7 @@ static const struct eth_dev_ops ixgbe_eth_dev_ops = {\n \t.udp_tunnel_port_del = ixgbe_dev_udp_tunnel_port_del,\n \t.tm_ops_get = ixgbe_tm_ops_get,\n \t.tx_done_cleanup = ixgbe_dev_tx_done_cleanup,\n+\t.next_rx_desc = ixgbe_next_rx_desc,\n };\n \n /*\ndiff --git a/drivers/net/ixgbe/ixgbe_rxtx.c b/drivers/net/ixgbe/ixgbe_rxtx.c\nindex 977ecf513..d1d015dea 100644\n--- a/drivers/net/ixgbe/ixgbe_rxtx.c\n+++ b/drivers/net/ixgbe/ixgbe_rxtx.c\n@@ -1366,6 +1366,28 @@ const uint32_t\n \t\tRTE_PTYPE_INNER_L3_IPV4_EXT | RTE_PTYPE_INNER_L4_UDP,\n };\n \n+int ixgbe_next_rx_desc(void *rx_queue, volatile void **tail_desc_addr,\n+\t\tuint64_t *expected, uint64_t *mask)\n+{\n+\tvolatile union ixgbe_adv_rx_desc *rxdp;\n+\tstruct ixgbe_rx_queue *rxq = rx_queue;\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+\t*tail_desc_addr = &rxdp->wb.upper.status_error;\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+\t*expected = rte_cpu_to_le_32(IXGBE_RXDADV_STAT_DD);\n+\t*mask = rte_cpu_to_le_32(IXGBE_RXDADV_STAT_DD);\n+\n+\treturn 0;\n+}\n+\n /* @note: fix ixgbe_dev_supported_ptypes_get() if any change here. */\n static inline uint32_t\n ixgbe_rxd_pkt_info_to_pkt_type(uint32_t pkt_info, uint16_t ptype_mask)\ndiff --git a/drivers/net/ixgbe/ixgbe_rxtx.h b/drivers/net/ixgbe/ixgbe_rxtx.h\nindex 7e09291b2..826f451be 100644\n--- a/drivers/net/ixgbe/ixgbe_rxtx.h\n+++ b/drivers/net/ixgbe/ixgbe_rxtx.h\n@@ -299,5 +299,7 @@ uint64_t ixgbe_get_tx_port_offloads(struct rte_eth_dev *dev);\n uint64_t ixgbe_get_rx_queue_offloads(struct rte_eth_dev *dev);\n uint64_t ixgbe_get_rx_port_offloads(struct rte_eth_dev *dev);\n uint64_t ixgbe_get_tx_queue_offloads(struct rte_eth_dev *dev);\n+int ixgbe_next_rx_desc(void *rx_queue, volatile void **tail_desc_addr,\n+\t\tuint64_t *expected, uint64_t *mask);\n \n #endif /* _IXGBE_RXTX_H_ */\n", "prefixes": [ "RFC", "v2", "3/5" ] }{ "id": 75421, "url": "