get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 135420,
    "url": "http://patchwork.dpdk.org/api/patches/135420/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20231221063811.17376-2-hkalra@marvell.com/",
    "project": {
        "id": 1,
        "url": "http://patchwork.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": "<20231221063811.17376-2-hkalra@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20231221063811.17376-2-hkalra@marvell.com",
    "date": "2023-12-21T06:38:11",
    "name": "[2/2] common/cnxk: fix VLAN check for inner header",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "f997232d4e4b36715174e49daf3f8ce9cfceed17",
    "submitter": {
        "id": 1182,
        "url": "http://patchwork.dpdk.org/api/people/1182/?format=api",
        "name": "Harman Kalra",
        "email": "hkalra@marvell.com"
    },
    "delegate": {
        "id": 310,
        "url": "http://patchwork.dpdk.org/api/users/310/?format=api",
        "username": "jerin",
        "first_name": "Jerin",
        "last_name": "Jacob",
        "email": "jerinj@marvell.com"
    },
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20231221063811.17376-2-hkalra@marvell.com/mbox/",
    "series": [
        {
            "id": 30638,
            "url": "http://patchwork.dpdk.org/api/series/30638/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=30638",
            "date": "2023-12-21T06:38:10",
            "name": "[1/2] common/cnxk: fix mbox region copy",
            "version": 1,
            "mbox": "http://patchwork.dpdk.org/series/30638/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/135420/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/135420/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 A316C4373A;\n\tThu, 21 Dec 2023 07:38:41 +0100 (CET)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id BCB5D40E36;\n\tThu, 21 Dec 2023 07:38:37 +0100 (CET)",
            "from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com\n [67.231.156.173])\n by mails.dpdk.org (Postfix) with ESMTP id B0E86402E5;\n Thu, 21 Dec 2023 07:38:36 +0100 (CET)",
            "from pps.filterd (m0045851.ppops.net [127.0.0.1])\n by mx0b-0016f401.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id\n 3BL1SX8u027848; Wed, 20 Dec 2023 22:38:36 -0800",
            "from dc5-exch01.marvell.com ([199.233.59.181])\n by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3v3ntrpp0f-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT);\n Wed, 20 Dec 2023 22:38:35 -0800 (PST)",
            "from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH01.marvell.com\n (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.48;\n Wed, 20 Dec 2023 22:38:33 -0800",
            "from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com\n (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.48 via Frontend\n Transport; Wed, 20 Dec 2023 22:38:33 -0800",
            "from localhost.localdomain (unknown [10.29.52.211])\n by maili.marvell.com (Postfix) with ESMTP id 1CF843F7079;\n Wed, 20 Dec 2023 22:38:30 -0800 (PST)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=\n from:to:cc:subject:date:message-id:in-reply-to:references\n :mime-version:content-type; s=pfpt0220; bh=NLIYJZDCkkRy0qAfV+2IE\n RmCb69ich11pUDgfrmtWks=; b=P0saWLQcrmvST7u3hL1OiPLGpYqgXC80g0h7E\n sVu815TonCB6ObdLH3ShTYaeZMEidLL4iHX5J2QrqCO1A/FT6pWzrR2xqFEUiInC\n 4JY4OxlfCKwERgz5KlPx+mY788GSi06NZlvnGhQeMWffa7kXJR0J9lgmsu6btKea\n bNBjeQWV3fMmp1bZZwd3m7stPhcjHFYxTMaJlxOr9YjQr9kMO04RpP9we2rKjytB\n /P6iSamAhKxJwcKqh/iqyFQ4DCicBHpVQ3q2emC3HJxbpTN61uNiXWKNfv677DZr\n mOQg/ujUVaK31AQMXrd/Cpn4oS8pBLRucK/UdNmNdO3esrAqg==",
        "From": "Harman Kalra <hkalra@marvell.com>",
        "To": "Nithin Dabilpuram <ndabilpuram@marvell.com>, Kiran Kumar K\n <kirankumark@marvell.com>, Sunil Kumar Kori <skori@marvell.com>, Satha Rao\n <skoteshwar@marvell.com>",
        "CC": "<dev@dpdk.org>, <jerinj@marvell.com>, Harman Kalra <hkalra@marvell.com>,\n <stable@dpdk.org>",
        "Subject": "[PATCH 2/2] common/cnxk: fix VLAN check for inner header",
        "Date": "Thu, 21 Dec 2023 12:08:11 +0530",
        "Message-ID": "<20231221063811.17376-2-hkalra@marvell.com>",
        "X-Mailer": "git-send-email 2.18.0",
        "In-Reply-To": "<20231221063811.17376-1-hkalra@marvell.com>",
        "References": "<20231221063811.17376-1-hkalra@marvell.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain",
        "X-Proofpoint-GUID": "BHtTI10zjgYFFHf5RofkwwsJXcC543u-",
        "X-Proofpoint-ORIG-GUID": "BHtTI10zjgYFFHf5RofkwwsJXcC543u-",
        "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26\n definitions=2023-12-09_02,2023-12-07_01,2023-05-22_02",
        "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": "Adding the has vlan check in inner headers i.e in LF layer. If\nhas_vlan is 0 it should be masked out while installing flow rule.\n\nFixes: c34ea71b878d (\"common/cnxk: add NPC parsing API\")\nCc: stable@dpdk.org\n\nSigned-off-by: Harman Kalra <hkalra@marvell.com>\n---\n drivers/common/cnxk/roc_npc_parse.c | 10 ++++++++--\n 1 file changed, 8 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/drivers/common/cnxk/roc_npc_parse.c b/drivers/common/cnxk/roc_npc_parse.c\nindex 9ceb707ebb..571d6b8e5d 100644\n--- a/drivers/common/cnxk/roc_npc_parse.c\n+++ b/drivers/common/cnxk/roc_npc_parse.c\n@@ -1097,6 +1097,7 @@ npc_parse_lf(struct npc_parse_state *pst)\n {\n \tconst struct roc_npc_item_info *pattern, *last_pattern;\n \tchar hw_mask[NPC_MAX_EXTRACT_HW_LEN];\n+\tconst struct roc_npc_flow_item_eth *eth_item;\n \tstruct npc_parse_item_info info;\n \tint lid, lt, lflags;\n \tint nr_vlans = 0;\n@@ -1113,10 +1114,12 @@ npc_parse_lf(struct npc_parse_state *pst)\n \tlt = NPC_LT_LF_TU_ETHER;\n \tlflags = 0;\n \n+\teth_item = pst->pattern->spec;\n+\n \t/* No match support for vlan tags */\n \tinfo.def_mask = NULL;\n \tinfo.hw_mask = NULL;\n-\tinfo.len = pst->pattern->size;\n+\tinfo.len = sizeof(eth_item->hdr);\n \tinfo.spec = NULL;\n \tinfo.mask = NULL;\n \tinfo.hw_hdr_len = 0;\n@@ -1147,12 +1150,15 @@ npc_parse_lf(struct npc_parse_state *pst)\n \t}\n \n \tinfo.hw_mask = &hw_mask;\n-\tinfo.len = pst->pattern->size;\n+\tinfo.len = sizeof(eth_item->hdr);\n \tinfo.hw_hdr_len = 0;\n \tnpc_get_hw_supp_mask(pst, &info, lid, lt);\n \tinfo.spec = NULL;\n \tinfo.mask = NULL;\n \n+\tif (eth_item && eth_item->has_vlan)\n+\t\tpst->set_vlan_ltype_mask = true;\n+\n \trc = npc_parse_item_basic(pst->pattern, &info);\n \tif (rc != 0)\n \t\treturn rc;\n",
    "prefixes": [
        "2/2"
    ]
}