get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 131148,
    "url": "http://patchwork.dpdk.org/api/patches/131148/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20230904105742.1159342-1-psatheesh@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": "<20230904105742.1159342-1-psatheesh@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20230904105742.1159342-1-psatheesh@marvell.com",
    "date": "2023-09-04T10:57:41",
    "name": "[1/2] common/cnxk: limit RSS key config with RTE Flow operations",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "0164b85e7af03958c74f9d1ca09724f4e5632b54",
    "submitter": {
        "id": 1663,
        "url": "http://patchwork.dpdk.org/api/people/1663/?format=api",
        "name": "Satheesh Paul Antonysamy",
        "email": "psatheesh@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/20230904105742.1159342-1-psatheesh@marvell.com/mbox/",
    "series": [
        {
            "id": 29418,
            "url": "http://patchwork.dpdk.org/api/series/29418/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=29418",
            "date": "2023-09-04T10:57:41",
            "name": "[1/2] common/cnxk: limit RSS key config with RTE Flow operations",
            "version": 1,
            "mbox": "http://patchwork.dpdk.org/series/29418/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/131148/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/131148/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 C3D50424EF;\n\tMon,  4 Sep 2023 12:57:51 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id A1DD1402BB;\n\tMon,  4 Sep 2023 12:57:51 +0200 (CEST)",
            "from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com\n [67.231.156.173])\n by mails.dpdk.org (Postfix) with ESMTP id 5CA2B400EF\n for <dev@dpdk.org>; Mon,  4 Sep 2023 12:57:50 +0200 (CEST)",
            "from pps.filterd (m0045851.ppops.net [127.0.0.1])\n by mx0b-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id\n 383M0lAt008921 for <dev@dpdk.org>; Mon, 4 Sep 2023 03:57:49 -0700",
            "from dc5-exch02.marvell.com ([199.233.59.182])\n by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3sv4jk5d2d-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT)\n for <dev@dpdk.org>; Mon, 04 Sep 2023 03:57:49 -0700",
            "from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH02.marvell.com\n (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.48;\n Mon, 4 Sep 2023 03:57:47 -0700",
            "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; Mon, 4 Sep 2023 03:57:47 -0700",
            "from satheeshpaullabpc.. (unknown [10.28.34.33])\n by maili.marvell.com (Postfix) with ESMTP id B043F3F7041;\n Mon,  4 Sep 2023 03:57:45 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com;\n h=from : to : cc :\n subject : date : message-id : mime-version : content-transfer-encoding :\n content-type; s=pfpt0220; bh=6322IO5ml2ayCEKbheTNLUazCe/i19q56wLjLHeYyaI=;\n b=iaZehnTDvfTJINEoGAwlpKdaJmcmnWez6jm6kwxPPR/PPagfWAw0jILx2JbdJJOo9+7i\n Ym/DyRoysLmoPzYbpt6hFqjFPL8eNcXx5Rkem/L+5NtquI3NVxJRCqry0qIFGnmOKlZi\n HloD4ZpnZcksgiMHWignHDEaabm8pcpfR8hjxyJQNEvA19AqcQpV7X2HBB0C2rOqZ+Sw\n D+o0x9RTxxUXDFNtqu/t/EndzmQP676uMb0bol/HsRWkRTOFuk63AclGy0nCm6D4j5tn\n CydFE8XGS2JmdhrqZRVVpWwyV5IXykL1YkoXO6Krcj4EU46aQewLT7vjpTQsGdOxKcz5 7Q==",
        "From": "<psatheesh@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>, Jerin Jacob <jerinj@marvell.com>",
        "Subject": "[dpdk-dev] [PATCH 1/2] common/cnxk: limit RSS key config with RTE\n Flow operations",
        "Date": "Mon, 4 Sep 2023 16:27:41 +0530",
        "Message-ID": "<20230904105742.1159342-1-psatheesh@marvell.com>",
        "X-Mailer": "git-send-email 2.39.2",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Proofpoint-GUID": "fNwCsqDMarXO4AL-c6zQHGyRBD91EFt1",
        "X-Proofpoint-ORIG-GUID": "fNwCsqDMarXO4AL-c6zQHGyRBD91EFt1",
        "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.267,Aquarius:18.0.957,Hydra:6.0.601,FMLib:17.11.176.26\n definitions=2023-09-04_07,2023-08-31_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": "From: Kiran Kumar K <kirankumark@marvell.com>\n\nLimit the configuring RSS key with RTE Flow operations for cnxk\ndevice. Key can be update only with dev operations using\nrte_eth_dev_rss_hash_update.\n\nSigned-off-by: Kiran Kumar K <kirankumark@marvell.com>\nReviewed-by: Jerin Jacob <jerinj@marvell.com>\n---\n drivers/common/cnxk/roc_npc.c | 33 ++++++++++++++++++++++++++-------\n 1 file changed, 26 insertions(+), 7 deletions(-)",
    "diff": "diff --git a/drivers/common/cnxk/roc_npc.c b/drivers/common/cnxk/roc_npc.c\nindex c0c168db76..0611a83bba 100644\n--- a/drivers/common/cnxk/roc_npc.c\n+++ b/drivers/common/cnxk/roc_npc.c\n@@ -943,9 +943,35 @@ npc_rss_action_configure(struct roc_npc *roc_npc,\n \tuint8_t key[ROC_NIX_RSS_KEY_LEN];\n \tconst uint8_t *key_ptr;\n \tuint8_t flowkey_algx;\n+\tuint32_t key_len;\n \tuint16_t *reta;\n \tint rc;\n \n+\troc_nix_rss_key_get(roc_nix, key);\n+\tif (rss->key == NULL) {\n+\t\tkey_ptr = key;\n+\t} else {\n+\t\tkey_len = rss->key_len;\n+\t\tif (key_len > ROC_NIX_RSS_KEY_LEN)\n+\t\t\tkey_len = ROC_NIX_RSS_KEY_LEN;\n+\n+\t\tfor (i = 0; i < key_len; i++) {\n+\t\t\tif (key[i] != rss->key[i]) {\n+\t\t\t\tplt_err(\"RSS key config not supported\");\n+\t\t\t\tplt_err(\"New Key:\");\n+\t\t\t\tfor (i = 0; i < key_len; i++)\n+\t\t\t\t\tplt_dump_no_nl(\"0x%.2x \", rss->key[i]);\n+\t\t\t\tplt_dump_no_nl(\"\\n\");\n+\t\t\t\tplt_err(\"Configured Key:\");\n+\t\t\t\tfor (i = 0; i < ROC_NIX_RSS_KEY_LEN; i++)\n+\t\t\t\t\tplt_dump_no_nl(\"0x%.2x \", key[i]);\n+\t\t\t\tplt_dump_no_nl(\"\\n\");\n+\t\t\t\treturn -ENOTSUP;\n+\t\t\t}\n+\t\t}\n+\t\tkey_ptr = rss->key;\n+\t}\n+\n \trc = npc_rss_free_grp_get(npc, &rss_grp_idx);\n \t/* RSS group :0 is not usable for flow rss action */\n \tif (rc < 0 || rss_grp_idx == 0)\n@@ -960,13 +986,6 @@ npc_rss_action_configure(struct roc_npc *roc_npc,\n \n \t*rss_grp = rss_grp_idx;\n \n-\tif (rss->key == NULL) {\n-\t\troc_nix_rss_key_default_fill(roc_nix, key);\n-\t\tkey_ptr = key;\n-\t} else {\n-\t\tkey_ptr = rss->key;\n-\t}\n-\n \troc_nix_rss_key_set(roc_nix, key_ptr);\n \n \t/* If queue count passed in the rss action is less than\n",
    "prefixes": [
        "1/2"
    ]
}