Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/30353/?format=api
http://patches.dpdk.org/api/patches/30353/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/1507897338-236951-3-git-send-email-cristian.dumitrescu@intel.com/", "project": { "id": 1, "url": "http://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": "<1507897338-236951-3-git-send-email-cristian.dumitrescu@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1507897338-236951-3-git-send-email-cristian.dumitrescu@intel.com", "date": "2017-10-13T12:22:15", "name": "[dpdk-dev,V4,2/5] ethdev: add new eth_dev_ops function for mtr ops get", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "a7abe76e839e5e15b079d0c54271cd72c596a4b5", "submitter": { "id": 19, "url": "http://patches.dpdk.org/api/people/19/?format=api", "name": "Cristian Dumitrescu", "email": "cristian.dumitrescu@intel.com" }, "delegate": null, "mbox": "http://patches.dpdk.org/project/dpdk/patch/1507897338-236951-3-git-send-email-cristian.dumitrescu@intel.com/mbox/", "series": [], "comments": "http://patches.dpdk.org/api/patches/30353/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/30353/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@dpdk.org", "Delivered-To": "patchwork@dpdk.org", "Received": [ "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id C6ED91B68E;\n\tFri, 13 Oct 2017 14:22:39 +0200 (CEST)", "from mga04.intel.com (mga04.intel.com [192.55.52.120])\n\tby dpdk.org (Postfix) with ESMTP id B6A6F1B626\n\tfor <dev@dpdk.org>; Fri, 13 Oct 2017 14:22:32 +0200 (CEST)", "from fmsmga005.fm.intel.com ([10.253.24.32])\n\tby fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t13 Oct 2017 05:22:24 -0700", "from silpixa00382658.ir.intel.com ([10.237.223.29])\n\tby fmsmga005.fm.intel.com with ESMTP; 13 Oct 2017 05:22:22 -0700" ], "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.43,371,1503385200\"; d=\"scan'208\";a=\"162293032\"", "From": "Cristian Dumitrescu <cristian.dumitrescu@intel.com>", "To": "dev@dpdk.org", "Cc": "thomas@monjalon.net, adrien.mazarguil@6wind.com, jingjing.wu@intel.com, \n\tjohn.mcnamara@intel.com, hemant.agrawal@nxp.com,\n\tjerin.jacob@caviumnetworks.com, jasvinder.singh@intel.com", "Date": "Fri, 13 Oct 2017 13:22:15 +0100", "Message-Id": "<1507897338-236951-3-git-send-email-cristian.dumitrescu@intel.com>", "X-Mailer": "git-send-email 2.7.4", "In-Reply-To": "<1507897338-236951-1-git-send-email-cristian.dumitrescu@intel.com>", "References": "<1507301136-131382-2-git-send-email-cristian.dumitrescu@intel.com>\n\t<1507897338-236951-1-git-send-email-cristian.dumitrescu@intel.com>", "Subject": "[dpdk-dev] [PATCH V4 2/5] ethdev: add new eth_dev_ops function for\n\tmtr ops get", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://dpdk.org/ml/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "Following similar approach as rte_flow and rte_tm for modularity reasons,\nthe ops for the new rte_mtr API are retrieved through a new eth_dev_ops\nfunction.\n\nSigned-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>\n---\nChanges in v4:\n- None\n\nChanges in v3:\n- None\n\nChanges in v2:\n-None\n\nChanges in v1 (from RFC [1]):\n- Removed ethdev API function to get the MTR ops, as it is not needed\n (input from Thomas)\n\n[1] RFC: http://www.dpdk.org/ml/archives/dev/2017-May/066888.html\n\n lib/librte_ether/rte_ethdev.h | 7 +++++++\n 1 file changed, 7 insertions(+)", "diff": "diff --git a/lib/librte_ether/rte_ethdev.h b/lib/librte_ether/rte_ethdev.h\nindex aaf02b3..b773589 100644\n--- a/lib/librte_ether/rte_ethdev.h\n+++ b/lib/librte_ether/rte_ethdev.h\n@@ -1499,6 +1499,9 @@ typedef int (*eth_filter_ctrl_t)(struct rte_eth_dev *dev,\n typedef int (*eth_tm_ops_get_t)(struct rte_eth_dev *dev, void *ops);\n /**< @internal Get Traffic Management (TM) operations on an Ethernet device */\n \n+typedef int (*eth_mtr_ops_get_t)(struct rte_eth_dev *dev, void *ops);\n+/**< @internal Get Trafffic Metering and Policing (MTR) operations */\n+\n typedef int (*eth_get_dcb_info)(struct rte_eth_dev *dev,\n \t\t\t\t struct rte_eth_dcb_info *dcb_info);\n /**< @internal Get dcb information on an Ethernet device */\n@@ -1627,6 +1630,10 @@ struct eth_dev_ops {\n \n \teth_tm_ops_get_t tm_ops_get;\n \t/**< Get Traffic Management (TM) operations. */\n+\n+\teth_mtr_ops_get_t mtr_ops_get;\n+\t/**< Get Traffic Metering and Policing (MTR) operations. */\n+\n \teth_pool_ops_supported_t pool_ops_supported;\n \t/**< Test if a port supports specific mempool ops */\n };\n", "prefixes": [ "dpdk-dev", "V4", "2/5" ] }{ "id": 30353, "url": "