Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/119139/?format=api
http://patchwork.dpdk.org/api/patches/119139/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20221026101027.240583-6-junfeng.guo@intel.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": "<20221026101027.240583-6-junfeng.guo@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20221026101027.240583-6-junfeng.guo@intel.com", "date": "2022-10-26T10:10:14", "name": "[v12,05/18] net/idpf: add support for device start and stop", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "f006467a55b0a340ec73f42d5bd3ecf5fd81b06f", "submitter": { "id": 1785, "url": "http://patchwork.dpdk.org/api/people/1785/?format=api", "name": "Junfeng Guo", "email": "junfeng.guo@intel.com" }, "delegate": { "id": 3961, "url": "http://patchwork.dpdk.org/api/users/3961/?format=api", "username": "arybchenko", "first_name": "Andrew", "last_name": "Rybchenko", "email": "andrew.rybchenko@oktetlabs.ru" }, "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20221026101027.240583-6-junfeng.guo@intel.com/mbox/", "series": [ { "id": 25436, "url": "http://patchwork.dpdk.org/api/series/25436/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=25436", "date": "2022-10-26T10:10:09", "name": "add support for idpf PMD in DPDK", "version": 12, "mbox": "http://patchwork.dpdk.org/series/25436/mbox/" } ], "comments": "http://patchwork.dpdk.org/api/patches/119139/comments/", "check": "pending", "checks": "http://patchwork.dpdk.org/api/patches/119139/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 3647BA04FD;\n\tWed, 26 Oct 2022 12:12:48 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 1504642C03;\n\tWed, 26 Oct 2022 12:12:26 +0200 (CEST)", "from mga14.intel.com (mga14.intel.com [192.55.52.115])\n by mails.dpdk.org (Postfix) with ESMTP id 1DBBC42BB2\n for <dev@dpdk.org>; Wed, 26 Oct 2022 12:12:19 +0200 (CEST)", "from fmsmga008.fm.intel.com ([10.253.24.58])\n by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 26 Oct 2022 03:12:19 -0700", "from dpdk-jf-ntb-one.sh.intel.com ([10.67.111.104])\n by fmsmga008.fm.intel.com with ESMTP; 26 Oct 2022 03:12:18 -0700" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1666779140; x=1698315140;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=hdlp6i3Pl5iEXHCBhRoyoxRIX8evFrL1UyGYAquFKOc=;\n b=Q2ZjbOw6VOwavxjo2G/MucLGhl3MM49NCd6wKVesKzLOXFG+OfKn+O4P\n YcTmD30SQjpCSrOiBKPwNncYnsi/KyqQ/q1W/GvraDiLETLUHSHLEEV3K\n lMzYbIyLm6A9lZZmqkLtUThleYyi8b37LtoLsjrNKSVsbm4c1cNAAi/bX\n xRcUfBX1eKO3PndLreSlLbb0zgoIhHLytyfhGGzEhR54GMn2OIBJVIdpR\n FafAeR6wmgDProYuKYSIvPmmxGaSW9snZMi2f3i0YI86HpdtdjstS0t8a\n FpPik4wgEz7PMC40Yf6mqCPUnqdfC1TDKkFw51FrC/Tkuj/2TltHaM0Pk w==;", "X-IronPort-AV": [ "E=McAfee;i=\"6500,9779,10511\"; a=\"307904640\"", "E=Sophos;i=\"5.95,214,1661842800\"; d=\"scan'208\";a=\"307904640\"", "E=McAfee;i=\"6500,9779,10511\"; a=\"695306225\"", "E=Sophos;i=\"5.95,214,1661842800\"; d=\"scan'208\";a=\"695306225\"" ], "X-ExtLoop1": "1", "From": "Junfeng Guo <junfeng.guo@intel.com>", "To": "andrew.rybchenko@oktetlabs.ru, qi.z.zhang@intel.com,\n jingjing.wu@intel.com,\n beilei.xing@intel.com", "Cc": "dev@dpdk.org, Junfeng Guo <junfeng.guo@intel.com>,\n Xiaoyun Li <xiaoyun.li@intel.com>", "Subject": "[PATCH v12 05/18] net/idpf: add support for device start and stop", "Date": "Wed, 26 Oct 2022 18:10:14 +0800", "Message-Id": "<20221026101027.240583-6-junfeng.guo@intel.com>", "X-Mailer": "git-send-email 2.34.1", "In-Reply-To": "<20221026101027.240583-1-junfeng.guo@intel.com>", "References": "<20221024131227.1062446-2-junfeng.guo@intel.com>\n <20221026101027.240583-1-junfeng.guo@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: Beilei Xing <beilei.xing@intel.com>\nSigned-off-by: Xiaoyun Li <xiaoyun.li@intel.com>\nSigned-off-by: Junfeng Guo <junfeng.guo@intel.com>\n---\n drivers/net/idpf/idpf_ethdev.c | 51 ++++++++++++++++++++++++++++++++++\n 1 file changed, 51 insertions(+)", "diff": "diff --git a/drivers/net/idpf/idpf_ethdev.c b/drivers/net/idpf/idpf_ethdev.c\nindex 0585153f69..e1db7ccb4f 100644\n--- a/drivers/net/idpf/idpf_ethdev.c\n+++ b/drivers/net/idpf/idpf_ethdev.c\n@@ -30,17 +30,38 @@ static const char * const idpf_valid_args[] = {\n };\n \n static int idpf_dev_configure(struct rte_eth_dev *dev);\n+static int idpf_dev_start(struct rte_eth_dev *dev);\n+static int idpf_dev_stop(struct rte_eth_dev *dev);\n static int idpf_dev_close(struct rte_eth_dev *dev);\n static int idpf_dev_info_get(struct rte_eth_dev *dev,\n \t\t\t struct rte_eth_dev_info *dev_info);\n static void idpf_adapter_rel(struct idpf_adapter *adapter);\n \n+static int\n+idpf_dev_link_update(struct rte_eth_dev *dev,\n+\t\t __rte_unused int wait_to_complete)\n+{\n+\tstruct rte_eth_link new_link;\n+\n+\tmemset(&new_link, 0, sizeof(new_link));\n+\n+\tnew_link.link_speed = RTE_ETH_SPEED_NUM_NONE;\n+\tnew_link.link_duplex = RTE_ETH_LINK_FULL_DUPLEX;\n+\tnew_link.link_autoneg = !(dev->data->dev_conf.link_speeds &\n+\t\t\t\t RTE_ETH_LINK_SPEED_FIXED);\n+\n+\treturn rte_eth_linkstatus_set(dev, &new_link);\n+}\n+\n static const struct eth_dev_ops idpf_eth_dev_ops = {\n \t.dev_configure\t\t\t= idpf_dev_configure,\n+\t.dev_start\t\t\t= idpf_dev_start,\n+\t.dev_stop\t\t\t= idpf_dev_stop,\n \t.dev_close\t\t\t= idpf_dev_close,\n \t.rx_queue_setup\t\t\t= idpf_rx_queue_setup,\n \t.tx_queue_setup\t\t\t= idpf_tx_queue_setup,\n \t.dev_infos_get\t\t\t= idpf_dev_info_get,\n+\t.link_update\t\t\t= idpf_dev_link_update,\n };\n \n static int\n@@ -284,6 +305,36 @@ idpf_dev_configure(struct rte_eth_dev *dev)\n \treturn 0;\n }\n \n+static int\n+idpf_dev_start(struct rte_eth_dev *dev)\n+{\n+\tstruct idpf_vport *vport = dev->data->dev_private;\n+\n+\tif (dev->data->mtu > vport->max_mtu) {\n+\t\tPMD_DRV_LOG(ERR, \"MTU should be less than %d\", vport->max_mtu);\n+\t\treturn -1;\n+\t}\n+\n+\tvport->max_pkt_len = dev->data->mtu + IDPF_ETH_OVERHEAD;\n+\n+\tif (idpf_vc_ena_dis_vport(vport, true) != 0) {\n+\t\tPMD_DRV_LOG(ERR, \"Failed to enable vport\");\n+\t\treturn -1;\n+\t}\n+\n+\treturn 0;\n+}\n+\n+static int\n+idpf_dev_stop(struct rte_eth_dev *dev)\n+{\n+\tstruct idpf_vport *vport = dev->data->dev_private;\n+\n+\tidpf_vc_ena_dis_vport(vport, false);\n+\n+\treturn 0;\n+}\n+\n static int\n idpf_dev_close(struct rte_eth_dev *dev)\n {\n", "prefixes": [ "v12", "05/18" ] }{ "id": 119139, "url": "