get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 101145,
    "url": "http://patches.dpdk.org/api/patches/101145/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20211012142250.410803-6-miao.li@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": "<20211012142250.410803-6-miao.li@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20211012142250.410803-6-miao.li@intel.com",
    "date": "2021-10-12T14:22:50",
    "name": "[v4,5/5] examples/l3fwd-power: support virtio/vhost",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "7444d4c3717381fcfb61075b801ee104c726e928",
    "submitter": {
        "id": 2220,
        "url": "http://patches.dpdk.org/api/people/2220/?format=api",
        "name": "Li, Miao",
        "email": "miao.li@intel.com"
    },
    "delegate": {
        "id": 2642,
        "url": "http://patches.dpdk.org/api/users/2642/?format=api",
        "username": "mcoquelin",
        "first_name": "Maxime",
        "last_name": "Coquelin",
        "email": "maxime.coquelin@redhat.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20211012142250.410803-6-miao.li@intel.com/mbox/",
    "series": [
        {
            "id": 19542,
            "url": "http://patches.dpdk.org/api/series/19542/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=19542",
            "date": "2021-10-12T14:22:45",
            "name": "Implement rte_power_monitor API in virtio/vhost PMD",
            "version": 4,
            "mbox": "http://patches.dpdk.org/series/19542/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/101145/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/101145/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 5C807A0C47;\n\tTue, 12 Oct 2021 08:21:52 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 1F9F54111A;\n\tTue, 12 Oct 2021 08:21:36 +0200 (CEST)",
            "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n by mails.dpdk.org (Postfix) with ESMTP id D4E084111A\n for <dev@dpdk.org>; Tue, 12 Oct 2021 08:21:34 +0200 (CEST)",
            "from orsmga004.jf.intel.com ([10.7.209.38])\n by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 11 Oct 2021 23:21:34 -0700",
            "from limiao-icelake.sh.intel.com ([10.67.115.199])\n by orsmga004.jf.intel.com with ESMTP; 11 Oct 2021 23:21:33 -0700"
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6200,9189,10134\"; a=\"226953506\"",
            "E=Sophos;i=\"5.85,366,1624345200\"; d=\"scan'208\";a=\"226953506\"",
            "E=Sophos;i=\"5.85,366,1624345200\"; d=\"scan'208\";a=\"591613094\""
        ],
        "X-ExtLoop1": "1",
        "From": "Miao Li <miao.li@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "chenbo.xia@intel.com,\n\tmaxime.coquelin@redhat.com,\n\tmiao.li@intel.com",
        "Date": "Tue, 12 Oct 2021 14:22:50 +0000",
        "Message-Id": "<20211012142250.410803-6-miao.li@intel.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20211012142250.410803-1-miao.li@intel.com>",
        "References": "<20210924102309.231304-1-miao.li@intel.com>\n <20211012142250.410803-1-miao.li@intel.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH v4 5/5] examples/l3fwd-power: support virtio/vhost",
        "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": "In l3fwd-power, there is default port configuration which requires\nRSS and IPV4/UDP/TCP checksum. Once device does not support these,\nthe l3fwd-power will exit and report an error.\nThis patch updates the port configuration based on device capabilities\nafter getting the device information to support devices like virtio\nand vhost.\n\nSigned-off-by: Miao Li <miao.li@intel.com>\n---\n examples/l3fwd-power/main.c | 9 ++++++++-\n 1 file changed, 8 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/examples/l3fwd-power/main.c b/examples/l3fwd-power/main.c\nindex 73a3ab5bc0..61c15e01d2 100644\n--- a/examples/l3fwd-power/main.c\n+++ b/examples/l3fwd-power/main.c\n@@ -505,7 +505,9 @@ is_valid_ipv4_pkt(struct rte_ipv4_hdr *pkt, uint32_t link_len)\n \t\treturn -1;\n \n \t/* 2. The IP checksum must be correct. */\n-\t/* this is checked in H/W */\n+\t/* if this is not checked in H/W, check it. */\n+\tif ((port_conf.rxmode.offloads & DEV_RX_OFFLOAD_IPV4_CKSUM) == 0)\n+\t\trte_ipv4_cksum(pkt);\n \n \t/*\n \t * 3. The IP version number must be 4. If the version number is not 4\n@@ -2637,6 +2639,11 @@ main(int argc, char **argv)\n \t\t\t\tlocal_port_conf.rx_adv_conf.rss_conf.rss_hf);\n \t\t}\n \n+\t\tif (local_port_conf.rx_adv_conf.rss_conf.rss_hf == 0)\n+\t\t\tlocal_port_conf.rxmode.mq_mode = ETH_MQ_RX_NONE;\n+\t\tlocal_port_conf.rxmode.offloads &= dev_info.rx_offload_capa;\n+\t\tport_conf.rxmode.offloads = local_port_conf.rxmode.offloads;\n+\n \t\tret = rte_eth_dev_configure(portid, nb_rx_queue,\n \t\t\t\t\t(uint16_t)n_tx_queue, &local_port_conf);\n \t\tif (ret < 0)\n",
    "prefixes": [
        "v4",
        "5/5"
    ]
}