get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 136111,
    "url": "http://patches.dpdk.org/api/patches/136111/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20240124185406.3598985-1-ferruh.yigit@amd.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": "<20240124185406.3598985-1-ferruh.yigit@amd.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20240124185406.3598985-1-ferruh.yigit@amd.com",
    "date": "2024-01-24T18:53:58",
    "name": "[v2,1/8] pipeline: fix calloc parameters",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "e77f0d656fecddefd6e5cef59589653ae34a0ffc",
    "submitter": {
        "id": 2700,
        "url": "http://patches.dpdk.org/api/people/2700/?format=api",
        "name": "Ferruh Yigit",
        "email": "ferruh.yigit@amd.com"
    },
    "delegate": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20240124185406.3598985-1-ferruh.yigit@amd.com/mbox/",
    "series": [
        {
            "id": 30907,
            "url": "http://patches.dpdk.org/api/series/30907/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=30907",
            "date": "2024-01-24T18:53:58",
            "name": "[v2,1/8] pipeline: fix calloc parameters",
            "version": 2,
            "mbox": "http://patches.dpdk.org/series/30907/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/136111/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/136111/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 188CC439B8;\n\tWed, 24 Jan 2024 19:54:31 +0100 (CET)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 91D4D4027A;\n\tWed, 24 Jan 2024 19:54:30 +0100 (CET)",
            "from NAM12-BN8-obe.outbound.protection.outlook.com\n (mail-bn8nam12on2046.outbound.protection.outlook.com [40.107.237.46])\n by mails.dpdk.org (Postfix) with ESMTP id 14B3D40262;\n Wed, 24 Jan 2024 19:54:29 +0100 (CET)",
            "from BYAPR01CA0019.prod.exchangelabs.com (2603:10b6:a02:80::32) by\n MN2PR12MB4093.namprd12.prod.outlook.com (2603:10b6:208:198::11) with\n Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7228.22; Wed, 24 Jan\n 2024 18:54:27 +0000",
            "from SJ1PEPF00001CE9.namprd03.prod.outlook.com\n (2603:10b6:a02:80:cafe::5e) by BYAPR01CA0019.outlook.office365.com\n (2603:10b6:a02:80::32) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7202.38 via Frontend\n Transport; Wed, 24 Jan 2024 18:54:26 +0000",
            "from SATLEXMB04.amd.com (165.204.84.17) by\n SJ1PEPF00001CE9.mail.protection.outlook.com (10.167.242.25) with Microsoft\n SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id\n 15.20.7202.16 via Frontend Transport; Wed, 24 Jan 2024 18:54:26 +0000",
            "from telcodpdk.amd.com (10.180.168.240) by SATLEXMB04.amd.com\n (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34; Wed, 24 Jan\n 2024 12:54:24 -0600"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;\n b=XMo0C90B/uY7I+wk/xoT/WFwPeg5xH26SwEbHjMT6ap5BSu8Y5AEYzv4AuBU/mrDsGFmF1JOk52kY4lfWrmXeze0+cKs4EPA3L52jquwMCG2iK75L4G46NQPimEWw6msaD5AoIEJjVBcSizzUXazpvbOAz0P5HUhC0bgBCvl68xTkx0FSCfJepmUuYDTEOp8cO2XwFfU9XPyL/6CQsobsrVITQ7TmzmKGWesc2SPrUGe8jI4b+FdSxDk7+2R+Ztn6kK/Dl6o26CkuoNakZQksI6W+FUyU5v942YbQtaj1acOapaHFscgT7pA6wLycJvbzinmpl0hGnTA4YHurXlaRA==",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;\n s=arcselector9901;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;\n bh=kplrD0S33HLygz4vlAJXMXefzehZ9GT5aQhV4OtnEpY=;\n b=Wgf6335vYl3FydI4fe+I4Ea403VJNk0IXS/X5Jx3CEkv00/vX/xh2oIYCVnynF1gOK9a0e5ThuCKD0hlWRC9KcXRU06L8ifSX7QUFw2I16GvGv4BCjLgxDTO3bi5zjiUpuxKloo/xhHburBmNtD1m5qbYXn/R4B2jQCgcjYQwUZhUM2xySGoyAa8kzvP4YoH6iw9AQ4fmtnz4kczofGBQa1an2fLL4BuUhPPfA+j1/SRGLT2tOIMHh66RKxVY4jMlZMXxCyHq+nS1hYgolJVuHnKZQSXwjZgKdtxYxbZSI6JYGpcMy1+l69yDFX4AQ3+NkQ7F4ZHcSyQJhF+z6GOFg==",
        "ARC-Authentication-Results": "i=1; mx.microsoft.com 1; spf=pass (sender ip is\n 165.204.84.17) smtp.rcpttodomain=intel.com smtp.mailfrom=amd.com; dmarc=pass\n (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com;\n dkim=none (message not signed); arc=none (0)",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;\n bh=kplrD0S33HLygz4vlAJXMXefzehZ9GT5aQhV4OtnEpY=;\n b=reCWrQpjLh+dLDXKejte6/HLV7y+EP29li85UeLS+1BKuga9KpmLrajdU2AWJevSOVc3NR0LMm/oAjfttfC1cah/OjV7NcO6Pn+/i266YLZv/tqSEFEPdow0Y+2OoDpbGGUnYb/exbTD4WFurwd7A9mRPgEMFK0/RUjrH8ltI6I=",
        "X-MS-Exchange-Authentication-Results": "spf=pass (sender IP is 165.204.84.17)\n smtp.mailfrom=amd.com; dkim=none (message not signed)\n header.d=none;dmarc=pass action=none header.from=amd.com;",
        "Received-SPF": "Pass (protection.outlook.com: domain of amd.com designates\n 165.204.84.17 as permitted sender) receiver=protection.outlook.com;\n client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C",
        "From": "Ferruh Yigit <ferruh.yigit@amd.com>",
        "To": "Cristian Dumitrescu <cristian.dumitrescu@intel.com>, Kamalakannan R\n <kamalakannan.r@intel.com>",
        "CC": "<dev@dpdk.org>, <stable@dpdk.org>",
        "Subject": "[PATCH v2 1/8] pipeline: fix calloc parameters",
        "Date": "Wed, 24 Jan 2024 18:53:58 +0000",
        "Message-ID": "<20240124185406.3598985-1-ferruh.yigit@amd.com>",
        "X-Mailer": "git-send-email 2.34.1",
        "In-Reply-To": "<20231102130847.3367102-1-ferruh.yigit@amd.com>",
        "References": "<20231102130847.3367102-1-ferruh.yigit@amd.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"UTF-8\"",
        "Content-Transfer-Encoding": "8bit",
        "X-Originating-IP": "[10.180.168.240]",
        "X-ClientProxiedBy": "SATLEXMB04.amd.com (10.181.40.145) To SATLEXMB04.amd.com\n (10.181.40.145)",
        "X-EOPAttributedMessage": "0",
        "X-MS-PublicTrafficType": "Email",
        "X-MS-TrafficTypeDiagnostic": "SJ1PEPF00001CE9:EE_|MN2PR12MB4093:EE_",
        "X-MS-Office365-Filtering-Correlation-Id": "d257ab8d-64ee-404e-0e77-08dc1d0de339",
        "X-MS-Exchange-SenderADCheck": "1",
        "X-MS-Exchange-AntiSpam-Relay": "0",
        "X-Microsoft-Antispam": "BCL:0;",
        "X-Microsoft-Antispam-Message-Info": "\n 3e5Vtdq6zqPNS87E2p6lv92EdLkd7Np6T6wUdU+QVo2447gXhy3CJYkTbGlNI7k1mnLYXSwM5i/feRtIhCixsrtOnKzl32ghpj7iSRE0gix7cQ4VjXEQ82n1IeJEuz2eBcotiB6ZvXHlX09MV7vi5T7UU/4Xg4tWFL2rVjHn80QC23wvpfhXc+838BaL03QIJW6Ws4K/isfjPv8lOMG4dBDU0IBG9sjTGFWRpIW1o1vL61ogucBFSiSnN32voqpJ0/PTgkLYBxGt9m7bVPisprb93ZMrAFEgTu3fC2L2W7S58Mwp6atyV1Hcs2WKhHc4po4N4CBM9N6a4WbWctfGTwalF0/ZRfw993JiLKzS3COIsGGwYot6ch7Tlw1aq3U1DMO3YrvyFaC928pt5sZixVADhoQYvwzwn02PvOZs4vRdSUyLhATj+nlxJe2wfGVDhUcX8wj/H41ygjPFJ02T9hYD9a9rjUnFWXv87+pE6Uqn6qGl05B/PPUsSAKzZlFgC7IMpaau6GsViXVE5mT7vvn+yfmsiPM4mVaAtAStGeUpqlZLHGzbBbblRvT4CbH6vLTzqLQfCZgZXU/Sx/tGZzvjkPfXQ4DWj4E4ZrRdCZsE+L+/ZXqE8le2EkXlfNlE9RjrzkHXpiiHxuQaKizJ940V5AREYPnBCqWu5+GDN/wa4t83ui7tys53xrM/wl3eLUKpIaxJaefva+UxT8EDLNhgU9nUU4WmAWM26C4RCpqtys87frnkjFqqhe/JUTn3F8bMrMSbU2qIETR++SpyWI2eHbkNplqEb5wp0q6ioRJadhAErBThYVbfW3WYUFj0",
        "X-Forefront-Antispam-Report": "CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:;\n IPV:CAL; SFV:NSPM; H:SATLEXMB04.amd.com; PTR:InfoDomainNonexistent; CAT:NONE;\n SFS:(13230031)(4636009)(396003)(136003)(346002)(39860400002)(376002)(230922051799003)(230173577357003)(230273577357003)(451199024)(186009)(1800799012)(82310400011)(64100799003)(40470700004)(46966006)(36840700001)(4326008)(8676002)(8936002)(36756003)(2906002)(7696005)(426003)(336012)(83380400001)(44832011)(2616005)(16526019)(26005)(5660300002)(1076003)(110136005)(478600001)(86362001)(41300700001)(70586007)(70206006)(6666004)(54906003)(356005)(316002)(47076005)(81166007)(40480700001)(40460700003)(36860700001)(82740400003)(36900700001);\n DIR:OUT; SFP:1101;",
        "X-OriginatorOrg": "amd.com",
        "X-MS-Exchange-CrossTenant-OriginalArrivalTime": "24 Jan 2024 18:54:26.2309 (UTC)",
        "X-MS-Exchange-CrossTenant-Network-Message-Id": "\n d257ab8d-64ee-404e-0e77-08dc1d0de339",
        "X-MS-Exchange-CrossTenant-Id": "3dd8961f-e488-4e60-8e11-a82d994e183d",
        "X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp": "\n TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17];\n Helo=[SATLEXMB04.amd.com]",
        "X-MS-Exchange-CrossTenant-AuthSource": "\n SJ1PEPF00001CE9.namprd03.prod.outlook.com",
        "X-MS-Exchange-CrossTenant-AuthAs": "Anonymous",
        "X-MS-Exchange-CrossTenant-FromEntityHeader": "HybridOnPrem",
        "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "MN2PR12MB4093",
        "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": "gcc [1] generates warning [2] about calloc usage, because calloc\nparameter order is wrong, fixing it by replacing parameters.\n\n[1]\ngcc (GCC) 14.0.0 20231102 (experimental)\n\n[2]\n Compiling C object .../pipeline_rte_swx_pipeline_spec.c.o\n.../rte_swx_pipeline_spec.c: In function ‘pipeline_spec_parse’:\n../lib/pipeline/rte_swx_pipeline_spec.c:2893:11:\n  warning: allocation of insufficient size ‘1’ for type\n           ‘struct pipeline_spec’ with size ‘144’ [-Walloc-size]\n 2893 |         s = calloc(sizeof(struct pipeline_spec), 1);\n      |           ^\n\n.../rte_swx_pipeline_spec.c: In function ‘pipeline_iospec_parse’:\n../lib/pipeline/rte_swx_pipeline_spec.c:4244:11:\n  warning: allocation of insufficient size ‘1’ for type\n           ‘struct pipeline_iospec’ with size ‘64’ [-Walloc-size]\n 4244 |         s = calloc(sizeof(struct pipeline_iospec), 1);\n      |           ^\n\nFixes: 30c4abb90942 (\"pipeline: rework specification file-based pipeline build\")\nFixes: 54cae37ef4ef (\"pipeline: support I/O specification\")\nCc: stable@dpdk.org\n\nSigned-off-by: Ferruh Yigit <ferruh.yigit@amd.com>\nAcked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>\n---\nCc: cristian.dumitrescu@intel.com\n---\n lib/pipeline/rte_swx_pipeline_spec.c | 4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/lib/pipeline/rte_swx_pipeline_spec.c b/lib/pipeline/rte_swx_pipeline_spec.c\nindex 2bba0d0524d0..17419e7b854b 100644\n--- a/lib/pipeline/rte_swx_pipeline_spec.c\n+++ b/lib/pipeline/rte_swx_pipeline_spec.c\n@@ -2890,7 +2890,7 @@ pipeline_spec_parse(FILE *spec,\n \t}\n \n \t/* Memory allocation. */\n-\ts = calloc(sizeof(struct pipeline_spec), 1);\n+\ts = calloc(1, sizeof(struct pipeline_spec));\n \tif (!s) {\n \t\tif (err_line)\n \t\t\t*err_line = n_lines;\n@@ -4241,7 +4241,7 @@ pipeline_iospec_parse(FILE *spec,\n \t}\n \n \t/* Memory allocation. */\n-\ts = calloc(sizeof(struct pipeline_iospec), 1);\n+\ts = calloc(1, sizeof(struct pipeline_iospec));\n \tif (!s) {\n \t\tif (err_line)\n \t\t\t*err_line = n_lines;\n",
    "prefixes": [
        "v2",
        "1/8"
    ]
}