get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/18111/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 18111,
    "url": "http://patches.dpdk.org/api/patches/18111/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20161216190257.6921-2-ferruh.yigit@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": "<20161216190257.6921-2-ferruh.yigit@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20161216190257.6921-2-ferruh.yigit@intel.com",
    "date": "2016-12-16T19:02:29",
    "name": "[dpdk-dev,v5,01/29] net/i40e: support link status notification",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "4fec3a96d7835c071831a1a0cb2c8a31d68a9c06",
    "submitter": {
        "id": 324,
        "url": "http://patches.dpdk.org/api/people/324/?format=api",
        "name": "Ferruh Yigit",
        "email": "ferruh.yigit@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/20161216190257.6921-2-ferruh.yigit@intel.com/mbox/",
    "series": [],
    "comments": "http://patches.dpdk.org/api/patches/18111/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/18111/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 10F4D5597;\n\tFri, 16 Dec 2016 20:03:48 +0100 (CET)",
            "from mga02.intel.com (mga02.intel.com [134.134.136.20])\n\tby dpdk.org (Postfix) with ESMTP id 3F1BE377C\n\tfor <dev@dpdk.org>; Fri, 16 Dec 2016 20:03:18 +0100 (CET)",
            "from orsmga005.jf.intel.com ([10.7.209.41])\n\tby orsmga101.jf.intel.com with ESMTP; 16 Dec 2016 11:03:16 -0800",
            "from sivswdev02.ir.intel.com ([10.237.217.46])\n\tby orsmga005.jf.intel.com with ESMTP; 16 Dec 2016 11:03:14 -0800"
        ],
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.33,359,1477983600\"; d=\"scan'208\";a=\"43189753\"",
        "From": "Ferruh Yigit <ferruh.yigit@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "Jingjing Wu <jingjing.wu@intel.com>; Helin Zhang <helin.zhang@intel.com>,\n\tFerruh Yigit <ferruh.yigit@intel.com>, Wenzhuo Lu <wenzhuo.lu@intel.com>",
        "Date": "Fri, 16 Dec 2016 19:02:29 +0000",
        "Message-Id": "<20161216190257.6921-2-ferruh.yigit@intel.com>",
        "X-Mailer": "git-send-email 2.8.4",
        "In-Reply-To": "<20161216190257.6921-1-ferruh.yigit@intel.com>",
        "References": "<20161216143919.4909-1-ferruh.yigit@intel.com>\n\t<20161216190257.6921-1-ferruh.yigit@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v5 01/29] net/i40e: support link status\n\tnotification",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <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: Wenzhuo Lu <wenzhuo.lu@intel.com>\n\nAdd an API to expose the ability, that PF can notify VF\nwhen link status changes, to APP.\nSo if PF APP doesn't want to enable interruption but check\nlink status by itself, PF APP can let VF know link status\nchanged.\n\nSigned-off-by: Wenzhuo Lu <wenzhuo.lu@intel.com>\n---\n drivers/net/i40e/Makefile                 |  4 ++-\n drivers/net/i40e/i40e_ethdev.c            | 28 +++++++++++++++\n drivers/net/i40e/i40e_pf.c                |  4 +--\n drivers/net/i40e/i40e_pf.h                |  4 ++-\n drivers/net/i40e/rte_pmd_i40e.h           | 58 +++++++++++++++++++++++++++++++\n drivers/net/i40e/rte_pmd_i40e_version.map |  7 ++++\n 6 files changed, 101 insertions(+), 4 deletions(-)\n create mode 100644 drivers/net/i40e/rte_pmd_i40e.h",
    "diff": "diff --git a/drivers/net/i40e/Makefile b/drivers/net/i40e/Makefile\nindex 66997b6..a2ef53c 100644\n--- a/drivers/net/i40e/Makefile\n+++ b/drivers/net/i40e/Makefile\n@@ -1,6 +1,6 @@\n #   BSD LICENSE\n #\n-#   Copyright(c) 2010-2015 Intel Corporation. All rights reserved.\n+#   Copyright(c) 2010-2016 Intel Corporation. All rights reserved.\n #   All rights reserved.\n #\n #   Redistribution and use in source and binary forms, with or without\n@@ -111,6 +111,8 @@ ifeq ($(findstring RTE_MACHINE_CPUFLAG_SSE4_1,$(CFLAGS)),)\n CFLAGS_i40e_rxtx_vec_sse.o += -msse4.1\n endif\n \n+# install this header file\n+SYMLINK-$(CONFIG_RTE_LIBRTE_I40E_PMD)-include := rte_pmd_i40e.h\n \n # this lib depends upon:\n DEPDIRS-$(CONFIG_RTE_LIBRTE_I40E_PMD) += lib/librte_eal lib/librte_ether\ndiff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c\nindex f42f4ba..fc7e987 100644\n--- a/drivers/net/i40e/i40e_ethdev.c\n+++ b/drivers/net/i40e/i40e_ethdev.c\n@@ -62,6 +62,7 @@\n #include \"i40e_rxtx.h\"\n #include \"i40e_pf.h\"\n #include \"i40e_regs.h\"\n+#include \"rte_pmd_i40e.h\"\n \n #define ETH_I40E_FLOATING_VEB_ARG\t\"enable_floating_veb\"\n #define ETH_I40E_FLOATING_VEB_LIST_ARG\t\"floating_veb_list\"\n@@ -9695,3 +9696,30 @@ i40e_dev_mtu_set(struct rte_eth_dev *dev, uint16_t mtu)\n \n \treturn ret;\n }\n+\n+int\n+rte_pmd_i40e_ping_vfs(uint8_t port, uint16_t vf)\n+{\n+\tstruct rte_eth_dev *dev;\n+\tstruct rte_eth_dev_info dev_info;\n+\tstruct i40e_pf *pf;\n+\n+\tRTE_ETH_VALID_PORTID_OR_ERR_RET(port, -ENODEV);\n+\n+\tdev = &rte_eth_devices[port];\n+\trte_eth_dev_info_get(port, &dev_info);\n+\n+\tif (vf >= dev_info.max_vfs)\n+\t\treturn -EINVAL;\n+\n+\tpf = I40E_DEV_PRIVATE_TO_PF(dev->data->dev_private);\n+\n+\tif (vf > pf->vf_num - 1 || !pf->vfs) {\n+\t\tPMD_DRV_LOG(ERR, \"Invalid argument.\");\n+\t\treturn -EINVAL;\n+\t}\n+\n+\ti40e_notify_vf_link_status(dev, &pf->vfs[vf]);\n+\n+\treturn 0;\n+}\ndiff --git a/drivers/net/i40e/i40e_pf.c b/drivers/net/i40e/i40e_pf.c\nindex ddfc140..f70712b 100644\n--- a/drivers/net/i40e/i40e_pf.c\n+++ b/drivers/net/i40e/i40e_pf.c\n@@ -1,7 +1,7 @@\n /*-\n  *   BSD LICENSE\n  *\n- *   Copyright(c) 2010-2015 Intel Corporation. All rights reserved.\n+ *   Copyright(c) 2010-2016 Intel Corporation. All rights reserved.\n  *   All rights reserved.\n  *\n  *   Redistribution and use in source and binary forms, with or without\n@@ -897,7 +897,7 @@ i40e_pf_host_process_cmd_cfg_pvid(struct i40e_pf_vf *vf,\n \treturn ret;\n }\n \n-static void\n+void\n i40e_notify_vf_link_status(struct rte_eth_dev *dev, struct i40e_pf_vf *vf)\n {\n \tstruct i40e_virtchnl_pf_event event;\ndiff --git a/drivers/net/i40e/i40e_pf.h b/drivers/net/i40e/i40e_pf.h\nindex cddc45c..59bf2ee 100644\n--- a/drivers/net/i40e/i40e_pf.h\n+++ b/drivers/net/i40e/i40e_pf.h\n@@ -1,7 +1,7 @@\n /*-\n  *   BSD LICENSE\n  *\n- *   Copyright(c) 2010-2015 Intel Corporation. All rights reserved.\n+ *   Copyright(c) 2010-2016 Intel Corporation. All rights reserved.\n  *   All rights reserved.\n  *\n  *   Redistribution and use in source and binary forms, with or without\n@@ -123,5 +123,7 @@ void i40e_pf_host_handle_vf_msg(struct rte_eth_dev *dev,\n \t\t\t\tuint8_t *msg, uint16_t msglen);\n int i40e_pf_host_init(struct rte_eth_dev *dev);\n int i40e_pf_host_uninit(struct rte_eth_dev *dev);\n+void i40e_notify_vf_link_status(struct rte_eth_dev *dev,\n+\t\t\t\tstruct i40e_pf_vf *vf);\n \n #endif /* _I40E_PF_H_ */\ndiff --git a/drivers/net/i40e/rte_pmd_i40e.h b/drivers/net/i40e/rte_pmd_i40e.h\nnew file mode 100644\nindex 0000000..14852f2\n--- /dev/null\n+++ b/drivers/net/i40e/rte_pmd_i40e.h\n@@ -0,0 +1,58 @@\n+/*-\n+ *   BSD LICENSE\n+ *\n+ *   Copyright (c) 2016 Intel Corporation. All rights reserved.\n+ *\n+ *   Redistribution and use in source and binary forms, with or without\n+ *   modification, are permitted provided that the following conditions\n+ *   are met:\n+ *\n+ *     * Redistributions of source code must retain the above copyright\n+ *       notice, this list of conditions and the following disclaimer.\n+ *     * Redistributions in binary form must reproduce the above copyright\n+ *       notice, this list of conditions and the following disclaimer in\n+ *       the documentation and/or other materials provided with the\n+ *       distribution.\n+ *     * Neither the name of Intel Corporation nor the names of its\n+ *       contributors may be used to endorse or promote products derived\n+ *       from this software without specific prior written permission.\n+ *\n+ *   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n+ *   \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n+ *   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n+ *   A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n+ *   OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n+ *   SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n+ *   LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n+ *   DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n+ *   THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n+ *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n+ *   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n+ */\n+\n+/**\n+ * @file rte_pmd_i40e.h\n+ * i40e PMD specific functions.\n+ *\n+ **/\n+\n+#ifndef _PMD_I40E_H_\n+#define _PMD_I40E_H_\n+\n+#include <rte_ethdev.h>\n+\n+/**\n+ * Notify VF when PF link status changes.\n+ *\n+ * @param port\n+ *   The port identifier of the Ethernet device.\n+ * @param vf\n+ *   VF id.\n+ * @return\n+ *   - (0) if successful.\n+ *   - (-ENODEV) if *port* invalid.\n+ *   - (-EINVAL) if *vf* invalid.\n+ */\n+int rte_pmd_i40e_ping_vfs(uint8_t port, uint16_t vf);\n+\n+#endif /* _PMD_I40E_H_ */\ndiff --git a/drivers/net/i40e/rte_pmd_i40e_version.map b/drivers/net/i40e/rte_pmd_i40e_version.map\nindex ef35398..3c6a192 100644\n--- a/drivers/net/i40e/rte_pmd_i40e_version.map\n+++ b/drivers/net/i40e/rte_pmd_i40e_version.map\n@@ -2,3 +2,10 @@ DPDK_2.0 {\n \n \tlocal: *;\n };\n+\n+DPDK_17.02 {\n+\tglobal:\n+\n+\trte_pmd_i40e_ping_vfs;\n+\n+} DPDK_2.0;\n",
    "prefixes": [
        "dpdk-dev",
        "v5",
        "01/29"
    ]
}