get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 109401,
    "url": "http://patches.dpdk.org/api/patches/109401/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20220407062721.3886136-2-junfeng.guo@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": "<20220407062721.3886136-2-junfeng.guo@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20220407062721.3886136-2-junfeng.guo@intel.com",
    "date": "2022-04-07T06:27:19",
    "name": "[1/3] common/iavf: support raw packet in protocol header",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "2d2eb6c9c3c5805c1b50fc29d5ba333e32356bcc",
    "submitter": {
        "id": 1785,
        "url": "http://patches.dpdk.org/api/people/1785/?format=api",
        "name": "Junfeng Guo",
        "email": "junfeng.guo@intel.com"
    },
    "delegate": {
        "id": 1540,
        "url": "http://patches.dpdk.org/api/users/1540/?format=api",
        "username": "qzhan15",
        "first_name": "Qi",
        "last_name": "Zhang",
        "email": "qi.z.zhang@intel.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20220407062721.3886136-2-junfeng.guo@intel.com/mbox/",
    "series": [
        {
            "id": 22395,
            "url": "http://patches.dpdk.org/api/series/22395/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=22395",
            "date": "2022-04-07T06:27:18",
            "name": "Enable Protocol Agnostic Flow Offloading FDIR in AVF",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/22395/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/109401/comments/",
    "check": "warning",
    "checks": "http://patches.dpdk.org/api/patches/109401/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 2575EA050B;\n\tThu,  7 Apr 2022 08:27:21 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 14F1040689;\n\tThu,  7 Apr 2022 08:27:21 +0200 (CEST)",
            "from mga02.intel.com (mga02.intel.com [134.134.136.20])\n by mails.dpdk.org (Postfix) with ESMTP id 599D940689\n for <dev@dpdk.org>; Thu,  7 Apr 2022 08:27:19 +0200 (CEST)",
            "from orsmga007.jf.intel.com ([10.7.209.58])\n by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 06 Apr 2022 23:27:18 -0700",
            "from dpdk-jf-ntb-v2.sh.intel.com ([10.67.119.111])\n by orsmga007.jf.intel.com with ESMTP; 06 Apr 2022 23:27:16 -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=1649312839; x=1680848839;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=Y5eVl5kG/mkIi5Q0PDgxSfrlGhn+p4tYObzjFOonZ08=;\n b=X9XPD7UZEEJsfTTtut1IYFFL5YD4oO7xpGYFc4MHsY7hA4UQQSqbLp/e\n INe3iGpaaQVUvoZ/IBvutDxkkcZzgkGKeEeAf/z4T/bjBOzsEor3TFDJJ\n E7xJPPu+ldauW9I9Gxuk5CwOMbiOJDeis+WOrWUEQDawVF96TivtpRd5F\n 2Grnh7ZrPHJV+MX853T6gr0zHE+zU25/5esTD80E8lePIwEV116VDcpV1\n FyWCMrFhTMs3jjE28YIv2QdWTp9RwH2+R9NkpHoOCe0DOhSq6NkzwZmnf\n rpPOWQyIgslg+qbUpMJAIlZDwpUlzVwxuZgCEjhPptjUUkC8ekRj7RZ7+ A==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6200,9189,10309\"; a=\"248764663\"",
            "E=Sophos;i=\"5.90,241,1643702400\"; d=\"scan'208\";a=\"248764663\"",
            "E=Sophos;i=\"5.90,241,1643702400\"; d=\"scan'208\";a=\"549885011\""
        ],
        "X-ExtLoop1": "1",
        "From": "Junfeng Guo <junfeng.guo@intel.com>",
        "To": "qi.z.zhang@intel.com,\n\tjingjing.wu@intel.com,\n\tbeilei.xing@intel.com",
        "Cc": "dev@dpdk.org,\n\tjunfeng.guo@intel.com",
        "Subject": "[PATCH 1/3] common/iavf: support raw packet in protocol header",
        "Date": "Thu,  7 Apr 2022 14:27:19 +0800",
        "Message-Id": "<20220407062721.3886136-2-junfeng.guo@intel.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20220407062721.3886136-1-junfeng.guo@intel.com>",
        "References": "<20220407062721.3886136-1-junfeng.guo@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": "The patch extends existing virtchnl_proto_hdrs structure to allow VF\nto pass a pair of buffers as packet data and mask that describe\na match pattern of a filter rule. Then the kernel PF driver is requested\nto parse the pair of buffer and figure out low level hardware metadata\n(ptype, profile, field vector.. ) to program the expected FDIR or RSS\nrules.\n\nINTERNAL ONLY:\n\nThis is requirement from DPDK to support Protocol Agnostic Flow\nOffloading(*1). Previously we have integrated the Parser Library(*2)\ninto DPDK and enabled a raw packet based FDIR and RSS support in DPDK\nPF driver(*3,*4), to enable the same feature for AVF driver, we need\nVirtual Channel to support raw packet filter rule passing.\n\n[1] https://wiki.ith.intel.com/display/NPGCVL/Protocol+Agnostic+Flow+Offloading\n[2] http://patchwork.dpdk.org/project/dpdk/list/?series=19057&archive=both&state=*\n[3] http://patchwork.dpdk.org/project/dpdk/list/?series=20254&state=%2A&archive=both\n[4] http://patchwork.dpdk.org/project/dpdk/list/?series=20291&state=%2A&archive=both\n\nSigned-off-by: Qi Zhang <qi.z.zhang@intel.com>\nSigned-off-by: Junfeng Guo <junfeng.guo@intel.com>\n---\n drivers/common/iavf/virtchnl.h | 20 ++++++++++++++++----\n 1 file changed, 16 insertions(+), 4 deletions(-)",
    "diff": "diff --git a/drivers/common/iavf/virtchnl.h b/drivers/common/iavf/virtchnl.h\nindex 3e44eca7d8..3975229545 100644\n--- a/drivers/common/iavf/virtchnl.h\n+++ b/drivers/common/iavf/virtchnl.h\n@@ -1482,6 +1482,7 @@ enum virtchnl_vfr_states {\n };\n \n #define VIRTCHNL_MAX_NUM_PROTO_HDRS\t32\n+#define VIRTCHNL_MAX_SIZE_RAW_PACKET\t1024\n #define PROTO_HDR_SHIFT\t\t\t5\n #define PROTO_HDR_FIELD_START(proto_hdr_type) \\\n \t\t\t\t\t(proto_hdr_type << PROTO_HDR_SHIFT)\n@@ -1676,14 +1677,25 @@ VIRTCHNL_CHECK_STRUCT_LEN(72, virtchnl_proto_hdr);\n struct virtchnl_proto_hdrs {\n \tu8 tunnel_level;\n \t/**\n-\t * specify where protocol header start from.\n+\t * specify where protocol header start from. must be 0 when sending a raw packet request.\n \t * 0 - from the outer layer\n \t * 1 - from the first inner layer\n \t * 2 - from the second inner layer\n \t * ....\n-\t **/\n-\tint count; /* the proto layers must < VIRTCHNL_MAX_NUM_PROTO_HDRS */\n-\tstruct virtchnl_proto_hdr proto_hdr[VIRTCHNL_MAX_NUM_PROTO_HDRS];\n+\t */\n+\tint count;\n+\t/**\n+\t * number of proto layers, must < VIRTCHNL_MAX_NUM_PROTO_HDRS\n+\t * must be 0 for a raw packet request.\n+\t */\n+\tunion {\n+\t\tstruct virtchnl_proto_hdr proto_hdr[VIRTCHNL_MAX_NUM_PROTO_HDRS];\n+\t\tstruct {\n+\t\t\tu16 pkt_len;\n+\t\t\tu8 spec[VIRTCHNL_MAX_SIZE_RAW_PACKET];\n+\t\t\tu8 mask[VIRTCHNL_MAX_SIZE_RAW_PACKET];\n+\t\t} raw;\n+\t};\n };\n \n VIRTCHNL_CHECK_STRUCT_LEN(2312, virtchnl_proto_hdrs);\n",
    "prefixes": [
        "1/3"
    ]
}