get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 103475,
    "url": "https://patches.dpdk.org/api/patches/103475/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20211102104748.57078-1-maxime.coquelin@redhat.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": "<20211102104748.57078-1-maxime.coquelin@redhat.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20211102104748.57078-1-maxime.coquelin@redhat.com",
    "date": "2021-11-02T10:47:48",
    "name": "vhost: rename driver callbacks struct",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "fade268c4dabef405dd85a5719c4f0545dede916",
    "submitter": {
        "id": 512,
        "url": "https://patches.dpdk.org/api/people/512/?format=api",
        "name": "Maxime Coquelin",
        "email": "maxime.coquelin@redhat.com"
    },
    "delegate": {
        "id": 2642,
        "url": "https://patches.dpdk.org/api/users/2642/?format=api",
        "username": "mcoquelin",
        "first_name": "Maxime",
        "last_name": "Coquelin",
        "email": "maxime.coquelin@redhat.com"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20211102104748.57078-1-maxime.coquelin@redhat.com/mbox/",
    "series": [
        {
            "id": 20215,
            "url": "https://patches.dpdk.org/api/series/20215/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=20215",
            "date": "2021-11-02T10:47:48",
            "name": "vhost: rename driver callbacks struct",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/20215/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/103475/comments/",
    "check": "warning",
    "checks": "https://patches.dpdk.org/api/patches/103475/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 mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id DEB61A0C4E;\n\tTue,  2 Nov 2021 11:48:10 +0100 (CET)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id C4EBA40689;\n\tTue,  2 Nov 2021 11:48:10 +0100 (CET)",
            "from us-smtp-delivery-124.mimecast.com\n (us-smtp-delivery-124.mimecast.com [216.205.24.124])\n by mails.dpdk.org (Postfix) with ESMTP id E68BD4003F\n for <dev@dpdk.org>; Tue,  2 Nov 2021 11:48:08 +0100 (CET)",
            "from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com\n [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id\n us-mta-269-fTAnbHNoNfeUPiGULTyo2A-1; Tue, 02 Nov 2021 06:48:05 -0400",
            "from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com\n [10.5.11.23])\n (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n (No client certificate requested)\n by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 8B4929F92D;\n Tue,  2 Nov 2021 10:48:04 +0000 (UTC)",
            "from max-t490s.redhat.com (unknown [10.39.208.36])\n by smtp.corp.redhat.com (Postfix) with ESMTP id 3502819C59;\n Tue,  2 Nov 2021 10:47:50 +0000 (UTC)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1635850088;\n h=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n to:to:cc:cc:mime-version:mime-version:content-type:content-type:\n content-transfer-encoding:content-transfer-encoding;\n bh=l/6xKOtwu05HiI8Cr/b1hsGxvmehnvoGGI8qVnUDomk=;\n b=CjE23G04QjnWhaxgxztRcur0NDO1sTqJZjXJL632FHbaius4ZnxRD5gZo4MnKyToe7AijC\n 4Wr8I5pZU6mR/Jo01K+43J5m3cHfBNrKDEE2EitJg0dtmUgP3wtQ1rOodsJ3xdE00nnRN+\n qdDlsLS4XhmvsMDViIFwkTFTBfsRQOQ=",
        "X-MC-Unique": "fTAnbHNoNfeUPiGULTyo2A-1",
        "From": "Maxime Coquelin <maxime.coquelin@redhat.com>",
        "To": "dev@dpdk.org,\n\tchenbo.xia@intel.com,\n\tdavid.marchand@redhat.com",
        "Cc": "Maxime Coquelin <maxime.coquelin@redhat.com>",
        "Date": "Tue,  2 Nov 2021 11:47:48 +0100",
        "Message-Id": "<20211102104748.57078-1-maxime.coquelin@redhat.com>",
        "MIME-Version": "1.0",
        "X-Scanned-By": "MIMEDefang 2.84 on 10.5.11.23",
        "Authentication-Results": "relay.mimecast.com;\n auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=maxime.coquelin@redhat.com",
        "X-Mimecast-Spam-Score": "0",
        "X-Mimecast-Originator": "redhat.com",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain; charset=\"US-ASCII\"",
        "Subject": "[dpdk-dev] [PATCH] vhost: rename driver callbacks struct",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "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": "As previously announced, this patch renames struct\nvhost_device_ops to struct rte_vhost_device_ops.\n\nSigned-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>\n---\n doc/guides/rel_notes/deprecation.rst   | 3 ---\n doc/guides/rel_notes/release_21_11.rst | 2 ++\n drivers/net/vhost/rte_eth_vhost.c      | 2 +-\n examples/vdpa/main.c                   | 2 +-\n examples/vhost/main.c                  | 2 +-\n examples/vhost_blk/vhost_blk.c         | 2 +-\n examples/vhost_blk/vhost_blk.h         | 2 +-\n examples/vhost_crypto/main.c           | 2 +-\n lib/vhost/rte_vhost.h                  | 4 ++--\n lib/vhost/socket.c                     | 6 +++---\n lib/vhost/vhost.h                      | 4 ++--\n 11 files changed, 15 insertions(+), 16 deletions(-)",
    "diff": "diff --git a/doc/guides/rel_notes/deprecation.rst b/doc/guides/rel_notes/deprecation.rst\nindex 4366015b01..a9e2433988 100644\n--- a/doc/guides/rel_notes/deprecation.rst\n+++ b/doc/guides/rel_notes/deprecation.rst\n@@ -111,9 +111,6 @@ Deprecation Notices\n   ``rte_vhost_host_notifier_ctrl`` and ``rte_vdpa_relay_vring_used`` vDPA\n   driver interface will be marked as internal in DPDK v21.11.\n \n-* vhost: rename ``struct vhost_device_ops`` to ``struct rte_vhost_device_ops``\n-  in DPDK v21.11.\n-\n * vhost: The experimental tags of ``rte_vhost_driver_get_protocol_features``,\n   ``rte_vhost_driver_get_queue_num``, ``rte_vhost_crypto_create``,\n   ``rte_vhost_crypto_free``, ``rte_vhost_crypto_fetch_requests``,\ndiff --git a/doc/guides/rel_notes/release_21_11.rst b/doc/guides/rel_notes/release_21_11.rst\nindex 98d50a160b..dea038e3ac 100644\n--- a/doc/guides/rel_notes/release_21_11.rst\n+++ b/doc/guides/rel_notes/release_21_11.rst\n@@ -564,6 +564,8 @@ ABI Changes\n \n * eventdev: Re-arranged fields in ``rte_event_timer`` to remove holes.\n \n+* vhost: rename ``struct vhost_device_ops`` to ``struct rte_vhost_device_ops``.\n+\n \n Known Issues\n ------------\ndiff --git a/drivers/net/vhost/rte_eth_vhost.c b/drivers/net/vhost/rte_eth_vhost.c\nindex 8bb3b27d01..070f0e6dfd 100644\n--- a/drivers/net/vhost/rte_eth_vhost.c\n+++ b/drivers/net/vhost/rte_eth_vhost.c\n@@ -975,7 +975,7 @@ vring_state_changed(int vid, uint16_t vring, int enable)\n \treturn 0;\n }\n \n-static struct vhost_device_ops vhost_ops = {\n+static struct rte_vhost_device_ops vhost_ops = {\n \t.new_device          = new_device,\n \t.destroy_device      = destroy_device,\n \t.vring_state_changed = vring_state_changed,\ndiff --git a/examples/vdpa/main.c b/examples/vdpa/main.c\nindex 097a267b8c..5ab07655ae 100644\n--- a/examples/vdpa/main.c\n+++ b/examples/vdpa/main.c\n@@ -153,7 +153,7 @@ destroy_device(int vid)\n \t}\n }\n \n-static const struct vhost_device_ops vdpa_sample_devops = {\n+static const struct rte_vhost_device_ops vdpa_sample_devops = {\n \t.new_device = new_device,\n \t.destroy_device = destroy_device,\n };\ndiff --git a/examples/vhost/main.c b/examples/vhost/main.c\nindex 58e12aa710..8685dfd81b 100644\n--- a/examples/vhost/main.c\n+++ b/examples/vhost/main.c\n@@ -1519,7 +1519,7 @@ vring_state_changed(int vid, uint16_t queue_id, int enable)\n  * These callback allow devices to be added to the data core when configuration\n  * has been fully complete.\n  */\n-static const struct vhost_device_ops virtio_net_device_ops =\n+static const struct rte_vhost_device_ops virtio_net_device_ops =\n {\n \t.new_device =  new_device,\n \t.destroy_device = destroy_device,\ndiff --git a/examples/vhost_blk/vhost_blk.c b/examples/vhost_blk/vhost_blk.c\nindex fe2b4e4803..feadacc62e 100644\n--- a/examples/vhost_blk/vhost_blk.c\n+++ b/examples/vhost_blk/vhost_blk.c\n@@ -753,7 +753,7 @@ new_connection(int vid)\n \treturn 0;\n }\n \n-struct vhost_device_ops vhost_blk_device_ops = {\n+struct rte_vhost_device_ops vhost_blk_device_ops = {\n \t.new_device =  new_device,\n \t.destroy_device = destroy_device,\n \t.new_connection = new_connection,\ndiff --git a/examples/vhost_blk/vhost_blk.h b/examples/vhost_blk/vhost_blk.h\nindex 540998eb1b..975f0b4065 100644\n--- a/examples/vhost_blk/vhost_blk.h\n+++ b/examples/vhost_blk/vhost_blk.h\n@@ -104,7 +104,7 @@ struct vhost_blk_task {\n };\n \n extern struct vhost_blk_ctrlr *g_vhost_ctrlr;\n-extern struct vhost_device_ops vhost_blk_device_ops;\n+extern struct rte_vhost_device_ops vhost_blk_device_ops;\n \n int vhost_bdev_process_blk_commands(struct vhost_block_dev *bdev,\n \t\t\t\t     struct vhost_blk_task *task);\ndiff --git a/examples/vhost_crypto/main.c b/examples/vhost_crypto/main.c\nindex dea7dcbd07..7d75623a5e 100644\n--- a/examples/vhost_crypto/main.c\n+++ b/examples/vhost_crypto/main.c\n@@ -363,7 +363,7 @@ destroy_device(int vid)\n \tRTE_LOG(INFO, USER1, \"Vhost Crypto Device %i Removed\\n\", vid);\n }\n \n-static const struct vhost_device_ops virtio_crypto_device_ops = {\n+static const struct rte_vhost_device_ops virtio_crypto_device_ops = {\n \t.new_device =  new_device,\n \t.destroy_device = destroy_device,\n };\ndiff --git a/lib/vhost/rte_vhost.h b/lib/vhost/rte_vhost.h\nindex 6f0915b98f..af0afbcf60 100644\n--- a/lib/vhost/rte_vhost.h\n+++ b/lib/vhost/rte_vhost.h\n@@ -264,7 +264,7 @@ struct rte_vhost_user_extern_ops {\n /**\n  * Device and vring operations.\n  */\n-struct vhost_device_ops {\n+struct rte_vhost_device_ops {\n \tint (*new_device)(int vid);\t\t/**< Add device. */\n \tvoid (*destroy_device)(int vid);\t/**< Remove device. */\n \n@@ -606,7 +606,7 @@ rte_vhost_get_negotiated_protocol_features(int vid,\n \n /* Register callbacks. */\n int rte_vhost_driver_callback_register(const char *path,\n-\tstruct vhost_device_ops const * const ops);\n+\tstruct rte_vhost_device_ops const * const ops);\n \n /**\n  *\ndiff --git a/lib/vhost/socket.c b/lib/vhost/socket.c\nindex c6548608a3..82963c1e6d 100644\n--- a/lib/vhost/socket.c\n+++ b/lib/vhost/socket.c\n@@ -58,7 +58,7 @@ struct vhost_user_socket {\n \n \tstruct rte_vdpa_device *vdpa_dev;\n \n-\tstruct vhost_device_ops const *notify_ops;\n+\tstruct rte_vhost_device_ops const *notify_ops;\n };\n \n struct vhost_user_connection {\n@@ -1093,7 +1093,7 @@ rte_vhost_driver_unregister(const char *path)\n  */\n int\n rte_vhost_driver_callback_register(const char *path,\n-\tstruct vhost_device_ops const * const ops)\n+\tstruct rte_vhost_device_ops const * const ops)\n {\n \tstruct vhost_user_socket *vsocket;\n \n@@ -1106,7 +1106,7 @@ rte_vhost_driver_callback_register(const char *path,\n \treturn vsocket ? 0 : -1;\n }\n \n-struct vhost_device_ops const *\n+struct rte_vhost_device_ops const *\n vhost_driver_callback_get(const char *path)\n {\n \tstruct vhost_user_socket *vsocket;\ndiff --git a/lib/vhost/vhost.h b/lib/vhost/vhost.h\nindex 05ccc35f37..080c67ef99 100644\n--- a/lib/vhost/vhost.h\n+++ b/lib/vhost/vhost.h\n@@ -394,7 +394,7 @@ struct virtio_net {\n \tuint16_t\t\tmtu;\n \tuint8_t\t\t\tstatus;\n \n-\tstruct vhost_device_ops const *notify_ops;\n+\tstruct rte_vhost_device_ops const *notify_ops;\n \n \tuint32_t\t\tnr_guest_pages;\n \tuint32_t\t\tmax_guest_pages;\n@@ -702,7 +702,7 @@ void vhost_enable_linearbuf(int vid);\n int vhost_enable_guest_notification(struct virtio_net *dev,\n \t\tstruct vhost_virtqueue *vq, int enable);\n \n-struct vhost_device_ops const *vhost_driver_callback_get(const char *path);\n+struct rte_vhost_device_ops const *vhost_driver_callback_get(const char *path);\n \n /*\n  * Backend-specific cleanup.\n",
    "prefixes": []
}