get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 126122,
    "url": "http://patches.dpdk.org/api/patches/126122/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20230414174512.642-23-anoobj@marvell.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": "<20230414174512.642-23-anoobj@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20230414174512.642-23-anoobj@marvell.com",
    "date": "2023-04-14T17:45:12",
    "name": "[v2,22/22] test/pdcp: add PDCP status report cases",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": true,
    "hash": "81cdba2305053b580d462c64b8e717e87e58e715",
    "submitter": {
        "id": 1205,
        "url": "http://patches.dpdk.org/api/people/1205/?format=api",
        "name": "Anoob Joseph",
        "email": "anoobj@marvell.com"
    },
    "delegate": {
        "id": 6690,
        "url": "http://patches.dpdk.org/api/users/6690/?format=api",
        "username": "akhil",
        "first_name": "akhil",
        "last_name": "goyal",
        "email": "gakhil@marvell.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20230414174512.642-23-anoobj@marvell.com/mbox/",
    "series": [
        {
            "id": 27723,
            "url": "http://patches.dpdk.org/api/series/27723/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=27723",
            "date": "2023-04-14T17:44:50",
            "name": "lib: add pdcp protocol",
            "version": 2,
            "mbox": "http://patches.dpdk.org/series/27723/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/126122/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/126122/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 245D542943;\n\tFri, 14 Apr 2023 19:48:29 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id BF5D942D0E;\n\tFri, 14 Apr 2023 19:48:18 +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 46F9942D61\n for <dev@dpdk.org>; Fri, 14 Apr 2023 19:48:17 +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 33EFFBRR009805; Fri, 14 Apr 2023 10:48:16 -0700",
            "from dc5-exch02.marvell.com ([199.233.59.182])\n by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3py646s6xq-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT);\n Fri, 14 Apr 2023 10:48:16 -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 Fri, 14 Apr 2023 10:48:14 -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; Fri, 14 Apr 2023 10:48:13 -0700",
            "from BG-LT92004.corp.innovium.com (unknown [10.28.161.183])\n by maili.marvell.com (Postfix) with ESMTP id 088093F707F;\n Fri, 14 Apr 2023 10:48:07 -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=BHmG8ryfQxfQhk9stSAo/3+eAG82yMiNvenujLAbVp4=;\n b=C87fLE0xWEaZ5cfcpysdbCpai9uAm5HNFJ6nPyYDuhkWbqx9VnXPBW/hsEqa/0pT5ucf\n SHZ6ZrvB5Z+zfimB5thsKb0lEGPBEaKavFsAmcw4SgA+Iwkh2zCzhpnv/bBI1GmT3A69\n sJD2umeG/rPJiPI0FHQkQloONwsqTneRBscwqyFcbL+UenccOU/sgWngBfGsNDp9Vsq0\n jlNu2eXk0oaYOUkAY5wluXl5DVPMwlt3xxF5DCJTCqMzNitowgZHh58BXB/ardkl+XG6\n p26IlA/jdqFw393FKT+tK57Bqdr1xkV0We3GuUFWFiv4nAC7gDwtnAydiC8bHZZ1qOsf uQ==",
        "From": "Anoob Joseph <anoobj@marvell.com>",
        "To": "Thomas Monjalon <thomas@monjalon.net>, Akhil Goyal <gakhil@marvell.com>,\n Jerin Jacob <jerinj@marvell.com>, Konstantin Ananyev\n <konstantin.v.ananyev@yandex.ru>, Bernard Iremonger\n <bernard.iremonger@intel.com>",
        "CC": "Volodymyr Fialko <vfialko@marvell.com>,\n Hemant Agrawal <hemant.agrawal@nxp.com>,\n =?utf-8?q?Mattias_R=C3=B6nnblom?= <mattias.ronnblom@ericsson.com>,\n Kiran Kumar K <kirankumark@marvell.com>, <dev@dpdk.org>,\n Olivier Matz <olivier.matz@6wind.com>",
        "Subject": "[PATCH v2 22/22] test/pdcp: add PDCP status report cases",
        "Date": "Fri, 14 Apr 2023 23:15:12 +0530",
        "Message-ID": "<20230414174512.642-23-anoobj@marvell.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20230414174512.642-1-anoobj@marvell.com>",
        "References": "<20221222092522.1628-1-anoobj@marvell.com>\n <20230414174512.642-1-anoobj@marvell.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Proofpoint-GUID": "T5BydYO3n-Sm4M-MK8lGG4EmL_Z45glf",
        "X-Proofpoint-ORIG-GUID": "T5BydYO3n-Sm4M-MK8lGG4EmL_Z45glf",
        "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22\n definitions=2023-04-14_10,2023-04-14_01,2023-02-09_01",
        "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: Volodymyr Fialko <vfialko@marvell.com>\n\nTest PDCP status report generation.\n\nSigned-off-by: Anoob Joseph <anoobj@marvell.com>\nSigned-off-by: Volodymyr Fialko <vfialko@marvell.com>\n---\n app/test/test_pdcp.c | 310 +++++++++++++++++++++++++++++++++++++++++++\n 1 file changed, 310 insertions(+)",
    "diff": "diff --git a/app/test/test_pdcp.c b/app/test/test_pdcp.c\nindex de3375bb22..c9e4b894ac 100644\n--- a/app/test/test_pdcp.c\n+++ b/app/test/test_pdcp.c\n@@ -2,6 +2,7 @@\n  * Copyright(C) 2023 Marvell.\n  */\n \n+#include <rte_bitmap.h>\n #include <rte_errno.h>\n #include <rte_eventdev.h>\n #include <rte_event_timer_adapter.h>\n@@ -43,6 +44,9 @@ struct pdcp_testsuite_params {\n \tstruct rte_event_timer_adapter *timdev;\n \tbool timer_is_running;\n \tuint64_t min_resolution_ns;\n+\tstruct rte_pdcp_up_ctrl_pdu_hdr *status_report;\n+\tuint32_t status_report_bitmask_capacity;\n+\tuint8_t *ctrl_pdu_buf;\n };\n \n static struct pdcp_testsuite_params testsuite_params;\n@@ -139,6 +143,18 @@ static struct rte_pdcp_t_reordering t_reorder_timer = {\n \t.stop = pdcp_timer_stop_cb,\n };\n \n+static inline void\n+bitmask_set_bit(uint8_t *mask, uint32_t bit)\n+{\n+\tmask[bit / 8] |= (1 << bit % 8);\n+}\n+\n+static inline bool\n+bitmask_is_bit_set(const uint8_t *mask, uint32_t bit)\n+{\n+\treturn mask[bit / 8] & (1 << (bit % 8));\n+}\n+\n static inline int\n pdcp_hdr_size_get(enum rte_security_pdcp_sn_size sn_size)\n {\n@@ -285,6 +301,21 @@ testsuite_setup(void)\n \t\tgoto cop_pool_free;\n \t}\n \n+\t/* Allocate memory for longest possible status report */\n+\tts_params->status_report_bitmask_capacity = RTE_PDCP_CTRL_PDU_SIZE_MAX -\n+\t\tsizeof(struct rte_pdcp_up_ctrl_pdu_hdr);\n+\tts_params->status_report = rte_zmalloc(NULL, RTE_PDCP_CTRL_PDU_SIZE_MAX, 0);\n+\tif (ts_params->status_report == NULL) {\n+\t\tRTE_LOG(ERR, USER1, \"Could not allocate status report\\n\");\n+\t\tgoto cop_pool_free;\n+\t}\n+\n+\tts_params->ctrl_pdu_buf = rte_zmalloc(NULL, RTE_PDCP_CTRL_PDU_SIZE_MAX, 0);\n+\tif (ts_params->ctrl_pdu_buf == NULL) {\n+\t\tRTE_LOG(ERR, USER1, \"Could not allocate status report data\\n\");\n+\t\tgoto cop_pool_free;\n+\t}\n+\n \treturn 0;\n \n cop_pool_free:\n@@ -293,6 +324,8 @@ testsuite_setup(void)\n mbuf_pool_free:\n \trte_mempool_free(ts_params->mbuf_pool);\n \tts_params->mbuf_pool = NULL;\n+\trte_free(ts_params->status_report);\n+\trte_free(ts_params->ctrl_pdu_buf);\n \treturn TEST_FAILED;\n }\n \n@@ -315,6 +348,9 @@ testsuite_teardown(void)\n \n \trte_mempool_free(ts_params->mbuf_pool);\n \tts_params->mbuf_pool = NULL;\n+\n+\trte_free(ts_params->status_report);\n+\trte_free(ts_params->ctrl_pdu_buf);\n }\n \n static int\n@@ -1364,6 +1400,244 @@ test_expiry_with_rte_timer(const struct pdcp_test_conf *ul_conf)\n \treturn ret;\n }\n \n+static struct rte_pdcp_up_ctrl_pdu_hdr *\n+pdcp_status_report_init(uint32_t fmc)\n+{\n+\tstruct rte_pdcp_up_ctrl_pdu_hdr *hdr = testsuite_params.status_report;\n+\n+\thdr->d_c = RTE_PDCP_PDU_TYPE_CTRL;\n+\thdr->pdu_type = RTE_PDCP_CTRL_PDU_TYPE_STATUS_REPORT;\n+\thdr->fmc = rte_cpu_to_be_32(fmc);\n+\thdr->r = 0;\n+\tmemset(hdr->bitmap, 0, testsuite_params.status_report_bitmask_capacity);\n+\n+\treturn hdr;\n+}\n+\n+static uint32_t\n+pdcp_status_report_len(void)\n+{\n+\tstruct rte_pdcp_up_ctrl_pdu_hdr *hdr = testsuite_params.status_report;\n+\tuint32_t i;\n+\n+\tfor (i = testsuite_params.status_report_bitmask_capacity; i != 0; i--) {\n+\t\tif (hdr->bitmap[i - 1])\n+\t\t\treturn i;\n+\t}\n+\n+\treturn 0;\n+}\n+\n+static int\n+pdcp_status_report_verify(struct rte_mbuf *status_report,\n+\t\t\t const struct rte_pdcp_up_ctrl_pdu_hdr *expected_hdr, uint32_t expected_len)\n+{\n+\tuint32_t received_len = rte_pktmbuf_pkt_len(status_report);\n+\tuint8_t *received_buf = testsuite_params.ctrl_pdu_buf;\n+\tint ret;\n+\n+\tret = pktmbuf_read_into(status_report, received_buf, RTE_PDCP_CTRL_PDU_SIZE_MAX);\n+\tTEST_ASSERT_SUCCESS(ret, \"Failed to copy status report pkt into continuous buffer\");\n+\n+\tdebug_hexdump(stdout, \"Received:\", received_buf, received_len);\n+\tdebug_hexdump(stdout, \"Expected:\", expected_hdr, expected_len);\n+\n+\tTEST_ASSERT_EQUAL(expected_len, received_len,\n+\t\t\t  \"Mismatch in packet lengths [expected: %d, received: %d]\",\n+\t\t\t  expected_len, received_len);\n+\n+\tTEST_ASSERT_BUFFERS_ARE_EQUAL(received_buf, expected_hdr, expected_len,\n+\t\t\t\t     \"Generated packet not as expected\");\n+\n+\treturn 0;\n+}\n+\n+static int\n+test_status_report_gen(const struct pdcp_test_conf *ul_conf,\n+\t\t       const struct rte_pdcp_up_ctrl_pdu_hdr *hdr,\n+\t\t       uint32_t bitmap_len)\n+{\n+\tstruct rte_mbuf *status_report = NULL, **out_mb, *m;\n+\tuint16_t nb_success = 0, nb_err = 0;\n+\tstruct rte_pdcp_entity *pdcp_entity;\n+\tstruct pdcp_test_conf dl_conf;\n+\tint ret = TEST_FAILED, nb_out;\n+\tuint32_t nb_pkts = 0, i;\n+\tuint8_t cdev_id;\n+\n+\tconst uint32_t start_count = rte_be_to_cpu_32(hdr->fmc);\n+\n+\tif (ul_conf->entity.pdcp_xfrm.pkt_dir == RTE_SECURITY_PDCP_DOWNLINK)\n+\t\treturn TEST_SKIPPED;\n+\n+\t/* Create configuration for actual testing */\n+\tuplink_to_downlink_convert(ul_conf, &dl_conf);\n+\tdl_conf.entity.count = start_count;\n+\tdl_conf.entity.status_report_required = true;\n+\n+\tpdcp_entity = test_entity_create(&dl_conf, &ret);\n+\tif (pdcp_entity == NULL)\n+\t\treturn ret;\n+\n+\tcdev_id = dl_conf.entity.dev_id;\n+\tout_mb = calloc(pdcp_entity->max_pkt_cache, sizeof(uintptr_t));\n+\n+\tfor (i = 0; i < bitmap_len * 8; i++) {\n+\t\tif (!bitmask_is_bit_set(hdr->bitmap, i))\n+\t\t\tcontinue;\n+\n+\t\tm = generate_packet_for_dl_with_sn(*ul_conf, start_count + i + 1);\n+\t\tASSERT_TRUE_OR_GOTO(m != NULL, exit, \"Could not allocate buffer for packet\\n\");\n+\n+\t\tnb_success = test_process_packets(pdcp_entity, cdev_id, &m, 1, out_mb, &nb_err);\n+\t\tASSERT_TRUE_OR_GOTO(nb_err == 0, exit, \"Error occurred during packet buffering\\n\");\n+\t\tASSERT_TRUE_OR_GOTO(nb_success == 0, exit, \"Packet was not buffered as expected\\n\");\n+\n+\t}\n+\n+\tm = NULL;\n+\n+\t/* Check status report */\n+\tstatus_report = rte_pdcp_control_pdu_create(pdcp_entity,\n+\t\t\tRTE_PDCP_CTRL_PDU_TYPE_STATUS_REPORT);\n+\tASSERT_TRUE_OR_GOTO(status_report != NULL, exit, \"Could not generate status report\\n\");\n+\n+\tconst uint32_t expected_len = sizeof(struct rte_pdcp_up_ctrl_pdu_hdr) + bitmap_len;\n+\n+\tASSERT_TRUE_OR_GOTO(pdcp_status_report_verify(status_report, hdr, expected_len) == 0, exit,\n+\t\t\t   \"Report verification failure\\n\");\n+\n+\tret = TEST_SUCCESS;\n+exit:\n+\trte_free(m);\n+\trte_pktmbuf_free(status_report);\n+\trte_pktmbuf_free_bulk(out_mb, nb_pkts);\n+\tnb_out = rte_pdcp_entity_release(pdcp_entity, out_mb);\n+\trte_pktmbuf_free_bulk(out_mb, nb_out);\n+\tfree(out_mb);\n+\treturn ret;\n+}\n+\n+static void\n+ctrl_pdu_hdr_packet_set(struct rte_pdcp_up_ctrl_pdu_hdr *hdr, uint32_t pkt_count)\n+{\n+\tbitmask_set_bit(hdr->bitmap, pkt_count - rte_be_to_cpu_32(hdr->fmc) - 1);\n+}\n+\n+static int\n+test_status_report_fmc_only(const struct pdcp_test_conf *ul_conf)\n+{\n+\tstruct rte_pdcp_up_ctrl_pdu_hdr *hdr = pdcp_status_report_init(42);\n+\n+\treturn test_status_report_gen(ul_conf, hdr, pdcp_status_report_len());\n+}\n+\n+static int\n+test_status_report_one_pkt_first_slab(const struct pdcp_test_conf *ul_conf)\n+{\n+\tstruct rte_pdcp_up_ctrl_pdu_hdr *hdr = pdcp_status_report_init(0);\n+\n+\tctrl_pdu_hdr_packet_set(hdr, RTE_BITMAP_SLAB_BIT_SIZE / 2 + 1);\n+\n+\treturn test_status_report_gen(ul_conf, hdr, pdcp_status_report_len());\n+}\n+\n+static int\n+test_status_report_one_pkt_second_slab(const struct pdcp_test_conf *ul_conf)\n+{\n+\tstruct rte_pdcp_up_ctrl_pdu_hdr *hdr = pdcp_status_report_init(1);\n+\n+\tctrl_pdu_hdr_packet_set(hdr, RTE_BITMAP_SLAB_BIT_SIZE + 1);\n+\n+\treturn test_status_report_gen(ul_conf, hdr, pdcp_status_report_len());\n+}\n+\n+static int\n+test_status_report_full_slab(const struct pdcp_test_conf *ul_conf)\n+{\n+\tstruct rte_pdcp_up_ctrl_pdu_hdr *hdr = pdcp_status_report_init(1);\n+\tconst uint32_t start_offset = RTE_BITMAP_SLAB_BIT_SIZE + 1;\n+\tint i;\n+\n+\tfor (i = 0; i < RTE_BITMAP_SLAB_BIT_SIZE; i++)\n+\t\tctrl_pdu_hdr_packet_set(hdr, start_offset + i);\n+\n+\treturn test_status_report_gen(ul_conf, hdr, pdcp_status_report_len());\n+}\n+\n+static int\n+test_status_report_two_sequential_slabs(const struct pdcp_test_conf *ul_conf)\n+{\n+\tstruct rte_pdcp_up_ctrl_pdu_hdr *hdr = pdcp_status_report_init(0);\n+\tconst uint32_t start_offset = RTE_BITMAP_SLAB_BIT_SIZE / 2 + 1;\n+\n+\tctrl_pdu_hdr_packet_set(hdr, start_offset);\n+\tctrl_pdu_hdr_packet_set(hdr, start_offset + RTE_BITMAP_SLAB_BIT_SIZE);\n+\n+\treturn test_status_report_gen(ul_conf, hdr, pdcp_status_report_len());\n+}\n+\n+static int\n+test_status_report_two_non_sequential_slabs(const struct pdcp_test_conf *ul_conf)\n+{\n+\tstruct rte_pdcp_up_ctrl_pdu_hdr *hdr = pdcp_status_report_init(0);\n+\tconst uint32_t start_offset = RTE_BITMAP_SLAB_BIT_SIZE / 2 + 1;\n+\n+\tctrl_pdu_hdr_packet_set(hdr, start_offset);\n+\tctrl_pdu_hdr_packet_set(hdr, start_offset + RTE_BITMAP_SLAB_BIT_SIZE);\n+\tctrl_pdu_hdr_packet_set(hdr, 3 * RTE_BITMAP_SLAB_BIT_SIZE);\n+\n+\treturn test_status_report_gen(ul_conf, hdr, pdcp_status_report_len());\n+}\n+\n+static int\n+test_status_report_max_length_sn_12(const struct pdcp_test_conf *ul_conf)\n+{\n+\tstruct rte_pdcp_up_ctrl_pdu_hdr *hdr;\n+\tconst uint32_t fmc = 0;\n+\tuint32_t i;\n+\n+\tif (ul_conf->entity.pdcp_xfrm.pkt_dir == RTE_SECURITY_PDCP_DOWNLINK ||\n+\t\tul_conf->entity.pdcp_xfrm.sn_size != RTE_SECURITY_PDCP_SN_SIZE_12)\n+\t\treturn TEST_SKIPPED;\n+\n+\thdr = pdcp_status_report_init(fmc);\n+\n+\tconst uint32_t max_count = RTE_MIN((RTE_PDCP_CTRL_PDU_SIZE_MAX - sizeof(hdr)) * 8,\n+\t\t\t(uint32_t)PDCP_WINDOW_SIZE(RTE_SECURITY_PDCP_SN_SIZE_12));\n+\n+\ti = fmc + 2; /* set first count to have a gap, to enable packet buffering */\n+\n+\tfor (; i < max_count; i++)\n+\t\tctrl_pdu_hdr_packet_set(hdr, i);\n+\n+\treturn test_status_report_gen(ul_conf, hdr, pdcp_status_report_len());\n+}\n+\n+static int\n+test_status_report_overlap_different_slabs(const struct pdcp_test_conf *ul_conf)\n+{\n+\tstruct rte_pdcp_up_ctrl_pdu_hdr *hdr = pdcp_status_report_init(63);\n+\tconst uint32_t sn_size = 12;\n+\n+\tctrl_pdu_hdr_packet_set(hdr, 64 + 1);\n+\tctrl_pdu_hdr_packet_set(hdr, PDCP_WINDOW_SIZE(sn_size) + 1);\n+\n+\treturn test_status_report_gen(ul_conf, hdr, pdcp_status_report_len());\n+}\n+\n+static int\n+test_status_report_overlap_same_slab(const struct pdcp_test_conf *ul_conf)\n+{\n+\tstruct rte_pdcp_up_ctrl_pdu_hdr *hdr = pdcp_status_report_init(2);\n+\tconst uint32_t sn_size = 12;\n+\n+\tctrl_pdu_hdr_packet_set(hdr, 4);\n+\tctrl_pdu_hdr_packet_set(hdr, PDCP_WINDOW_SIZE(sn_size) + 1);\n+\n+\treturn test_status_report_gen(ul_conf, hdr, pdcp_status_report_len());\n+}\n+\n static int\n test_combined(struct pdcp_test_conf *ul_conf)\n {\n@@ -1555,11 +1829,47 @@ static struct unit_test_suite reorder_test_cases  = {\n \t}\n };\n \n+static struct unit_test_suite status_report_test_cases  = {\n+\t.suite_name = \"PDCP status report\",\n+\t.unit_test_cases = {\n+\t\tTEST_CASE_NAMED_WITH_DATA(\"test_status_report_fmc_only\",\n+\t\t\tut_setup_pdcp, ut_teardown_pdcp,\n+\t\t\trun_test_with_all_known_vec, test_status_report_fmc_only),\n+\t\tTEST_CASE_NAMED_WITH_DATA(\"test_status_report_one_pkt_first_slab\",\n+\t\t\tut_setup_pdcp, ut_teardown_pdcp,\n+\t\t\trun_test_with_all_known_vec, test_status_report_one_pkt_first_slab),\n+\t\tTEST_CASE_NAMED_WITH_DATA(\"test_status_report_one_pkt_second_slab\",\n+\t\t\tut_setup_pdcp, ut_teardown_pdcp,\n+\t\t\trun_test_with_all_known_vec, test_status_report_one_pkt_second_slab),\n+\t\tTEST_CASE_NAMED_WITH_DATA(\"test_status_report_full_slab\",\n+\t\t\tut_setup_pdcp, ut_teardown_pdcp,\n+\t\t\trun_test_with_all_known_vec, test_status_report_full_slab),\n+\t\tTEST_CASE_NAMED_WITH_DATA(\"test_status_report_two_sequential_slabs\",\n+\t\t\tut_setup_pdcp, ut_teardown_pdcp,\n+\t\t\trun_test_with_all_known_vec, test_status_report_two_sequential_slabs),\n+\t\tTEST_CASE_NAMED_WITH_DATA(\"test_status_report_two_non_sequential_slabs\",\n+\t\t\tut_setup_pdcp, ut_teardown_pdcp,\n+\t\t\trun_test_with_all_known_vec, test_status_report_two_non_sequential_slabs),\n+\t\tTEST_CASE_NAMED_WITH_DATA(\"test_status_report_max_length_sn_12\",\n+\t\t\tut_setup_pdcp, ut_teardown_pdcp,\n+\t\t\trun_test_with_all_known_vec_until_first_pass,\n+\t\t\ttest_status_report_max_length_sn_12),\n+\t\tTEST_CASE_NAMED_WITH_DATA(\"test_status_report_overlap_different_slabs\",\n+\t\t\tut_setup_pdcp, ut_teardown_pdcp,\n+\t\t\trun_test_with_all_known_vec, test_status_report_overlap_different_slabs),\n+\t\tTEST_CASE_NAMED_WITH_DATA(\"test_status_report_overlap_same_slab\",\n+\t\t\tut_setup_pdcp, ut_teardown_pdcp,\n+\t\t\trun_test_with_all_known_vec, test_status_report_overlap_same_slab),\n+\t\tTEST_CASES_END() /**< NULL terminate unit test array */\n+\t}\n+};\n+\n struct unit_test_suite *test_suites[] = {\n \tNULL, /* Place holder for known_vector_cases */\n \t&combined_mode_cases,\n \t&hfn_sn_test_cases,\n \t&reorder_test_cases,\n+\t&status_report_test_cases,\n \tNULL /* End of suites list */\n };\n \n",
    "prefixes": [
        "v2",
        "22/22"
    ]
}