Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2379/?format=api
https://patches.dpdk.org/api/patches/2379/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/1421668601-156-2-git-send-email-tomaszx.kulasek@intel.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": "<1421668601-156-2-git-send-email-tomaszx.kulasek@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1421668601-156-2-git-send-email-tomaszx.kulasek@intel.com", "date": "2015-01-19T11:56:39", "name": "[dpdk-dev,v2,1/3] PMD Ring - Add link up/down functions", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "2abb0de9c09637b6f04a8e593041aeea57317181", "submitter": { "id": 155, "url": "https://patches.dpdk.org/api/people/155/?format=api", "name": "Tomasz Kulasek", "email": "tomaszx.kulasek@intel.com" }, "delegate": null, "mbox": "https://patches.dpdk.org/project/dpdk/patch/1421668601-156-2-git-send-email-tomaszx.kulasek@intel.com/mbox/", "series": [], "comments": "https://patches.dpdk.org/api/patches/2379/comments/", "check": "pending", "checks": "https://patches.dpdk.org/api/patches/2379/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 D66E05A82;\n\tMon, 19 Jan 2015 12:58:45 +0100 (CET)", "from mga03.intel.com (mga03.intel.com [134.134.136.65])\n\tby dpdk.org (Postfix) with ESMTP id E60A15A80\n\tfor <dev@dpdk.org>; Mon, 19 Jan 2015 12:58:42 +0100 (CET)", "from orsmga001.jf.intel.com ([10.7.209.18])\n\tby orsmga103.jf.intel.com with ESMTP; 19 Jan 2015 03:54:48 -0800", "from unknown (HELO Sent) ([10.217.248.44])\n\tby orsmga001.jf.intel.com with SMTP; 19 Jan 2015 03:58:39 -0800", "by Sent (sSMTP sendmail emulation); Mon, 19 Jan 2015 12:57:56 +0200" ], "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.09,426,1418112000\"; d=\"scan'208\";a=\"639289416\"", "From": "Tomasz Kulasek <tomaszx.kulasek@intel.com>", "To": "dev@dpdk.org", "Date": "Mon, 19 Jan 2015 12:56:39 +0100", "Message-Id": "<1421668601-156-2-git-send-email-tomaszx.kulasek@intel.com>", "X-Mailer": "git-send-email 2.1.4", "In-Reply-To": "<1421668601-156-1-git-send-email-tomaszx.kulasek@intel.com>", "References": "<1418375682-4703-3-git-send-email-michalx.k.jastrzebski@intel.com>\n\t<1421668601-156-1-git-send-email-tomaszx.kulasek@intel.com>", "Subject": "[dpdk-dev] [PATCH v2 1/3] PMD Ring - Add link up/down functions", "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": "Link up and down implementation.\n\nSigned-off-by: Tomasz Kulasek <tomaszx.kulasek@intel.com>\nSigned-off-by: Pawel Wodkowski <pawelx.wodkowski@intel.com>\n---\n lib/librte_pmd_ring/rte_eth_ring.c | 16 ++++++++++++++++\n 1 file changed, 16 insertions(+)", "diff": "diff --git a/lib/librte_pmd_ring/rte_eth_ring.c b/lib/librte_pmd_ring/rte_eth_ring.c\nindex 4f1b6ed..929e71a 100644\n--- a/lib/librte_pmd_ring/rte_eth_ring.c\n+++ b/lib/librte_pmd_ring/rte_eth_ring.c\n@@ -121,6 +121,20 @@ eth_dev_stop(struct rte_eth_dev *dev)\n }\n \n static int\n+eth_dev_set_link_down(struct rte_eth_dev *dev)\n+{\n+\tdev->data->dev_link.link_status = 0;\n+\treturn 0;\n+}\n+\n+static int\n+eth_dev_set_link_up(struct rte_eth_dev *dev)\n+{\n+\tdev->data->dev_link.link_status = 1;\n+\treturn 0;\n+}\n+\n+static int\n eth_rx_queue_setup(struct rte_eth_dev *dev,uint16_t rx_queue_id,\n \t\t\t\t uint16_t nb_rx_desc __rte_unused,\n \t\t\t\t unsigned int socket_id __rte_unused,\n@@ -207,6 +221,8 @@ eth_link_update(struct rte_eth_dev *dev __rte_unused,\n static struct eth_dev_ops ops = {\n \t\t.dev_start = eth_dev_start,\n \t\t.dev_stop = eth_dev_stop,\n+\t\t.dev_set_link_up = eth_dev_set_link_up,\n+\t\t.dev_set_link_down = eth_dev_set_link_down,\n \t\t.dev_configure = eth_dev_configure,\n \t\t.dev_infos_get = eth_dev_info,\n \t\t.rx_queue_setup = eth_rx_queue_setup,\n", "prefixes": [ "dpdk-dev", "v2", "1/3" ] }{ "id": 2379, "url": "