get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 126370,
    "url": "https://patches.dpdk.org/api/patches/126370/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20230421084043.135503-7-wenjing.qiao@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": "<20230421084043.135503-7-wenjing.qiao@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20230421084043.135503-7-wenjing.qiao@intel.com",
    "date": "2023-04-21T08:40:34",
    "name": "[v2,06/15] common/idpf: modify SSO/LSO and ITR fields",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": true,
    "hash": "fc3f49d77c6a4ed1ea1dfb53238bf5036207a523",
    "submitter": {
        "id": 2680,
        "url": "https://patches.dpdk.org/api/people/2680/?format=api",
        "name": "Wenjing Qiao",
        "email": "wenjing.qiao@intel.com"
    },
    "delegate": {
        "id": 1540,
        "url": "https://patches.dpdk.org/api/users/1540/?format=api",
        "username": "qzhan15",
        "first_name": "Qi",
        "last_name": "Zhang",
        "email": "qi.z.zhang@intel.com"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20230421084043.135503-7-wenjing.qiao@intel.com/mbox/",
    "series": [
        {
            "id": 27813,
            "url": "https://patches.dpdk.org/api/series/27813/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=27813",
            "date": "2023-04-21T08:40:28",
            "name": "update idpf shared code",
            "version": 2,
            "mbox": "https://patches.dpdk.org/series/27813/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/126370/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/126370/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 4E2D0429AA;\n\tFri, 21 Apr 2023 10:46:40 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 3B39B42D40;\n\tFri, 21 Apr 2023 10:46:14 +0200 (CEST)",
            "from mga02.intel.com (mga02.intel.com [134.134.136.20])\n by mails.dpdk.org (Postfix) with ESMTP id C124642D0C\n for <dev@dpdk.org>; Fri, 21 Apr 2023 10:46:10 +0200 (CEST)",
            "from fmsmga004.fm.intel.com ([10.253.24.48])\n by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 21 Apr 2023 01:46:10 -0700",
            "from dpdk-wenjing-01.sh.intel.com ([10.67.118.239])\n by fmsmga004.fm.intel.com with ESMTP; 21 Apr 2023 01:46:08 -0700"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1682066770; x=1713602770;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=GhO87oGG11ZM1yvafwTCi0+S6V7GZh/8I+81IGbEIfg=;\n b=NZJ8XcS5lvmz0a8kb/6d0iQ7J3njMRtaiegktBLUFBdpd7FTEO6y9NMS\n G/ni+VEGwgdLSPA1tAA9AO2Z6rUG0UoNsQxilsBbuLCYdk3xKt+l/Dydy\n AqOdqUnxfGNqjwbxJeWvKjLd1elrmYCR9p5vRH4AqYsiXy/gTR+qQTj0Z\n Ku9Z3OnRROvW2r7YvtcFHgxiwEnCRYZtxpebkIBQ9tByISF9qU/OGDyaA\n JRRe/sWsIzdOZAJoLTZGecna4J32EtB8bnsQY/LZlYbbV0ey0CEaHkdIH\n TfCIA18/t3+XhgwoyrhlJj+vNRtmCHXug597cG4zhlpo2lznNVNK0mCy9 w==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6600,9927,10686\"; a=\"334822861\"",
            "E=Sophos;i=\"5.99,214,1677571200\"; d=\"scan'208\";a=\"334822861\"",
            "E=McAfee;i=\"6600,9927,10686\"; a=\"761501439\"",
            "E=Sophos;i=\"5.99,214,1677571200\"; d=\"scan'208\";a=\"761501439\""
        ],
        "X-ExtLoop1": "1",
        "From": "Wenjing Qiao <wenjing.qiao@intel.com>",
        "To": "jingjing.wu@intel.com,\n\tbeilei.xing@intel.com,\n\tqi.z.zhang@intel.com",
        "Cc": "dev@dpdk.org, Wenjing Qiao <wenjing.qiao@intel.com>,\n Pavan Kumar Linga <pavan.kumar.linga@intel.com>",
        "Subject": "[PATCH v2 06/15] common/idpf: modify SSO/LSO and ITR fields",
        "Date": "Fri, 21 Apr 2023 04:40:34 -0400",
        "Message-Id": "<20230421084043.135503-7-wenjing.qiao@intel.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20230421084043.135503-1-wenjing.qiao@intel.com>",
        "References": "<20230413094502.1714755-2-wenjing.qiao@intel.com>\n <20230421084043.135503-1-wenjing.qiao@intel.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "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"
    },
    "content": "- Driver assumes minimum packet length for sso as 17 bytes\nbut it should be a negotiated value from CP.\n- Similarly, the number of header buffers for lso that are\nsupported by the device should also be a negotiated value.\n\nAdd min_sso_packet_len, max_hdr_buf_per_lso to address the\nabove.\n\nAlso, the existing 'itrn_reg_spacing' should be used for\nspacing between ITRn registers of 2 consecutive vectors and\nadd a new spacing field to get the spacing between ITR\nregisters of the same vector.\n\n- ITR_IDX 2 is not used in the current code. Bring it back\nif there exists any use case in the future.\n- NO_ITR is not really a register index and it is used only\nin the IDPF base code, so virtchnl support is not required for\nthat\n- itr_idx_map is also not used as by default driver assumes\nat the minimum 2 ITRs are supported by the device. If any\nadditional ITRs are also supported, then those should be\nnegotiated.\n\nRemove all the above said fields and mark them as reserved.\n\nSigned-off-by: Pavan Kumar Linga <pavan.kumar.linga@intel.com>\nSigned-off-by: Wenjing Qiao <wenjing.qiao@intel.com>\n---\n drivers/common/idpf/base/virtchnl2.h | 25 ++++++++++++++-----------\n 1 file changed, 14 insertions(+), 11 deletions(-)",
    "diff": "diff --git a/drivers/common/idpf/base/virtchnl2.h b/drivers/common/idpf/base/virtchnl2.h\nindex 32d8fe8c06..edf3f200b3 100644\n--- a/drivers/common/idpf/base/virtchnl2.h\n+++ b/drivers/common/idpf/base/virtchnl2.h\n@@ -289,8 +289,6 @@\n  */\n #define VIRTCHNL2_ITR_IDX_0\t\t\t0\n #define VIRTCHNL2_ITR_IDX_1\t\t\t1\n-#define VIRTCHNL2_ITR_IDX_2\t\t\t2\n-#define VIRTCHNL2_ITR_IDX_NO_ITR\t\t3\n \n /* VIRTCHNL2_VECTOR_LIMITS\n  * Since PF/VF messages are limited by __le16 size, precalculate the maximum\n@@ -510,9 +508,7 @@ struct virtchnl2_get_capabilities {\n \t */\n \tu8 max_sg_bufs_per_tx_pkt;\n \n-\t/* see VIRTCHNL2_ITR_IDX definition */\n-\tu8 itr_idx_map;\n-\n+\tu8 reserved1;\n \t__le16 pad1;\n \n \t/* version of Control Plane that is running */\n@@ -521,7 +517,12 @@ struct virtchnl2_get_capabilities {\n \t/* see VIRTCHNL2_DEVICE_TYPE definitions */\n \t__le32 device_type;\n \n-\tu8 reserved[12];\n+\t/* min packet length supported by device for single segment offload */\n+\tu8 min_sso_packet_len;\n+\t/* max number of header buffers that can be used for an LSO */\n+\tu8 max_hdr_buf_per_lso;\n+\n+\tu8 reserved[10];\n };\n \n VIRTCHNL2_CHECK_STRUCT_LEN(80, virtchnl2_get_capabilities);\n@@ -789,15 +790,17 @@ struct virtchnl2_vector_chunk {\n \t * interrupt indices without modifying the state of the interrupt.\n \t */\n \t__le32 dynctl_reg_start;\n-\t/* register spacing to find the next dynctl and itrn register offset\n-\t * from the provided dynctl_reg_start and itrn_reg_start respectively\n-\t */\n+\t/* register spacing between dynctl registers of 2 consecutive vectors */\n \t__le32 dynctl_reg_spacing;\n \n \t__le32 itrn_reg_start;\n-\t/* register spacing to find the individual itrn register where n=0..2 */\n+\t/* register spacing between itrn registers of 2 consecutive vectors */\n \t__le32 itrn_reg_spacing;\n-\tu8 reserved[8];\n+\t/* register spacing between itrn registers of the same vector\n+\t * where n=0..2\n+\t */\n+\t__le32 itrn_index_spacing;\n+\tu8 reserved[4];\n };\n \n VIRTCHNL2_CHECK_STRUCT_LEN(32, virtchnl2_vector_chunk);\n",
    "prefixes": [
        "v2",
        "06/15"
    ]
}