Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/104520/?format=api
http://patchwork.dpdk.org/api/patches/104520/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/119df28c7cc9d267@cs.arizona.edu/", "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": "<119df28c7cc9d267@cs.arizona.edu>", "list_archive_url": "https://inbox.dpdk.org/dev/119df28c7cc9d267@cs.arizona.edu", "date": "2021-11-18T17:33:46", "name": "net/memif: allow stopping and closing device", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "3d9a2f5704b18c63f338daa63b67579c658c75a1", "submitter": { "id": 1141, "url": "http://patchwork.dpdk.org/api/people/1141/?format=api", "name": "Junxiao Shi", "email": "git@mail1.yoursunny.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/119df28c7cc9d267@cs.arizona.edu/mbox/", "series": [ { "id": 20651, "url": "http://patchwork.dpdk.org/api/series/20651/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=20651", "date": "2021-11-18T17:33:46", "name": "net/memif: allow stopping and closing device", "version": 1, "mbox": "http://patchwork.dpdk.org/series/20651/mbox/" } ], "comments": "http://patchwork.dpdk.org/api/patches/104520/comments/", "check": "success", "checks": "http://patchwork.dpdk.org/api/patches/104520/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 44C0AA0C41;\n\tThu, 18 Nov 2021 18:36:23 +0100 (CET)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id C35EA40687;\n\tThu, 18 Nov 2021 18:36:22 +0100 (CET)", "from mail-ot1-f99.google.com (mail-ot1-f99.google.com\n [209.85.210.99]) by mails.dpdk.org (Postfix) with ESMTP id 9040140395\n for <dev@dpdk.org>; Thu, 18 Nov 2021 18:36:21 +0100 (CET)", "by mail-ot1-f99.google.com with SMTP id\n w6-20020a9d77c6000000b0055e804fa524so12203928otl.3\n for <dev@dpdk.org>; Thu, 18 Nov 2021 09:36:21 -0800 (PST)", "from optima.cs.arizona.edu (optima.cs.arizona.edu. [192.12.69.5])\n by smtp-relay.gmail.com with ESMTPS id t1sm118513oth.5.2021.11.18.09.36.20\n (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);\n Thu, 18 Nov 2021 09:36:20 -0800 (PST)", "from cs.arizona.edu (lectura.cs.arizona.edu [192.12.69.186])\n by optima.cs.arizona.edu (8.14.4/8.14.4/Debian-2ubuntu2.1) with ESMTP id\n 1AIHaJ8e005265\n (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT);\n Thu, 18 Nov 2021 10:36:19 -0700", "from localhost (cs.arizona.edu [local])\n by cs.arizona.edu (OpenSMTPD) with ESMTPA id b712bba8;\n Thu, 18 Nov 2021 17:36:06 +0000 (UTC)" ], "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20210112;\n h=x-gm-message-state:from:date:to:subject:message-id;\n bh=xmx0a4ZbRwCLakrTZXdS+WPj9XY9KYg9PNOSoGkvz1k=;\n b=H/hbwvPtF3zFF/uK35W0LObF3St625+3SXQ75vKBMosMQxE3zxSwfxhZSHIyBVmea5\n YHdqQQPYPGYAq1bHC2SUqEws17mRKaS95bWozVaphN7nVTGI9QpUu/0fXKvLvURpKC/h\n svHo9fPnhA9ZNdsZQtBRmuvubiDKQ5fVVfZ/mkFLOxqYBcXDBuyg/DTI2MAP+gpbk8+A\n sPJuuBef0/vStW0k7PJCeXHS2nCGdC/NRqtic9utcwT8Z9TvZLPGQWIqKjaFqe8vdx/V\n ddcDwgiyrYticJxWIUHehZ6FSaDERzU/X7qYw+fAgAvxps4lVs87hRPhR5gYPDh54ECc\n cuJA==", "X-Gm-Message-State": "AOAM5300fl3MIjGcu7VqfSXXFKdj1oUZGCLRXbrHyTlD7miArcDXH17R\n yqgxHd723wUZ8+yNhKm3KJGzcc2KMyV3hoQ6fH2Iu8ZvbtM6gA==", "X-Google-Smtp-Source": "\n ABdhPJzP4hSNR16mPUINFeKjHYXF2RcXN1PX6M3Ux/XFjzBSUDplTMqYRMT0VttXgQqe8RJAgsUHC+HjmAYs", "X-Received": "by 2002:a9d:2077:: with SMTP id\n n110mr21810679ota.261.1637256980436;\n Thu, 18 Nov 2021 09:36:20 -0800 (PST)", "X-Relaying-Domain": "cs.arizona.edu", "From": "Junxiao Shi <git@mail1.yoursunny.com>", "Date": "Thu, 18 Nov 2021 17:33:46 +0000", "To": "dev@dpdk.org", "Subject": "[PATCH] net/memif: allow stopping and closing device", "Message-ID": "<119df28c7cc9d267@cs.arizona.edu>", "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": "Bugzilla ID: 888\nFixes: febc855b358e (\"ethdev: forbid closing started device\")\n\nSigned-off-by: Junxiao Shi <git@mail1.yoursunny.com>\n---\n drivers/net/memif/rte_eth_memif.c | 11 ++++++++---\n 1 file changed, 8 insertions(+), 3 deletions(-)", "diff": "diff --git a/drivers/net/memif/rte_eth_memif.c b/drivers/net/memif/rte_eth_memif.c\nindex 43d7378329..e3d523af57 100644\n--- a/drivers/net/memif/rte_eth_memif.c\n+++ b/drivers/net/memif/rte_eth_memif.c\n@@ -1260,6 +1260,13 @@ memif_dev_start(struct rte_eth_dev *dev)\n \treturn ret;\n }\n \n+static int\n+memif_dev_stop(struct rte_eth_dev *dev)\n+{\n+\tmemif_disconnect(dev);\n+\treturn 0;\n+}\n+\n static int\n memif_dev_close(struct rte_eth_dev *dev)\n {\n@@ -1268,7 +1275,6 @@ memif_dev_close(struct rte_eth_dev *dev)\n \n \tif (rte_eal_process_type() == RTE_PROC_PRIMARY) {\n \t\tmemif_msg_enq_disconnect(pmd->cc, \"Device closed\", 0);\n-\t\tmemif_disconnect(dev);\n \n \t\tfor (i = 0; i < dev->data->nb_rx_queues; i++)\n \t\t\t(*dev->dev_ops->rx_queue_release)(dev, i);\n@@ -1276,8 +1282,6 @@ memif_dev_close(struct rte_eth_dev *dev)\n \t\t\t(*dev->dev_ops->tx_queue_release)(dev, i);\n \n \t\tmemif_socket_remove_device(dev);\n-\t} else {\n-\t\tmemif_disconnect(dev);\n \t}\n \n \trte_free(dev->process_private);\n@@ -1515,6 +1519,7 @@ memif_rx_queue_intr_disable(struct rte_eth_dev *dev, uint16_t qid __rte_unused)\n \n static const struct eth_dev_ops ops = {\n \t.dev_start = memif_dev_start,\n+\t.dev_stop = memif_dev_stop,\n \t.dev_close = memif_dev_close,\n \t.dev_infos_get = memif_dev_info,\n \t.dev_configure = memif_dev_configure,\n", "prefixes": [] }{ "id": 104520, "url": "