Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/48296/?format=api
http://patches.dpdk.org/api/patches/48296/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/1542956179-80951-13-git-send-email-wenzhuo.lu@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": "<1542956179-80951-13-git-send-email-wenzhuo.lu@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1542956179-80951-13-git-send-email-wenzhuo.lu@intel.com", "date": "2018-11-23T06:56:12", "name": "[12/19] net/ice: support FW version getting", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "72cae3a4d60c3dfb99879855016534b2c257e981", "submitter": { "id": 258, "url": "http://patches.dpdk.org/api/people/258/?format=api", "name": "Wenzhuo Lu", "email": "wenzhuo.lu@intel.com" }, "delegate": { "id": 1540, "url": "http://patches.dpdk.org/api/users/1540/?format=api", "username": "qzhan15", "first_name": "Qi", "last_name": "Zhang", "email": "qi.z.zhang@intel.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/1542956179-80951-13-git-send-email-wenzhuo.lu@intel.com/mbox/", "series": [ { "id": 2547, "url": "http://patches.dpdk.org/api/series/2547/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=2547", "date": "2018-11-23T06:56:00", "name": "A new net PMD - ice", "version": 1, "mbox": "http://patches.dpdk.org/series/2547/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/48296/comments/", "check": "fail", "checks": "http://patches.dpdk.org/api/patches/48296/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 23FF71B53E;\n\tFri, 23 Nov 2018 07:52:13 +0100 (CET)", "from mga12.intel.com (mga12.intel.com [192.55.52.136])\n\tby dpdk.org (Postfix) with ESMTP id 9A5951B4FD\n\tfor <dev@dpdk.org>; Fri, 23 Nov 2018 07:51:59 +0100 (CET)", "from fmsmga006.fm.intel.com ([10.253.24.20])\n\tby fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t22 Nov 2018 22:51:59 -0800", "from dpdk26.sh.intel.com ([10.67.110.161])\n\tby fmsmga006.fm.intel.com with ESMTP; 22 Nov 2018 22:51:58 -0800" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.56,268,1539673200\"; d=\"scan'208\";a=\"283483488\"", "From": "Wenzhuo Lu <wenzhuo.lu@intel.com>", "To": "dev@dpdk.org", "Cc": "Wenzhuo Lu <wenzhuo.lu@intel.com>, Qiming Yang <qiming.yang@intel.com>, \n\tXiaoyun Li <xiaoyun.li@intel.com>, Jingjing Wu <jingjing.wu@intel.com>", "Date": "Fri, 23 Nov 2018 14:56:12 +0800", "Message-Id": "<1542956179-80951-13-git-send-email-wenzhuo.lu@intel.com>", "X-Mailer": "git-send-email 1.9.3", "In-Reply-To": "<1542956179-80951-1-git-send-email-wenzhuo.lu@intel.com>", "References": "<1542956179-80951-1-git-send-email-wenzhuo.lu@intel.com>", "Subject": "[dpdk-dev] [PATCH 12/19] net/ice: support FW version getting", "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\t<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\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "Add ops fw_version_get.\n\nSigned-off-by: Wenzhuo Lu <wenzhuo.lu@intel.com>\nSigned-off-by: Qiming Yang <qiming.yang@intel.com>\nSigned-off-by: Xiaoyun Li <xiaoyun.li@intel.com>\nSigned-off-by: Jingjing Wu <jingjing.wu@intel.com>\n---\n drivers/net/ice/ice_ethdev.c | 21 +++++++++++++++++++++\n 1 file changed, 21 insertions(+)", "diff": "diff --git a/drivers/net/ice/ice_ethdev.c b/drivers/net/ice/ice_ethdev.c\nindex 8d41516..2d5e73d 100644\n--- a/drivers/net/ice/ice_ethdev.c\n+++ b/drivers/net/ice/ice_ethdev.c\n@@ -52,6 +52,8 @@ static int ice_rx_queue_intr_enable(struct rte_eth_dev *dev,\n \t\t\t\t uint16_t queue_id);\n static int ice_rx_queue_intr_disable(struct rte_eth_dev *dev,\n \t\t\t\t uint16_t queue_id);\n+static int ice_fw_version_get(struct rte_eth_dev *dev, char *fw_version,\n+\t\t\t size_t fw_size);\n static int ice_vlan_pvid_set(struct rte_eth_dev *dev,\n \t\t\t uint16_t pvid, int on);\n \n@@ -92,6 +94,7 @@ static int ice_vlan_pvid_set(struct rte_eth_dev *dev,\n \t.rss_hash_conf_get = ice_rss_hash_conf_get,\n \t.rx_queue_intr_enable = ice_rx_queue_intr_enable,\n \t.rx_queue_intr_disable = ice_rx_queue_intr_disable,\n+\t.fw_version_get = ice_fw_version_get,\n \t.vlan_pvid_set = ice_vlan_pvid_set,\n };\n \n@@ -2557,6 +2560,24 @@ static int ice_rx_queue_intr_disable(struct rte_eth_dev *dev,\n }\n \n static int\n+ice_fw_version_get(struct rte_eth_dev *dev, char *fw_version, size_t fw_size)\n+{\n+\tstruct ice_hw *hw = ICE_DEV_PRIVATE_TO_HW(dev->data->dev_private);\n+\tint ret;\n+\n+\tret = snprintf(fw_version, fw_size, \"%d.%d.%05d %d.%d\",\n+\t\t hw->fw_maj_ver, hw->fw_min_ver, hw->fw_build,\n+\t\t hw->api_maj_ver, hw->api_min_ver);\n+\n+\t/* add the size of '\\0' */\n+\tret += 1;\n+\tif (fw_size < (u32)ret)\n+\t\treturn ret;\n+\telse\n+\t\treturn 0;\n+}\n+\n+static int\n ice_vsi_vlan_pvid_set(struct ice_vsi *vsi, struct ice_vsi_vlan_pvid_info *info)\n {\n \tstruct ice_hw *hw;\n", "prefixes": [ "12/19" ] }{ "id": 48296, "url": "