Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/17062/?format=api
http://patches.dpdk.org/api/patches/17062/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/1479375779-46629-2-git-send-email-qiming.yang@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": "<1479375779-46629-2-git-send-email-qiming.yang@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1479375779-46629-2-git-send-email-qiming.yang@intel.com", "date": "2016-11-17T09:42:52", "name": "[dpdk-dev,1/5] ethdev: add firmware version get", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "7fa625f77e6b2400b2e5e520adcd2f23cf6e4bc2", "submitter": { "id": 522, "url": "http://patches.dpdk.org/api/people/522/?format=api", "name": "Qiming Yang", "email": "qiming.yang@intel.com" }, "delegate": { "id": 1, "url": "http://patches.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/1479375779-46629-2-git-send-email-qiming.yang@intel.com/mbox/", "series": [], "comments": "http://patches.dpdk.org/api/patches/17062/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/17062/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 [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id 771C05699;\n\tThu, 17 Nov 2016 10:47:19 +0100 (CET)", "from mga03.intel.com (mga03.intel.com [134.134.136.65])\n\tby dpdk.org (Postfix) with ESMTP id 41D3A5598\n\tfor <dev@dpdk.org>; Thu, 17 Nov 2016 10:46:48 +0100 (CET)", "from orsmga001.jf.intel.com ([10.7.209.18])\n\tby orsmga103.jf.intel.com with ESMTP; 17 Nov 2016 01:46:48 -0800", "from unknown (HELO dpdk7.bj.intel.com) ([172.16.182.76])\n\tby orsmga001.jf.intel.com with ESMTP; 17 Nov 2016 01:46:47 -0800" ], "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos; i=\"5.31,653,1473145200\"; d=\"scan'208\";\n\ta=\"1060591453\"", "From": "Qiming Yang <qiming.yang@intel.com>", "To": "dev@dpdk.org", "Cc": "remy.horton@intel.com, jingjing.wu@intel.com, jing.d.chen@intel.com,\n\tQiming Yang <qiming.yang@intel.com>", "Date": "Thu, 17 Nov 2016 17:42:52 +0800", "Message-Id": "<1479375779-46629-2-git-send-email-qiming.yang@intel.com>", "X-Mailer": "git-send-email 2.7.4", "In-Reply-To": "<1479375779-46629-1-git-send-email-qiming.yang@intel.com>", "References": "<1479375779-46629-1-git-send-email-qiming.yang@intel.com>", "Subject": "[dpdk-dev] [PATCH 1/5] ethdev: add firmware version get", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "patches and discussions about DPDK <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": "This patch added API for 'rte_eth_dev_fwver_get'\n\nvoid rte_eth_dev_fwver_get(uint8_t port_id,\nchar *fw_version, int fw_length);\n\nSigned-off-by: Qiming Yang <qiming.yang@intel.com>\n---\n lib/librte_ether/rte_ethdev.c | 12 ++++++++++++\n lib/librte_ether/rte_ethdev.h | 18 ++++++++++++++++++\n lib/librte_ether/rte_ether_version.map | 7 +++++++\n 3 files changed, 37 insertions(+)", "diff": "diff --git a/lib/librte_ether/rte_ethdev.c b/lib/librte_ether/rte_ethdev.c\nindex fde8112..793e50f 100644\n--- a/lib/librte_ether/rte_ethdev.c\n+++ b/lib/librte_ether/rte_ethdev.c\n@@ -1538,6 +1538,18 @@ rte_eth_dev_set_rx_queue_stats_mapping(uint8_t port_id, uint16_t rx_queue_id,\n }\n \n void\n+rte_eth_dev_fwver_get(uint8_t port_id, char *fw_version, int fw_length)\n+{\n+\tstruct rte_eth_dev *dev;\n+\n+\tRTE_ETH_VALID_PORTID_OR_RET(port_id);\n+\tdev = &rte_eth_devices[port_id];\n+\n+\tRTE_FUNC_PTR_OR_RET(*dev->dev_ops->fw_version_get);\n+\t(*dev->dev_ops->fw_version_get)(dev, fw_version, fw_length);\n+}\n+\n+void\n rte_eth_dev_info_get(uint8_t port_id, struct rte_eth_dev_info *dev_info)\n {\n \tstruct rte_eth_dev *dev;\ndiff --git a/lib/librte_ether/rte_ethdev.h b/lib/librte_ether/rte_ethdev.h\nindex 9678179..cf54f1b 100644\n--- a/lib/librte_ether/rte_ethdev.h\n+++ b/lib/librte_ether/rte_ethdev.h\n@@ -1150,6 +1150,10 @@ typedef uint32_t (*eth_rx_queue_count_t)(struct rte_eth_dev *dev,\n typedef int (*eth_rx_descriptor_done_t)(void *rxq, uint16_t offset);\n /**< @internal Check DD bit of specific RX descriptor */\n \n+typedef void (*eth_fw_version_get_t)(struct rte_eth_dev *dev,\n+\t\t\t\t char *fw_version, int fw_length);\n+/**< @internal Get firmware information of an Ethernet device. */\n+\n typedef void (*eth_rxq_info_get_t)(struct rte_eth_dev *dev,\n \tuint16_t rx_queue_id, struct rte_eth_rxq_info *qinfo);\n \n@@ -1444,6 +1448,7 @@ struct eth_dev_ops {\n \t/**< Get names of extended statistics. */\n \teth_queue_stats_mapping_set_t queue_stats_mapping_set;\n \t/**< Configure per queue stat counter mapping. */\n+\teth_fw_version_get_t fw_version_get; /**< Get firmware version. */\n \teth_dev_infos_get_t dev_infos_get; /**< Get device info. */\n \teth_dev_supported_ptypes_get_t dev_supported_ptypes_get;\n \t/**< Get packet types supported and identified by device*/\n@@ -2385,6 +2390,19 @@ void rte_eth_macaddr_get(uint8_t port_id, struct ether_addr *mac_addr);\n void rte_eth_dev_info_get(uint8_t port_id, struct rte_eth_dev_info *dev_info);\n \n /**\n+ * Retrieve the firmware version of an Ethernet device.\n+ *\n+ * @param port_id\n+ * The port identifier of the Ethernet device.\n+ * @param fw_version\n+ * A pointer the firmware version of an Ethernet device\n+ * @param fw_length\n+ * The size of the firmware version, which should be large enough to store\n+ * the firmware version of the device.\n+ */\n+void rte_eth_dev_fwver_get(uint8_t port_id, char *fw_version, int fw_length);\n+\n+/**\n * Retrieve the supported packet types of an Ethernet device.\n *\n * When a packet type is announced as supported, it *must* be recognized by\ndiff --git a/lib/librte_ether/rte_ether_version.map b/lib/librte_ether/rte_ether_version.map\nindex 72be66d..5e6387f 100644\n--- a/lib/librte_ether/rte_ether_version.map\n+++ b/lib/librte_ether/rte_ether_version.map\n@@ -147,3 +147,10 @@ DPDK_16.11 {\n \trte_eth_dev_pci_remove;\n \n } DPDK_16.07;\n+\n+DPDK_17.02 {\n+\tglobal:\n+\n+\trte_eth_dev_fwver_get;\n+\n+} DPDK_16.11;\n", "prefixes": [ "dpdk-dev", "1/5" ] }{ "id": 17062, "url": "