Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/104941/?format=api
http://patchwork.dpdk.org/api/patches/104941/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20211206121824.3493-14-nipun.gupta@nxp.com/", "project": { "id": 1, "url": "http://patchwork.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": "<20211206121824.3493-14-nipun.gupta@nxp.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20211206121824.3493-14-nipun.gupta@nxp.com", "date": "2021-12-06T12:18:20", "name": "[13/17] net/enetc: add support for VFs", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "1c983219d4737d5a010b7e1a39a411552ee25573", "submitter": { "id": 471, "url": "http://patchwork.dpdk.org/api/people/471/?format=api", "name": "Nipun Gupta", "email": "nipun.gupta@nxp.com" }, "delegate": { "id": 319, "url": "http://patchwork.dpdk.org/api/users/319/?format=api", "username": "fyigit", "first_name": "Ferruh", "last_name": "Yigit", "email": "ferruh.yigit@amd.com" }, "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20211206121824.3493-14-nipun.gupta@nxp.com/mbox/", "series": [ { "id": 20873, "url": "http://patchwork.dpdk.org/api/series/20873/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=20873", "date": "2021-12-06T12:18:07", "name": "features and fixes on NXP eth devices", "version": 1, "mbox": "http://patchwork.dpdk.org/series/20873/mbox/" } ], "comments": "http://patchwork.dpdk.org/api/patches/104941/comments/", "check": "success", "checks": "http://patchwork.dpdk.org/api/patches/104941/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@inbox.dpdk.org", "Delivered-To": "patchwork@inbox.dpdk.org", "Received": [ "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 891E0A034F;\n\tMon, 6 Dec 2021 13:19:54 +0100 (CET)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 3498B4276A;\n\tMon, 6 Dec 2021 13:18:45 +0100 (CET)", "from inva020.nxp.com (inva020.nxp.com [92.121.34.13])\n by mails.dpdk.org (Postfix) with ESMTP id 881D5411DD\n for <dev@dpdk.org>; Mon, 6 Dec 2021 13:18:32 +0100 (CET)", "from inva020.nxp.com (localhost [127.0.0.1])\n by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 699AA1A1320;\n Mon, 6 Dec 2021 13:18:32 +0100 (CET)", "from aprdc01srsp001v.ap-rdc01.nxp.com\n (aprdc01srsp001v.ap-rdc01.nxp.com [165.114.16.16])\n by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 32C9F1A1AE7;\n Mon, 6 Dec 2021 13:18:32 +0100 (CET)", "from lsv03274.swis.in-blr01.nxp.com (lsv03274.swis.in-blr01.nxp.com\n [92.120.147.114])\n by aprdc01srsp001v.ap-rdc01.nxp.com (Postfix) with ESMTP id 9A564183AD0B;\n Mon, 6 Dec 2021 20:18:31 +0800 (+08)" ], "From": "nipun.gupta@nxp.com", "To": "dev@dpdk.org", "Cc": "thomas@monjalon.net, ferruh.yigit@intel.com, hemant.agrawal@nxp.com,\n Gagandeep Singh <g.singh@nxp.com>", "Subject": "[PATCH 13/17] net/enetc: add support for VFs", "Date": "Mon, 6 Dec 2021 17:48:20 +0530", "Message-Id": "<20211206121824.3493-14-nipun.gupta@nxp.com>", "X-Mailer": "git-send-email 2.17.1", "In-Reply-To": "<20211206121824.3493-1-nipun.gupta@nxp.com>", "References": "<20211206121824.3493-1-nipun.gupta@nxp.com>", "X-Virus-Scanned": "ClamAV using ClamSMTP", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <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 <mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org" }, "content": "From: Gagandeep Singh <g.singh@nxp.com>\n\nAdd virtual function support for enetc devices\n\nSigned-off-by: Gagandeep Singh <g.singh@nxp.com>\n---\n drivers/net/enetc/enetc_ethdev.c | 25 ++++++++++++++++++++-----\n 1 file changed, 20 insertions(+), 5 deletions(-)", "diff": "diff --git a/drivers/net/enetc/enetc_ethdev.c b/drivers/net/enetc/enetc_ethdev.c\nindex 7cdb8ce463..1b4337bc48 100644\n--- a/drivers/net/enetc/enetc_ethdev.c\n+++ b/drivers/net/enetc/enetc_ethdev.c\n@@ -19,6 +19,9 @@ enetc_dev_start(struct rte_eth_dev *dev)\n \tuint32_t val;\n \n \tPMD_INIT_FUNC_TRACE();\n+\tif (hw->device_id == ENETC_DEV_ID_VF)\n+\t\treturn 0;\n+\n \tval = enetc_port_rd(enetc_hw, ENETC_PM0_CMD_CFG);\n \tenetc_port_wr(enetc_hw, ENETC_PM0_CMD_CFG,\n \t\t val | ENETC_PM0_TX_EN | ENETC_PM0_RX_EN);\n@@ -55,6 +58,9 @@ enetc_dev_stop(struct rte_eth_dev *dev)\n \n \tPMD_INIT_FUNC_TRACE();\n \tdev->data->dev_started = 0;\n+\tif (hw->device_id == ENETC_DEV_ID_VF)\n+\t\treturn 0;\n+\n \t/* Disable port */\n \tval = enetc_port_rd(enetc_hw, ENETC_PMR);\n \tenetc_port_wr(enetc_hw, ENETC_PMR, val & (~ENETC_PMR_EN));\n@@ -160,11 +166,20 @@ enetc_hardware_init(struct enetc_eth_hw *hw)\n \t/* Enabling Station Interface */\n \tenetc_wr(enetc_hw, ENETC_SIMR, ENETC_SIMR_EN);\n \n-\t*mac = (uint32_t)enetc_port_rd(enetc_hw, ENETC_PSIPMAR0(0));\n-\thigh_mac = (uint32_t)*mac;\n-\tmac++;\n-\t*mac = (uint16_t)enetc_port_rd(enetc_hw, ENETC_PSIPMAR1(0));\n-\tlow_mac = (uint16_t)*mac;\n+\n+\tif (hw->device_id == ENETC_DEV_ID_VF) {\n+\t\t*mac = (uint32_t)enetc_rd(enetc_hw, ENETC_SIPMAR0);\n+\t\thigh_mac = (uint32_t)*mac;\n+\t\tmac++;\n+\t\t*mac = (uint32_t)enetc_rd(enetc_hw, ENETC_SIPMAR1);\n+\t\tlow_mac = (uint16_t)*mac;\n+\t} else {\n+\t\t*mac = (uint32_t)enetc_port_rd(enetc_hw, ENETC_PSIPMAR0(0));\n+\t\thigh_mac = (uint32_t)*mac;\n+\t\tmac++;\n+\t\t*mac = (uint16_t)enetc_port_rd(enetc_hw, ENETC_PSIPMAR1(0));\n+\t\tlow_mac = (uint16_t)*mac;\n+\t}\n \n \tif ((high_mac | low_mac) == 0) {\n \t\tchar *first_byte;\n", "prefixes": [ "13/17" ] }{ "id": 104941, "url": "