Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/8566/?format=api
https://patches.dpdk.org/api/patches/8566/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/1446550500-24029-3-git-send-email-david.marchand@6wind.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": "<1446550500-24029-3-git-send-email-david.marchand@6wind.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1446550500-24029-3-git-send-email-david.marchand@6wind.com", "date": "2015-11-03T11:35:00", "name": "[dpdk-dev,v2,2/2] ethdev: export rte_eth_dev_is_detachable function", "commit_ref": null, "pull_url": null, "state": "rejected", "archived": true, "hash": "ed83c0085c534a28ef9163bca3cbcc1520d30ead", "submitter": { "id": 3, "url": "https://patches.dpdk.org/api/people/3/?format=api", "name": "David Marchand", "email": "david.marchand@6wind.com" }, "delegate": null, "mbox": "https://patches.dpdk.org/project/dpdk/patch/1446550500-24029-3-git-send-email-david.marchand@6wind.com/mbox/", "series": [], "comments": "https://patches.dpdk.org/api/patches/8566/comments/", "check": "pending", "checks": "https://patches.dpdk.org/api/patches/8566/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 5AB4A8E99;\n\tTue, 3 Nov 2015 12:35:27 +0100 (CET)", "from mail-wm0-f47.google.com (mail-wm0-f47.google.com\n\t[74.125.82.47]) by dpdk.org (Postfix) with ESMTP id EE5BE8E95\n\tfor <dev@dpdk.org>; Tue, 3 Nov 2015 12:35:25 +0100 (CET)", "by wmff134 with SMTP id f134so12257585wmf.0\n\tfor <dev@dpdk.org>; Tue, 03 Nov 2015 03:35:25 -0800 (PST)", "from alcyon.dev.6wind.com (guy78-3-82-239-227-177.fbx.proxad.net.\n\t[82.239.227.177]) by smtp.gmail.com with ESMTPSA id\n\tpc2sm5536175wjb.11.2015.11.03.03.35.24\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tTue, 03 Nov 2015 03:35:25 -0800 (PST)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=6wind_com.20150623.gappssmtp.com; s=20150623;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=0aOwZ0ISkAPwy2AQ1wbmDkgxNTA43+A4NJPsMpGz5gU=;\n\tb=ZJOfNqx/n4fpXa3M3LhekFTeoq40wNJzmp+J7N0Oc7AUr+QXrKXWq/7ACbTtUx14jP\n\tjz8kP1SghcIT9HV3KHmv3ce2gW+OV4l0JAilUbiTFxunx4d0cvJVXuMjlBWOlmjIqSUX\n\tBZCK3ap5qwYlya4rFzrZrBvonw/5uy4Pg1JVK3KV8v8h6Z+6xeGG1Fjq9eGTw8mu1mny\n\t9BOh0bsAR5TLFTJrPpmEYufeiMccnzjEpvNg+WMnIf7OKbLBQc170QtkhRSzoNs4j8ip\n\tVh8MJLe0VSEwEncqeq4rcMmjweDTg0dBazUkR0yIM9UrbHb3zIuVuJhBaqNV1BrXeyPs\n\tfTtQ==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20130820;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=0aOwZ0ISkAPwy2AQ1wbmDkgxNTA43+A4NJPsMpGz5gU=;\n\tb=UK7JdLBWmf6XpGZi8tNy9FrLWMFi0nLKtZjZJccioATb9bwlYnqJahgWI/EF4OG7wR\n\t+NzL0JPOO1rvCT6Sfy5MGrzUmFk2Vr1NNHD537tOrM8tun4+P+yh8IkaKJiatOK+m9KX\n\t5QcZLTS8z/9gUxtz8/rbUJcaLBH1H2WAEICfBDWS0kr1IJRiQ3eXuBmJrmSDdMJ9obgu\n\txh8pJzz1B2zxyW/BBqgO2gqZnarX5sOb1ploUUub29oxpzXnraCErX1L+PFHwRvzoBji\n\txi5oxJGR09SF/UFx201QcGTqHplvlauFHA/dT6nBWbEajE8xSXXGkWBGEXy2bhqMSGSt\n\tmxYw==", "X-Gm-Message-State": "ALoCoQnSRVvWSsA2lzgY3R/ZMtQRrhGQvtlC6qy2eM/5/ewCDv4J0M8CMenl2EIOtp2fYV/4dz1s", "X-Received": "by 10.28.13.75 with SMTP id 72mr18136593wmn.20.1446550525796;\n\tTue, 03 Nov 2015 03:35:25 -0800 (PST)", "From": "David Marchand <david.marchand@6wind.com>", "To": "dev@dpdk.org", "Date": "Tue, 3 Nov 2015 12:35:00 +0100", "Message-Id": "<1446550500-24029-3-git-send-email-david.marchand@6wind.com>", "X-Mailer": "git-send-email 1.7.10.4", "In-Reply-To": "<1446550500-24029-1-git-send-email-david.marchand@6wind.com>", "References": "<1446108903-14412-1-git-send-email-david.marchand@6wind.com>\n\t<1446550500-24029-1-git-send-email-david.marchand@6wind.com>", "Subject": "[dpdk-dev] [PATCH v2 2/2] ethdev: export rte_eth_dev_is_detachable\n\tfunction", "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: Maxime Leroy <maxime.leroy@6wind.com>\n\nIt can be useful for application to know if a port can be detached or not.\n\nSigned-off-by: Maxime Leroy <maxime.leroy@6wind.com>\nSigned-off-by: David Marchand <david.marchand@6wind.com>\n---\n lib/librte_ether/rte_ethdev.c | 2 +-\n lib/librte_ether/rte_ethdev.h | 12 ++++++++++++\n lib/librte_ether/rte_ether_version.map | 1 +\n 3 files changed, 14 insertions(+), 1 deletion(-)", "diff": "diff --git a/lib/librte_ether/rte_ethdev.c b/lib/librte_ether/rte_ethdev.c\nindex ec1b632..373d29b 100644\n--- a/lib/librte_ether/rte_ethdev.c\n+++ b/lib/librte_ether/rte_ethdev.c\n@@ -503,7 +503,7 @@ rte_eth_dev_get_name_by_port(uint8_t port_id, char *name)\n \treturn 0;\n }\n \n-static int\n+int\n rte_eth_dev_is_detachable(uint8_t port_id)\n {\n \tuint32_t drv_flags;\ndiff --git a/lib/librte_ether/rte_ethdev.h b/lib/librte_ether/rte_ethdev.h\nindex 7cf4af8..350733b 100644\n--- a/lib/librte_ether/rte_ethdev.h\n+++ b/lib/librte_ether/rte_ethdev.h\n@@ -1640,6 +1640,18 @@ int rte_eth_dev_attach(const char *devargs, uint8_t *port_id);\n */\n int rte_eth_dev_detach(uint8_t port_id, char *devname);\n \n+/**\n+ * Check if an Ethernet device specified by port identifer is detachable.\n+ *\n+ * @param port_id\n+ * The port identifier of the device to check if is detachable\n+ *\n+ * @return\n+ * 1 if device is detachable, else 0\n+ */\n+int\n+rte_eth_dev_is_detachable(uint8_t port_id);\n+\n struct eth_driver;\n /**\n * @internal\ndiff --git a/lib/librte_ether/rte_ether_version.map b/lib/librte_ether/rte_ether_version.map\nindex 7b04e95..40c2a02 100644\n--- a/lib/librte_ether/rte_ether_version.map\n+++ b/lib/librte_ether/rte_ether_version.map\n@@ -132,6 +132,7 @@ DPDK_2.2 {\n \tglobal:\n \n \trte_eth_dev_get_dcb_info;\n+\trte_eth_dev_is_detachable;\n \trte_eth_rx_queue_info_get;\n \trte_eth_tx_queue_info_get;\n \n", "prefixes": [ "dpdk-dev", "v2", "2/2" ] }{ "id": 8566, "url": "