get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 42675,
    "url": "http://patches.dpdk.org/api/patches/42675/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20180710003623.1463-2-pablo.de.lara.guarch@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": "<20180710003623.1463-2-pablo.de.lara.guarch@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20180710003623.1463-2-pablo.de.lara.guarch@intel.com",
    "date": "2018-07-10T00:36:08",
    "name": "[v6,01/16] cryptodev: replace bus specific struct with generic dev",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "9c422057b5369525c41aa8d25ae759b14e1a5157",
    "submitter": {
        "id": 9,
        "url": "http://patches.dpdk.org/api/people/9/?format=api",
        "name": "De Lara Guarch, Pablo",
        "email": "pablo.de.lara.guarch@intel.com"
    },
    "delegate": {
        "id": 22,
        "url": "http://patches.dpdk.org/api/users/22/?format=api",
        "username": "pdelarag",
        "first_name": "Pablo",
        "last_name": "de Lara Guarch",
        "email": "pablo.de.lara.guarch@intel.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20180710003623.1463-2-pablo.de.lara.guarch@intel.com/mbox/",
    "series": [
        {
            "id": 486,
            "url": "http://patches.dpdk.org/api/series/486/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=486",
            "date": "2018-07-10T00:36:07",
            "name": "Cryptodev API changes",
            "version": 6,
            "mbox": "http://patches.dpdk.org/series/486/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/42675/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/42675/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 [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 339681B152;\n\tTue, 10 Jul 2018 10:42:07 +0200 (CEST)",
            "from mga04.intel.com (mga04.intel.com [192.55.52.120])\n\tby dpdk.org (Postfix) with ESMTP id B5F7F1B05A\n\tfor <dev@dpdk.org>; Tue, 10 Jul 2018 10:42:04 +0200 (CEST)",
            "from orsmga007.jf.intel.com ([10.7.209.58])\n\tby fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t10 Jul 2018 01:42:04 -0700",
            "from silpixa00399466.ir.intel.com (HELO\n\tsilpixa00399466.ger.corp.intel.com) ([10.237.223.220])\n\tby orsmga007.jf.intel.com with ESMTP; 10 Jul 2018 01:42:01 -0700"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.51,333,1526367600\"; d=\"scan'208\";a=\"55358644\"",
        "From": "Pablo de Lara <pablo.de.lara.guarch@intel.com>",
        "To": "declan.doherty@intel.com, akhil.goyal@nxp.com,\n\tshally.verma@caviumnetworks.com, ravi1.kumar@amd.com,\n\tjerin.jacob@caviumnetworks.com, roy.fan.zhang@intel.com,\n\tfiona.trahe@intel.com, tdu@semihalf.com, jianjay.zhou@huawei.com",
        "Cc": "dev@dpdk.org,\n\tPablo de Lara <pablo.de.lara.guarch@intel.com>",
        "Date": "Tue, 10 Jul 2018 01:36:08 +0100",
        "Message-Id": "<20180710003623.1463-2-pablo.de.lara.guarch@intel.com>",
        "X-Mailer": "git-send-email 2.14.4",
        "In-Reply-To": "<20180710003623.1463-1-pablo.de.lara.guarch@intel.com>",
        "References": "<20180608220234.10170-1-pablo.de.lara.guarch@intel.com>\n\t<20180710003623.1463-1-pablo.de.lara.guarch@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v6 01/16] cryptodev: replace bus specific struct\n\twith generic dev",
        "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\t<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\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "Structure rte_cryptodev_info has currently PCI device\ninformation (\"struct rte_pci_device\") in it.\n\nThis information is not generic to all devices,\nso this gets replaced with the generic \"rte_device\" structure,\ncompatible with all crypto devices.\n\nSigned-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>\nAcked-by: Akhil Goyal <akhil.goyal@nxp.com>\n---\n doc/guides/prog_guide/cryptodev_lib.rst  | 2 +-\n doc/guides/rel_notes/deprecation.rst     | 2 --\n doc/guides/rel_notes/release_18_08.rst   | 5 ++++-\n drivers/crypto/qat/qat_sym_pmd.c         | 1 -\n drivers/crypto/virtio/virtio_cryptodev.c | 1 -\n lib/librte_cryptodev/rte_cryptodev.c     | 1 +\n lib/librte_cryptodev/rte_cryptodev.h     | 6 +++---\n 7 files changed, 9 insertions(+), 9 deletions(-)",
    "diff": "diff --git a/doc/guides/prog_guide/cryptodev_lib.rst b/doc/guides/prog_guide/cryptodev_lib.rst\nindex 30f0bcf7a..d02bb7514 100644\n--- a/doc/guides/prog_guide/cryptodev_lib.rst\n+++ b/doc/guides/prog_guide/cryptodev_lib.rst\n@@ -269,7 +269,7 @@ relevant information for the device.\n     struct rte_cryptodev_info {\n         const char *driver_name;\n         uint8_t driver_id;\n-        struct rte_pci_device *pci_dev;\n+        struct rte_device *device;\n \n         uint64_t feature_flags;\n \ndiff --git a/doc/guides/rel_notes/deprecation.rst b/doc/guides/rel_notes/deprecation.rst\nindex 1ce692eac..b71080bb8 100644\n--- a/doc/guides/rel_notes/deprecation.rst\n+++ b/doc/guides/rel_notes/deprecation.rst\n@@ -104,8 +104,6 @@ Deprecation Notices\n   - Removal of ``sym`` structure in ``rte_cryptodev_info`` structure,\n     containing fields not relevant anymore since the session mempool\n     is not internal in the crypto device anymore.\n-  - Replacement of ``pci_dev`` field with the more generic ``rte_device``\n-    structure.\n   - Functions ``rte_cryptodev_queue_pair_attach_sym_session()`` and\n     ``rte_cryptodev_queue_pair_dettach_sym_session()`` will be deprecated from\n     18.05 and removed in 18.08, as there are no drivers doing anything useful\ndiff --git a/doc/guides/rel_notes/release_18_08.rst b/doc/guides/rel_notes/release_18_08.rst\nindex 3487e3fb9..b5de4dd93 100644\n--- a/doc/guides/rel_notes/release_18_08.rst\n+++ b/doc/guides/rel_notes/release_18_08.rst\n@@ -60,6 +60,9 @@ API Changes\n    Also, make sure to start the actual text at the margin.\n    =========================================================\n \n+* cryptodev: In struct ``struct rte_cryptodev_info``, field ``rte_pci_device *pci_dev``\n+  has been replaced with field ``struct rte_device *device``.\n+\n * compressdev: Feature flag ``RTE_COMP_FF_MBUF_SCATTER_GATHER`` is\n   replaced with the following more explicit flags:\n   - ``RTE_COMP_FF_OOP_SGL_IN_SGL_OUT``\n@@ -124,7 +127,7 @@ The libraries prepended with a plus sign were incremented in this version.\n      librte_cmdline.so.2\n      librte_common_octeontx.so.1\n      librte_compressdev.so.1\n-     librte_cryptodev.so.4\n+   + librte_cryptodev.so.5\n      librte_distributor.so.1\n      librte_eal.so.7\n      librte_ethdev.so.9\ndiff --git a/drivers/crypto/qat/qat_sym_pmd.c b/drivers/crypto/qat/qat_sym_pmd.c\nindex 115639089..0bc042a75 100644\n--- a/drivers/crypto/qat/qat_sym_pmd.c\n+++ b/drivers/crypto/qat/qat_sym_pmd.c\n@@ -74,7 +74,6 @@ static void qat_sym_dev_info_get(struct rte_cryptodev *dev,\n \t\tinfo->capabilities = internals->qat_dev_capabilities;\n \t\tinfo->sym.max_nb_sessions = QAT_SYM_PMD_MAX_NB_SESSIONS;\n \t\tinfo->driver_id = cryptodev_qat_driver_id;\n-\t\tinfo->pci_dev = RTE_DEV_TO_PCI(dev->device);\n \t}\n }\n \ndiff --git a/drivers/crypto/virtio/virtio_cryptodev.c b/drivers/crypto/virtio/virtio_cryptodev.c\nindex f9c890bb3..4f170cfec 100644\n--- a/drivers/crypto/virtio/virtio_cryptodev.c\n+++ b/drivers/crypto/virtio/virtio_cryptodev.c\n@@ -1415,7 +1415,6 @@ virtio_crypto_dev_info_get(struct rte_cryptodev *dev,\n \n \tif (info != NULL) {\n \t\tinfo->driver_id = cryptodev_virtio_driver_id;\n-\t\tinfo->pci_dev = RTE_DEV_TO_PCI(dev->device);\n \t\tinfo->feature_flags = dev->feature_flags;\n \t\tinfo->max_nb_queue_pairs = hw->max_dataqueues;\n \t\tinfo->sym.max_nb_sessions =\ndiff --git a/lib/librte_cryptodev/rte_cryptodev.c b/lib/librte_cryptodev/rte_cryptodev.c\nindex 7e5821246..457ac5670 100644\n--- a/lib/librte_cryptodev/rte_cryptodev.c\n+++ b/lib/librte_cryptodev/rte_cryptodev.c\n@@ -966,6 +966,7 @@ rte_cryptodev_info_get(uint8_t dev_id, struct rte_cryptodev_info *dev_info)\n \t(*dev->dev_ops->dev_infos_get)(dev, dev_info);\n \n \tdev_info->driver_name = dev->device->driver->name;\n+\tdev_info->device = dev->device;\n }\n \n \ndiff --git a/lib/librte_cryptodev/rte_cryptodev.h b/lib/librte_cryptodev/rte_cryptodev.h\nindex ccc0f73fd..6b5f32bda 100644\n--- a/lib/librte_cryptodev/rte_cryptodev.h\n+++ b/lib/librte_cryptodev/rte_cryptodev.h\n@@ -334,9 +334,9 @@ rte_cryptodev_get_feature_name(uint64_t flag);\n \n /**  Crypto device information */\n struct rte_cryptodev_info {\n-\tconst char *driver_name;\t\t/**< Driver name. */\n-\tuint8_t driver_id;\t\t\t/**< Driver identifier */\n-\tstruct rte_pci_device *pci_dev;\t\t/**< PCI information. */\n+\tconst char *driver_name;\t/**< Driver name. */\n+\tuint8_t driver_id;\t\t/**< Driver identifier */\n+\tstruct rte_device *device;\t/**< Generic device information. */\n \n \tuint64_t feature_flags;\n \t/**< Feature flags exposes HW/SW features for the given device */\n",
    "prefixes": [
        "v6",
        "01/16"
    ]
}