Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/123740/?format=api
http://patches.dpdk.org/api/patches/123740/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20230213021956.2953088-5-mingxia.liu@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": "<20230213021956.2953088-5-mingxia.liu@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20230213021956.2953088-5-mingxia.liu@intel.com", "date": "2023-02-13T02:19:39", "name": "[v6,04/21] net/cpfl: support device start and stop", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "f54ae3d4c2cb077bf60c7a6a79536ea4ed8208fb", "submitter": { "id": 2514, "url": "http://patches.dpdk.org/api/people/2514/?format=api", "name": "Liu, Mingxia", "email": "mingxia.liu@intel.com" }, "delegate": { "id": 319, "url": "http://patches.dpdk.org/api/users/319/?format=api", "username": "fyigit", "first_name": "Ferruh", "last_name": "Yigit", "email": "ferruh.yigit@amd.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20230213021956.2953088-5-mingxia.liu@intel.com/mbox/", "series": [ { "id": 26969, "url": "http://patches.dpdk.org/api/series/26969/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=26969", "date": "2023-02-13T02:19:35", "name": "add support for cpfl PMD in DPDK", "version": 6, "mbox": "http://patches.dpdk.org/series/26969/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/123740/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/123740/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 F265641C7F;\n\tMon, 13 Feb 2023 04:17:54 +0100 (CET)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 1927542D38;\n\tMon, 13 Feb 2023 04:17:33 +0100 (CET)", "from mga11.intel.com (mga11.intel.com [192.55.52.93])\n by mails.dpdk.org (Postfix) with ESMTP id 33CE942C76\n for <dev@dpdk.org>; Mon, 13 Feb 2023 04:17:28 +0100 (CET)", "from fmsmga002.fm.intel.com ([10.253.24.26])\n by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 12 Feb 2023 19:17:27 -0800", "from dpdk-mingxial-01.sh.intel.com ([10.67.119.167])\n by fmsmga002.fm.intel.com with ESMTP; 12 Feb 2023 19:17:26 -0800" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1676258248; x=1707794248;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=E0KQJecbykKQULX6yAvZFrbi/MkGI+Z3oSVBFnxmfEQ=;\n b=eik0VGIn1cWx9uUwTUeU6jN0X1Sppomsr+lepU4aX9iFxNujlGeNPQIJ\n NJ0buEafmr/kr22mxNwprwGdYoNEILaCWnOj3uKDWWz+ozBXun3zKrHnl\n MlIqzRC4Uyz652MNHRgLlfRIrkI3M0APjWfkb0B9Dfs223ew1wKfPtgCC\n w8AJY7JspQaEf5yTItWkDBPdObOeCvYjfqXVzAACu2Puz9uTKnhv2LgOd\n tA32x1hNqG9VrmMl/FP6ahDprxHjgqKTUrjJvHAhCA/NN0T/2Hu+pTyNN\n vmDTceKoZ5Hn2N4oNATnqjC0iU2oNSgvuLeVk5p/o7a80pGZQ1E+i+fLU Q==;", "X-IronPort-AV": [ "E=McAfee;i=\"6500,9779,10619\"; a=\"328504016\"", "E=Sophos;i=\"5.97,291,1669104000\"; d=\"scan'208\";a=\"328504016\"", "E=McAfee;i=\"6500,9779,10619\"; a=\"777657896\"", "E=Sophos;i=\"5.97,291,1669104000\"; d=\"scan'208\";a=\"777657896\"" ], "X-ExtLoop1": "1", "From": "Mingxia Liu <mingxia.liu@intel.com>", "To": "dev@dpdk.org,\n\tbeilei.xing@intel.com,\n\tyuying.zhang@intel.com", "Cc": "Mingxia Liu <mingxia.liu@intel.com>", "Subject": "[PATCH v6 04/21] net/cpfl: support device start and stop", "Date": "Mon, 13 Feb 2023 02:19:39 +0000", "Message-Id": "<20230213021956.2953088-5-mingxia.liu@intel.com>", "X-Mailer": "git-send-email 2.25.1", "In-Reply-To": "<20230213021956.2953088-1-mingxia.liu@intel.com>", "References": "<20230209084541.2712723-1-mingxia.liu@intel.com>\n <20230213021956.2953088-1-mingxia.liu@intel.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "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": "Add dev ops dev_start, dev_stop and link_update.\n\nSigned-off-by: Mingxia Liu <mingxia.liu@intel.com>\n---\n drivers/net/cpfl/cpfl_ethdev.c | 35 ++++++++++++++++++++++++++++++++++\n 1 file changed, 35 insertions(+)", "diff": "diff --git a/drivers/net/cpfl/cpfl_ethdev.c b/drivers/net/cpfl/cpfl_ethdev.c\nindex 3029f03d02..d1dfcfff9b 100644\n--- a/drivers/net/cpfl/cpfl_ethdev.c\n+++ b/drivers/net/cpfl/cpfl_ethdev.c\n@@ -184,12 +184,45 @@ cpfl_dev_configure(struct rte_eth_dev *dev)\n \treturn 0;\n }\n \n+static int\n+cpfl_dev_start(struct rte_eth_dev *dev)\n+{\n+\tstruct idpf_vport *vport = dev->data->dev_private;\n+\tint ret;\n+\n+\tret = idpf_vc_vport_ena_dis(vport, true);\n+\tif (ret != 0) {\n+\t\tPMD_DRV_LOG(ERR, \"Failed to enable vport\");\n+\t\treturn ret;\n+\t}\n+\n+\tvport->stopped = 0;\n+\n+\treturn 0;\n+}\n+\n+static int\n+cpfl_dev_stop(struct rte_eth_dev *dev)\n+{\n+\tstruct idpf_vport *vport = dev->data->dev_private;\n+\n+\tif (vport->stopped == 1)\n+\t\treturn 0;\n+\n+\tidpf_vc_vport_ena_dis(vport, false);\n+\n+\tvport->stopped = 1;\n+\n+\treturn 0;\n+}\n+\n static int\n cpfl_dev_close(struct rte_eth_dev *dev)\n {\n \tstruct idpf_vport *vport = dev->data->dev_private;\n \tstruct cpfl_adapter_ext *adapter = CPFL_ADAPTER_TO_EXT(vport->adapter);\n \n+\tcpfl_dev_stop(dev);\n \tidpf_vport_deinit(vport);\n \n \tadapter->cur_vports &= ~RTE_BIT32(vport->devarg_id);\n@@ -538,6 +571,8 @@ static const struct eth_dev_ops cpfl_eth_dev_ops = {\n \t.rx_queue_setup\t\t\t= cpfl_rx_queue_setup,\n \t.tx_queue_setup\t\t\t= cpfl_tx_queue_setup,\n \t.dev_infos_get\t\t\t= cpfl_dev_info_get,\n+\t.dev_start\t\t\t= cpfl_dev_start,\n+\t.dev_stop\t\t\t= cpfl_dev_stop,\n \t.link_update\t\t\t= cpfl_dev_link_update,\n \t.dev_supported_ptypes_get\t= cpfl_dev_supported_ptypes_get,\n };\n", "prefixes": [ "v6", "04/21" ] }{ "id": 123740, "url": "