get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 45102,
    "url": "https://patches.dpdk.org/api/patches/45102/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20180921125244.27861-4-tiwei.bie@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": "<20180921125244.27861-4-tiwei.bie@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20180921125244.27861-4-tiwei.bie@intel.com",
    "date": "2018-09-21T12:52:44",
    "name": "[3/3] doc: update the doc for virtio-user",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "9540b34a3d9ee900d6fa33ec40ad6f4555674b20",
    "submitter": {
        "id": 617,
        "url": "https://patches.dpdk.org/api/people/617/?format=api",
        "name": "Tiwei Bie",
        "email": "tiwei.bie@intel.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/20180921125244.27861-4-tiwei.bie@intel.com/mbox/",
    "series": [
        {
            "id": 1439,
            "url": "https://patches.dpdk.org/api/series/1439/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=1439",
            "date": "2018-09-21T12:52:41",
            "name": "Some fixes and doc updates for virtio-user",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/1439/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/45102/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/45102/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 804674F9C;\n\tFri, 21 Sep 2018 14:54:24 +0200 (CEST)",
            "from mga05.intel.com (mga05.intel.com [192.55.52.43])\n\tby dpdk.org (Postfix) with ESMTP id 1DFA14C96\n\tfor <dev@dpdk.org>; Fri, 21 Sep 2018 14:54:18 +0200 (CEST)",
            "from orsmga006.jf.intel.com ([10.7.209.51])\n\tby fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t21 Sep 2018 05:54:18 -0700",
            "from btwcube1.sh.intel.com ([10.67.104.151])\n\tby orsmga006.jf.intel.com with ESMTP; 21 Sep 2018 05:54:17 -0700"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.54,285,1534834800\"; d=\"scan'208\";a=\"76203874\"",
        "From": "Tiwei Bie <tiwei.bie@intel.com>",
        "To": "maxime.coquelin@redhat.com,\n\tzhihong.wang@intel.com,\n\tdev@dpdk.org",
        "Date": "Fri, 21 Sep 2018 20:52:44 +0800",
        "Message-Id": "<20180921125244.27861-4-tiwei.bie@intel.com>",
        "X-Mailer": "git-send-email 2.18.0",
        "In-Reply-To": "<20180921125244.27861-1-tiwei.bie@intel.com>",
        "References": "<20180921125244.27861-1-tiwei.bie@intel.com>",
        "Subject": "[dpdk-dev] [PATCH 3/3] doc: update the doc for virtio-user",
        "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": "Update the doc for virtio-user to use the latest testpmd\nparameters and commands.\n\nSigned-off-by: Tiwei Bie <tiwei.bie@intel.com>\n---\n doc/guides/contributing/documentation.rst     |  4 ++--\n .../howto/virtio_user_as_exceptional_path.rst | 23 +++++++++++--------\n .../virtio_user_for_container_networking.rst  |  2 +-\n 3 files changed, 16 insertions(+), 13 deletions(-)",
    "diff": "diff --git a/doc/guides/contributing/documentation.rst b/doc/guides/contributing/documentation.rst\nindex 6a075553d..097575ad7 100644\n--- a/doc/guides/contributing/documentation.rst\n+++ b/doc/guides/contributing/documentation.rst\n@@ -297,8 +297,8 @@ Line Length\n \n      testpmd -l 2-3 -n 4 \\\n              --vdev=virtio_user0,path=/dev/vhost-net,queues=2,queue_size=1024 \\\n-             -- -i --txqflags=0x0 --enable-hw-vlan --enable-lro \\\n-             --enable-rx-cksum --txq=2 --rxq=2 --rxd=1024  --txd=1024\n+             -- -i --tx-offloads=0x0000002c --enable-lro --txq=2 --rxq=2 \\\n+             --txd=1024 --rxd=1024\n \n \n Whitespace\ndiff --git a/doc/guides/howto/virtio_user_as_exceptional_path.rst b/doc/guides/howto/virtio_user_as_exceptional_path.rst\nindex 6a13c761e..4910c12df 100644\n--- a/doc/guides/howto/virtio_user_as_exceptional_path.rst\n+++ b/doc/guides/howto/virtio_user_as_exceptional_path.rst\n@@ -57,8 +57,8 @@ compiling the kernel and those kernel modules should be inserted.\n \n         $(testpmd) -l 2-3 -n 4 \\\n \t\t--vdev=virtio_user0,path=/dev/vhost-net,queue_size=1024 \\\n-\t\t-- -i --txqflags=0x0 --enable-lro \\\n-\t\t--enable-rx-cksum --rxd=1024 --txd=1024\n+\t\t-- -i --tx-offloads=0x0000002c --enable-lro \\\n+\t\t--txd=1024 --rxd=1024\n \n     This command runs testpmd with two ports, one physical NIC to communicate\n     with outside, and one virtio-user to communicate with kernel.\n@@ -69,11 +69,6 @@ compiling the kernel and those kernel modules should be inserted.\n     VIRTIO_NET_F_GUEST_TSO6 feature so that large packets from kernel can be\n     transmitted to DPDK application and further TSOed by physical NIC.\n \n-* ``--enable-rx-cksum``\n-\n-    This is used to negotiate VIRTIO_NET_F_GUEST_CSUM so that packets from\n-    kernel can be deemed as valid Rx checksumed.\n-\n * ``queue_size``\n \n     256 by default. To avoid shortage of descriptors, we can increase it to 1024.\n@@ -86,9 +81,17 @@ compiling the kernel and those kernel modules should be inserted.\n \n         $(testpmd) -l 2-3 -n 4 \\\n \t\t--vdev=virtio_user0,path=/dev/vhost-net,queues=2,queue_size=1024 \\\n-\t\t-- -i --txqflags=0x0 --enable-lro \\\n-\t\t--enable-rx-cksum --txq=2 --rxq=2 --rxd=1024 \\\n-\t\t--txd=1024\n+\t\t-- -i --tx-offloads=0x0000002c --enable-lro \\\n+\t\t--txq=2 --rxq=2 --txd=1024 --rxd=1024\n+\n+#. Enable Rx checksum offloads in testpmd:\n+\n+    .. code-block:: console\n+\n+        (testpmd) port stop 0\n+        (testpmd) port config 0 rx_offload tcp_cksum on\n+        (testpmd) port config 0 rx_offload udp_cksum on\n+        (testpmd) port start 0\n \n #. Start testpmd:\n \ndiff --git a/doc/guides/howto/virtio_user_for_container_networking.rst b/doc/guides/howto/virtio_user_for_container_networking.rst\nindex 476ce3a63..2313dc794 100644\n--- a/doc/guides/howto/virtio_user_for_container_networking.rst\n+++ b/doc/guides/howto/virtio_user_for_container_networking.rst\n@@ -96,7 +96,7 @@ some minor changes.\n             dpdk-app-testpmd testpmd -l 6-7 -n 4 -m 1024 --no-pci \\\n             --vdev=virtio_user0,path=/var/run/usvhost \\\n             --file-prefix=container \\\n-            -- -i --txqflags=0xf00 --disable-hw-vlan\n+            -- -i\n \n Note: If we run all above setup on the host, it's a shm-based IPC.\n \n",
    "prefixes": [
        "3/3"
    ]
}