Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/48831/?format=api
http://patches.dpdk.org/api/patches/48831/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/1544776518-91047-27-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": "<1544776518-91047-27-git-send-email-wenzhuo.lu@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1544776518-91047-27-git-send-email-wenzhuo.lu@intel.com", "date": "2018-12-14T08:35:12", "name": "[v4,26/32] net/ice: support FW version getting", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "1c272bf14f21ab27751142d3457bd8c6d2d17060", "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/1544776518-91047-27-git-send-email-wenzhuo.lu@intel.com/mbox/", "series": [ { "id": 2772, "url": "http://patches.dpdk.org/api/series/2772/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=2772", "date": "2018-12-14T08:34:46", "name": "A new net PMD - ICE", "version": 4, "mbox": "http://patches.dpdk.org/series/2772/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/48831/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/48831/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 3A4BF1B9AC;\n\tFri, 14 Dec 2018 09:31:21 +0100 (CET)", "from mga12.intel.com (mga12.intel.com [192.55.52.136])\n\tby dpdk.org (Postfix) with ESMTP id 8BA051B910\n\tfor <dev@dpdk.org>; Fri, 14 Dec 2018 09:31:05 +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\t14 Dec 2018 00:31:05 -0800", "from dpdk26.sh.intel.com ([10.67.110.164])\n\tby fmsmga006.fm.intel.com with ESMTP; 14 Dec 2018 00:31:04 -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,352,1539673200\"; d=\"scan'208\";a=\"302131776\"", "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, 14 Dec 2018 16:35:12 +0800", "Message-Id": "<1544776518-91047-27-git-send-email-wenzhuo.lu@intel.com>", "X-Mailer": "git-send-email 1.9.3", "In-Reply-To": "<1544776518-91047-1-git-send-email-wenzhuo.lu@intel.com>", "References": "<1542956179-80951-1-git-send-email-wenzhuo.lu@intel.com>\n\t<1544776518-91047-1-git-send-email-wenzhuo.lu@intel.com>", "Subject": "[dpdk-dev] [PATCH v4 26/32] 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 doc/guides/nics/features/ice.ini | 1 +\n drivers/net/ice/ice_ethdev.c | 21 +++++++++++++++++++++\n 2 files changed, 22 insertions(+)", "diff": "diff --git a/doc/guides/nics/features/ice.ini b/doc/guides/nics/features/ice.ini\nindex 2844f4c..4867433 100644\n--- a/doc/guides/nics/features/ice.ini\n+++ b/doc/guides/nics/features/ice.ini\n@@ -19,6 +19,7 @@ RSS reta update = Y\n VLAN filter = Y\n VLAN offload = Y\n QinQ offload = Y\n+FW version = Y\n BSD nic_uio = Y\n Linux UIO = Y\n Linux VFIO = Y\ndiff --git a/drivers/net/ice/ice_ethdev.c b/drivers/net/ice/ice_ethdev.c\nindex 8eb96a0..9638678 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@@ -2478,6 +2481,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": [ "v4", "26/32" ] }{ "id": 48831, "url": "