Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/8178/?format=api
https://patches.dpdk.org/api/patches/8178/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/1446110173-13330-4-git-send-email-jing.d.chen@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": "<1446110173-13330-4-git-send-email-jing.d.chen@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1446110173-13330-4-git-send-email-jing.d.chen@intel.com", "date": "2015-10-29T09:16:00", "name": "[dpdk-dev,v4,03/16] fm10k: Add a new func to initialize all parameters", "commit_ref": null, "pull_url": null, "state": "changes-requested", "archived": true, "hash": "71d12b61441057668dfb56f4a81005eecdf18f55", "submitter": { "id": 40, "url": "https://patches.dpdk.org/api/people/40/?format=api", "name": "Chen, Jing D", "email": "jing.d.chen@intel.com" }, "delegate": null, "mbox": "https://patches.dpdk.org/project/dpdk/patch/1446110173-13330-4-git-send-email-jing.d.chen@intel.com/mbox/", "series": [], "comments": "https://patches.dpdk.org/api/patches/8178/comments/", "check": "pending", "checks": "https://patches.dpdk.org/api/patches/8178/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 8F47C8E71;\n\tThu, 29 Oct 2015 10:16:30 +0100 (CET)", "from mga01.intel.com (mga01.intel.com [192.55.52.88])\n\tby dpdk.org (Postfix) with ESMTP id EED148E64\n\tfor <dev@dpdk.org>; Thu, 29 Oct 2015 10:16:27 +0100 (CET)", "from fmsmga001.fm.intel.com ([10.253.24.23])\n\tby fmsmga101.fm.intel.com with ESMTP; 29 Oct 2015 02:16:27 -0700", "from shvmail01.sh.intel.com ([10.239.29.42])\n\tby fmsmga001.fm.intel.com with ESMTP; 29 Oct 2015 02:16:26 -0700", "from shecgisg004.sh.intel.com (shecgisg004.sh.intel.com\n\t[10.239.29.89])\n\tby shvmail01.sh.intel.com with ESMTP id t9T9GOKN029352;\n\tThu, 29 Oct 2015 17:16:24 +0800", "from shecgisg004.sh.intel.com (localhost [127.0.0.1])\n\tby shecgisg004.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP\n\tid t9T9GMSV013390; Thu, 29 Oct 2015 17:16:24 +0800", "(from jingche2@localhost)\n\tby shecgisg004.sh.intel.com (8.13.6/8.13.6/Submit) id t9T9GM9o013386; \n\tThu, 29 Oct 2015 17:16:22 +0800" ], "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.20,213,1444719600\"; d=\"scan'208\";a=\"822138641\"", "From": "\"Chen Jing D(Mark)\" <jing.d.chen@intel.com>", "To": "dev@dpdk.org", "Date": "Thu, 29 Oct 2015 17:16:00 +0800", "Message-Id": "<1446110173-13330-4-git-send-email-jing.d.chen@intel.com>", "X-Mailer": "git-send-email 1.7.12.2", "In-Reply-To": "<1446110173-13330-1-git-send-email-jing.d.chen@intel.com>", "References": "<1445939209-12783-2-git-send-email-jing.d.chen@intel.com>\n\t<1446110173-13330-1-git-send-email-jing.d.chen@intel.com>", "Subject": "[dpdk-dev] [PATCH v4 03/16] fm10k: Add a new func to initialize all\n\tparameters", "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": "From: \"Chen Jing D(Mark)\" <jing.d.chen@intel.com>\n\nAdd new function fm10k_params_init to initialize all fm10k related\nvariables.\n\nSigned-off-by: Chen Jing D(Mark) <jing.d.chen@intel.com>\n---\n drivers/net/fm10k/fm10k_ethdev.c | 35 +++++++++++++++++++++++------------\n 1 files changed, 23 insertions(+), 12 deletions(-)", "diff": "diff --git a/drivers/net/fm10k/fm10k_ethdev.c b/drivers/net/fm10k/fm10k_ethdev.c\nindex 3c7784e..363ef98 100644\n--- a/drivers/net/fm10k/fm10k_ethdev.c\n+++ b/drivers/net/fm10k/fm10k_ethdev.c\n@@ -2066,6 +2066,27 @@ static const struct eth_dev_ops fm10k_eth_dev_ops = {\n \t.rss_hash_conf_get\t= fm10k_rss_hash_conf_get,\n };\n \n+static void\n+fm10k_params_init(struct rte_eth_dev *dev)\n+{\n+\tstruct fm10k_hw *hw = FM10K_DEV_PRIVATE_TO_HW(dev->data->dev_private);\n+\tstruct fm10k_dev_info *info = FM10K_DEV_PRIVATE_TO_INFO(dev);\n+\n+\t/* Inialize bus info. Normally we would call fm10k_get_bus_info(), but\n+\t * there is no way to get link status without reading BAR4. Until this\n+\t * works, assume we have maximum bandwidth.\n+\t * @todo - fix bus info\n+\t */\n+\thw->bus_caps.speed = fm10k_bus_speed_8000;\n+\thw->bus_caps.width = fm10k_bus_width_pcie_x8;\n+\thw->bus_caps.payload = fm10k_bus_payload_512;\n+\thw->bus.speed = fm10k_bus_speed_8000;\n+\thw->bus.width = fm10k_bus_width_pcie_x8;\n+\thw->bus.payload = fm10k_bus_payload_256;\n+\n+\tinfo->rx_vec_allowed = true;\n+}\n+\n static int\n eth_fm10k_dev_init(struct rte_eth_dev *dev)\n {\n@@ -2112,18 +2133,8 @@ eth_fm10k_dev_init(struct rte_eth_dev *dev)\n \t\treturn -EIO;\n \t}\n \n-\t/*\n-\t * Inialize bus info. Normally we would call fm10k_get_bus_info(), but\n-\t * there is no way to get link status without reading BAR4. Until this\n-\t * works, assume we have maximum bandwidth.\n-\t * @todo - fix bus info\n-\t */\n-\thw->bus_caps.speed = fm10k_bus_speed_8000;\n-\thw->bus_caps.width = fm10k_bus_width_pcie_x8;\n-\thw->bus_caps.payload = fm10k_bus_payload_512;\n-\thw->bus.speed = fm10k_bus_speed_8000;\n-\thw->bus.width = fm10k_bus_width_pcie_x8;\n-\thw->bus.payload = fm10k_bus_payload_256;\n+\t/* Initialize parameters */\n+\tfm10k_params_init(dev);\n \n \t/* Initialize the hw */\n \tdiag = fm10k_init_hw(hw);\n", "prefixes": [ "dpdk-dev", "v4", "03/16" ] }{ "id": 8178, "url": "