get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 128335,
    "url": "https://patches.dpdk.org/api/patches/128335/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20230607151940.223417-12-gakhil@marvell.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": "<20230607151940.223417-12-gakhil@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20230607151940.223417-12-gakhil@marvell.com",
    "date": "2023-06-07T15:19:38",
    "name": "[v2,11/13] test/security: verify MACsec Rx rekey",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "1a36bb061a6e356f6bb6a2d0d682a0b3bd2ad168",
    "submitter": {
        "id": 2094,
        "url": "https://patches.dpdk.org/api/people/2094/?format=api",
        "name": "Akhil Goyal",
        "email": "gakhil@marvell.com"
    },
    "delegate": {
        "id": 6690,
        "url": "https://patches.dpdk.org/api/users/6690/?format=api",
        "username": "akhil",
        "first_name": "akhil",
        "last_name": "goyal",
        "email": "gakhil@marvell.com"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20230607151940.223417-12-gakhil@marvell.com/mbox/",
    "series": [
        {
            "id": 28391,
            "url": "https://patches.dpdk.org/api/series/28391/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=28391",
            "date": "2023-06-07T15:19:27",
            "name": "Add MACsec unit test cases",
            "version": 2,
            "mbox": "https://patches.dpdk.org/series/28391/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/128335/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/128335/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 E9D1842C4E;\n\tWed,  7 Jun 2023 17:21:23 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 08D0442D86;\n\tWed,  7 Jun 2023 17:20:37 +0200 (CEST)",
            "from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com\n [67.231.148.174])\n by mails.dpdk.org (Postfix) with ESMTP id 4247442D10\n for <dev@dpdk.org>; Wed,  7 Jun 2023 17:20:35 +0200 (CEST)",
            "from pps.filterd (m0045849.ppops.net [127.0.0.1])\n by mx0a-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id\n 357Dvj7x028182; Wed, 7 Jun 2023 08:20:32 -0700",
            "from dc5-exch01.marvell.com ([199.233.59.181])\n by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3r2a7bv6c4-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT);\n Wed, 07 Jun 2023 08:20:32 -0700",
            "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, 7 Jun 2023 08:20:30 -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; Wed, 7 Jun 2023 08:20:30 -0700",
            "from localhost.localdomain (unknown [10.28.36.102])\n by maili.marvell.com (Postfix) with ESMTP id 643E73F7084;\n Wed,  7 Jun 2023 08:20:27 -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 : in-reply-to : references : mime-version :\n content-transfer-encoding : content-type; s=pfpt0220;\n bh=iozv4oTPdxq+e0eRjdE5Qm2QRfrN2VIW+dmmBsrw11M=;\n b=e4ARYt3TbJbg0YwZ/AFUNUc1nILNa194s9AZdXuFP/Jw/DGGfG22kSeakXu+VtXWRaZI\n pdV/1LCk+fjP0uPuxR14wSJYOMPRmAiYGB2+RkBMjIDOyIgRsydiSkPAI8HtEENkkBEf\n 3SDnRJ0I2j+W7KCqws8nOuGVYDzASwHF8f+nwg1VUXNB9dnS0JLhHaYvZKnEWEhSqwwr\n sVhoGhmsFqQRqdu01eMLQZ8QtHuA2oVqwf05C7BMnOXT5JvZ5zy5cIH9AWBMnsCgcscM\n LyWhXSa6KMp0TaT/EgzmaT367diLSJWaTHM7aajtjJd6GKCS8Q8mUpMV/zt0Rjgy6vIa 4g==",
        "From": "Akhil Goyal <gakhil@marvell.com>",
        "To": "<dev@dpdk.org>",
        "CC": "<thomas@monjalon.net>, <olivier.matz@6wind.com>, <orika@nvidia.com>,\n <david.marchand@redhat.com>, <hemant.agrawal@nxp.com>,\n <vattunuru@marvell.com>, <ferruh.yigit@amd.com>,\n <andrew.rybchenko@oktetlabs.ru>, <jerinj@marvell.com>,\n <adwivedi@marvell.com>",
        "Subject": "[PATCH v2 11/13] test/security: verify MACsec Rx rekey",
        "Date": "Wed, 7 Jun 2023 20:49:38 +0530",
        "Message-ID": "<20230607151940.223417-12-gakhil@marvell.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20230607151940.223417-1-gakhil@marvell.com>",
        "References": "<20230523194918.1940212-1-gakhil@marvell.com>\n <20230607151940.223417-1-gakhil@marvell.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Proofpoint-ORIG-GUID": "KPbkho-uV5pcMc9wvJm7Ogt6_g2Yl1PB",
        "X-Proofpoint-GUID": "KPbkho-uV5pcMc9wvJm7Ogt6_g2Yl1PB",
        "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.176.26\n definitions=2023-06-07_07,2023-06-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": "From: Ankur Dwivedi <adwivedi@marvell.com>\n\nThis patch enables the Rx rekey test case for MACSEC.\n\nSigned-off-by: Ankur Dwivedi <adwivedi@marvell.com>\n---\n app/test/test_security_inline_macsec.c | 50 +++++++++++++++++++++++++-\n 1 file changed, 49 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/app/test/test_security_inline_macsec.c b/app/test/test_security_inline_macsec.c\nindex 2172f61199..d832dfc170 100644\n--- a/app/test/test_security_inline_macsec.c\n+++ b/app/test/test_security_inline_macsec.c\n@@ -906,8 +906,14 @@ test_macsec(const struct mcs_test_vector *td[], enum mcs_op op, const struct mcs\n \t\tif (op == MCS_DECAP || op == MCS_ENCAP_DECAP ||\n \t\t\t\top == MCS_VERIFY_ONLY || op == MCS_AUTH_VERIFY) {\n \t\t\tfor (an = 0; an < RTE_SECURITY_MACSEC_NUM_AN; an++) {\n+\t\t\t\tif (opts->rekey_en && an ==\n+\t\t\t\t\t\t(opts->rekey_td->secure_pkt.data[tci_off] &\n+\t\t\t\t\t\tRTE_MACSEC_AN_MASK))\n+\t\t\t\t\tfill_macsec_sa_conf(opts->rekey_td, &sa_conf,\n+\t\t\t\t\t\tRTE_SECURITY_MACSEC_DIR_RX, an, tci_off);\n+\t\t\t\telse\n \t\t\t\t/* For simplicity, using same SA conf for all AN */\n-\t\t\t\tfill_macsec_sa_conf(td[i], &sa_conf,\n+\t\t\t\t\tfill_macsec_sa_conf(td[i], &sa_conf,\n \t\t\t\t\t\tRTE_SECURITY_MACSEC_DIR_RX, an, tci_off);\n \t\t\t\tid = rte_security_macsec_sa_create(ctx, &sa_conf);\n \t\t\t\tif (id < 0) {\n@@ -1054,6 +1060,9 @@ test_macsec(const struct mcs_test_vector *td[], enum mcs_op op, const struct mcs\n \t\t\t}\n \t\t\ttx_sa_id[0][0] = (uint16_t)id;\n \t\t\tbreak;\n+\t\tcase RTE_ETH_EVENT_MACSEC_RX_SA_PN_SOFT_EXP:\n+\t\t\tprintf(\"Received RTE_ETH_EVENT_MACSEC_RX_SA_PN_SOFT_EXP event\\n\");\n+\t\t\tbreak;\n \t\tdefault:\n \t\t\tprintf(\"Received unsupported event\\n\");\n \t\t}\n@@ -1951,6 +1960,41 @@ test_inline_macsec_rekey_tx(const void *data __rte_unused)\n \treturn all_err;\n }\n \n+static int\n+test_inline_macsec_rekey_rx(const void *data __rte_unused)\n+{\n+\tconst struct mcs_test_vector *cur_td;\n+\tstruct mcs_test_opts opts = {0};\n+\tint err, all_err = 0;\n+\tint i, size;\n+\n+\topts.val_frames = RTE_SECURITY_MACSEC_VALIDATE_STRICT;\n+\topts.protect_frames = true;\n+\topts.sa_in_use = 1;\n+\topts.nb_td = 1;\n+\topts.sectag_insert_mode = 1;\n+\topts.mtu = RTE_ETHER_MTU;\n+\topts.rekey_en = 1;\n+\n+\tsize = (sizeof(list_mcs_rekey_vectors) / sizeof((list_mcs_rekey_vectors)[0]));\n+\tfor (i = 0; i < size; i++) {\n+\t\tcur_td = &list_mcs_rekey_vectors[i];\n+\t\topts.rekey_td = &list_mcs_rekey_vectors[++i];\n+\t\terr = test_macsec(&cur_td, MCS_DECAP, &opts);\n+\t\tif (err) {\n+\t\t\tprintf(\"Rx rekey test case %d failed\\n\", i);\n+\t\t\terr = -1;\n+\t\t} else {\n+\t\t\tprintf(\"Rx rekey test case %d passed\\n\", i);\n+\t\t\terr = 0;\n+\t\t}\n+\t\tall_err += err;\n+\t}\n+\n+\tprintf(\"\\n%s: Success: %d, Failure: %d\\n\", __func__, size + all_err, -all_err);\n+\treturn all_err;\n+}\n+\n static int\n ut_setup_inline_macsec(void)\n {\n@@ -2184,6 +2228,10 @@ static struct unit_test_suite inline_macsec_testsuite  = {\n \t\t\t\"MACsec re-key Tx\",\n \t\t\tut_setup_inline_macsec, ut_teardown_inline_macsec,\n \t\t\ttest_inline_macsec_rekey_tx),\n+\t\tTEST_CASE_NAMED_ST(\n+\t\t\t\"MACsec re-key Rx\",\n+\t\t\tut_setup_inline_macsec, ut_teardown_inline_macsec,\n+\t\t\ttest_inline_macsec_rekey_rx),\n \n \t\tTEST_CASES_END() /**< NULL terminate unit test array */\n \t},\n",
    "prefixes": [
        "v2",
        "11/13"
    ]
}