get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 76894,
    "url": "http://patches.dpdk.org/api/patches/76894/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1599556475-27820-5-git-send-email-arybchenko@solarflare.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": "<1599556475-27820-5-git-send-email-arybchenko@solarflare.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1599556475-27820-5-git-send-email-arybchenko@solarflare.com",
    "date": "2020-09-08T09:14:24",
    "name": "[03/14] net/sfc: add dedicated header file with MCDI interface",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "3cf9bf6383ebf5c85228c78b81aa7ad49079c228",
    "submitter": {
        "id": 607,
        "url": "http://patches.dpdk.org/api/people/607/?format=api",
        "name": "Andrew Rybchenko",
        "email": "arybchenko@solarflare.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/1599556475-27820-5-git-send-email-arybchenko@solarflare.com/mbox/",
    "series": [
        {
            "id": 12014,
            "url": "http://patches.dpdk.org/api/series/12014/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=12014",
            "date": "2020-09-08T09:14:20",
            "name": "net/sfc: factor out common driver library",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/12014/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/76894/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/76894/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 dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id B2BE5A04AA;\n\tTue,  8 Sep 2020 11:17:23 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 6A3AD1C0DB;\n\tTue,  8 Sep 2020 11:16:05 +0200 (CEST)",
            "from dispatch1-us1.ppe-hosted.com (dispatch1-us1.ppe-hosted.com\n [67.231.154.164]) by dpdk.org (Postfix) with ESMTP id 38D511C0DB\n for <dev@dpdk.org>; Tue,  8 Sep 2020 11:16:03 +0200 (CEST)",
            "from mx1-us1.ppe-hosted.com (unknown [10.110.50.144])\n by dispatch1-us1.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTP id\n CFCFA2007A for <dev@dpdk.org>; Tue,  8 Sep 2020 09:16:02 +0000 (UTC)",
            "from us4-mdac16-49.at1.mdlocal (unknown [10.110.50.132])\n by mx1-us1.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTP id 53AB6800E8\n for <dev@dpdk.org>; Tue,  8 Sep 2020 09:16:02 +0000 (UTC)",
            "from mx1-us1.ppe-hosted.com (unknown [10.110.50.12])\n by mx1-us1.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTPS id 1AB2B40088\n for <dev@dpdk.org>; Tue,  8 Sep 2020 09:14:54 +0000 (UTC)",
            "from webmail.solarflare.com (uk.solarflare.com [193.34.186.16])\n (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits))\n (No client certificate requested)\n by mx1-us1.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTPS id D79EB40070\n for <dev@dpdk.org>; Tue,  8 Sep 2020 09:14:53 +0000 (UTC)",
            "from ukex01.SolarFlarecom.com (10.17.10.4) by\n ukex01.SolarFlarecom.com (10.17.10.4) with Microsoft SMTP Server (TLS) id\n 15.0.1497.2; Tue, 8 Sep 2020 10:14:49 +0100",
            "from opal.uk.solarflarecom.com (10.17.10.1) by\n ukex01.SolarFlarecom.com (10.17.10.4) with Microsoft SMTP Server id\n 15.0.1497.2 via Frontend Transport; Tue, 8 Sep 2020 10:14:49 +0100",
            "from ukv-loginhost.uk.solarflarecom.com\n (ukv-loginhost.uk.solarflarecom.com [10.17.10.39])\n by opal.uk.solarflarecom.com (8.13.8/8.13.8) with ESMTP id 0889EnJR032410\n for <dev@dpdk.org>; Tue, 8 Sep 2020 10:14:49 +0100",
            "from ukv-loginhost.uk.solarflarecom.com (localhost [127.0.0.1])\n by ukv-loginhost.uk.solarflarecom.com (Postfix) with ESMTP id 4F6E41613A9\n for <dev@dpdk.org>; Tue,  8 Sep 2020 10:14:49 +0100 (BST)"
        ],
        "X-Virus-Scanned": "Proofpoint Essentials engine",
        "From": "Andrew Rybchenko <arybchenko@solarflare.com>",
        "To": "<dev@dpdk.org>",
        "Date": "Tue, 8 Sep 2020 10:14:24 +0100",
        "Message-ID": "<1599556475-27820-5-git-send-email-arybchenko@solarflare.com>",
        "X-Mailer": "git-send-email 1.8.3.1",
        "In-Reply-To": "<1599556475-27820-1-git-send-email-arybchenko@solarflare.com>",
        "References": "<1599556475-27820-1-git-send-email-arybchenko@solarflare.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain",
        "X-TM-AS-Product-Ver": "SMEX-12.5.0.1300-8.6.1012-25652.003",
        "X-TM-AS-Result": "No-3.301400-8.000000-10",
        "X-TMASE-MatchedRID": "mukClXrIO7yl+yWhjYUl7aiUivh0j2PvaeMaKzvXUpkGmHr1eMxt2YB5\n w6KBECW1rdoLblq9S5oAhGIvsKa9H6qrJ2yPRGzpRaPXfvn+keqkdO7TbvbzY7qE5Z6/nd2c0/e\n OwruG1unXTKZZmtmwut4PjuOlRMxlS62nMBX/dwP4KPASpfWnuVsP0tBwe3qDkY8eITaSJPhnml\n iDOiSLQ/GrOL7GbikWgePt/FBezHC8gVUkX0SvF854hX4xV6jOfS0Ip2eEHnz3IzXlXlpamPoLR\n 4+zsDTtHtexZ1+/9PmlF4DxSfZVrRpfT1NXwKroGus3x7d8v+9Po3Kbq748ZmwoV7uXtxn/NffI\n vuoK0copYoYq9+gIB0gFvgko9aNFhQAl75DFpaYAA9BapWXaJtG+KyfdrZrRf3e2vVbH8zBmH8z\n Zfront8C+ksT6a9fy",
        "X-TM-AS-User-Approved-Sender": "Yes",
        "X-TM-AS-User-Blocked-Sender": "No",
        "X-TMASE-Result": "10--3.301400-8.000000",
        "X-TMASE-Version": "SMEX-12.5.0.1300-8.6.1012-25652.003",
        "X-MDID": "1599556562-8CnD5YJR2mdX",
        "Subject": "[dpdk-dev] [PATCH 03/14] net/sfc: add dedicated header file with\n\tMCDI interface",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "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",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "MCDI helpers will be shared by net and vDPA drivers.\nPrepare to move it to common/sfc_efx.\n\nSigned-off-by: Andrew Rybchenko <arybchenko@solarflare.com>\nReviewed-by: Andy Moreton <amoreton@xilinx.com>\n---\n drivers/net/sfc/sfc.h      | 23 +---------------\n drivers/net/sfc/sfc_mcdi.c |  1 +\n drivers/net/sfc/sfc_mcdi.h | 54 ++++++++++++++++++++++++++++++++++++++\n 3 files changed, 56 insertions(+), 22 deletions(-)\n create mode 100644 drivers/net/sfc/sfc_mcdi.h",
    "diff": "diff --git a/drivers/net/sfc/sfc.h b/drivers/net/sfc/sfc.h\nindex cdff9be3ec..a530b12a8e 100644\n--- a/drivers/net/sfc/sfc.h\n+++ b/drivers/net/sfc/sfc.h\n@@ -23,6 +23,7 @@\n \n #include \"sfc_debug.h\"\n #include \"sfc_filter.h\"\n+#include \"sfc_mcdi.h\"\n \n #ifdef __cplusplus\n extern \"C\" {\n@@ -86,25 +87,6 @@ enum sfc_dev_filter_mode {\n \tSFC_DEV_FILTER_NMODES\n };\n \n-enum sfc_mcdi_state {\n-\tSFC_MCDI_UNINITIALIZED = 0,\n-\tSFC_MCDI_INITIALIZED,\n-\tSFC_MCDI_BUSY,\n-\tSFC_MCDI_COMPLETED,\n-\n-\tSFC_MCDI_NSTATES\n-};\n-\n-struct sfc_mcdi {\n-\trte_spinlock_t\t\t\tlock;\n-\tefsys_mem_t\t\t\tmem;\n-\tenum sfc_mcdi_state\t\tstate;\n-\tefx_mcdi_transport_t\t\ttransport;\n-\tuint32_t\t\t\tlogtype;\n-\tuint32_t\t\t\tproxy_handle;\n-\tefx_rc_t\t\t\tproxy_result;\n-};\n-\n struct sfc_intr {\n \tefx_intr_type_t\t\t\ttype;\n \trte_intr_callback_fn\t\thandler;\n@@ -384,9 +366,6 @@ void sfc_stop(struct sfc_adapter *sa);\n \n void sfc_schedule_restart(struct sfc_adapter *sa);\n \n-int sfc_mcdi_init(struct sfc_adapter *sa);\n-void sfc_mcdi_fini(struct sfc_adapter *sa);\n-\n int sfc_configure(struct sfc_adapter *sa);\n void sfc_close(struct sfc_adapter *sa);\n \ndiff --git a/drivers/net/sfc/sfc_mcdi.c b/drivers/net/sfc/sfc_mcdi.c\nindex ec62ba95ff..9a51b3e030 100644\n--- a/drivers/net/sfc/sfc_mcdi.c\n+++ b/drivers/net/sfc/sfc_mcdi.c\n@@ -13,6 +13,7 @@\n #include \"efx_mcdi.h\"\n #include \"efx_regs_mcdi.h\"\n \n+#include \"sfc_mcdi.h\"\n #include \"sfc.h\"\n #include \"sfc_debug.h\"\n #include \"sfc_log.h\"\ndiff --git a/drivers/net/sfc/sfc_mcdi.h b/drivers/net/sfc/sfc_mcdi.h\nnew file mode 100644\nindex 0000000000..789a16d8bb\n--- /dev/null\n+++ b/drivers/net/sfc/sfc_mcdi.h\n@@ -0,0 +1,54 @@\n+/* SPDX-License-Identifier: BSD-3-Clause\n+ *\n+ * Copyright(c) 2019-2020 Xilinx, Inc.\n+ * Copyright(c) 2016-2019 Solarflare Communications Inc.\n+ *\n+ * This software was jointly developed between OKTET Labs (under contract\n+ * for Solarflare) and Solarflare Communications, Inc.\n+ */\n+\n+#ifndef _SFC_MCDI_H\n+#define _SFC_MCDI_H\n+\n+#include <stdint.h>\n+\n+#include <rte_spinlock.h>\n+\n+#include \"efsys.h\"\n+#include \"efx.h\"\n+\n+\n+#ifdef __cplusplus\n+extern \"C\" {\n+#endif\n+\n+enum sfc_mcdi_state {\n+\tSFC_MCDI_UNINITIALIZED = 0,\n+\tSFC_MCDI_INITIALIZED,\n+\tSFC_MCDI_BUSY,\n+\tSFC_MCDI_COMPLETED,\n+\n+\tSFC_MCDI_NSTATES\n+};\n+\n+struct sfc_mcdi {\n+\trte_spinlock_t\t\t\tlock;\n+\tefsys_mem_t\t\t\tmem;\n+\tenum sfc_mcdi_state\t\tstate;\n+\tefx_mcdi_transport_t\t\ttransport;\n+\tuint32_t\t\t\tlogtype;\n+\tuint32_t\t\t\tproxy_handle;\n+\tefx_rc_t\t\t\tproxy_result;\n+};\n+\n+\n+struct sfc_adapter;\n+\n+int sfc_mcdi_init(struct sfc_adapter *sa);\n+void sfc_mcdi_fini(struct sfc_adapter *sa);\n+\n+#ifdef __cplusplus\n+}\n+#endif\n+\n+#endif  /* _SFC_MCDI_H */\n",
    "prefixes": [
        "03/14"
    ]
}