Show a cover letter.

GET /api/covers/105572/?format=api
HTTP 200 OK
Allow: GET, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 105572,
    "url": "http://patches.dpdk.org/api/covers/105572/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/cover/20220103142201.475552-1-amo@semihalf.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": "<20220103142201.475552-1-amo@semihalf.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20220103142201.475552-1-amo@semihalf.com",
    "date": "2022-01-03T14:22:00",
    "name": "[0/1] Minor mistake in ring (en|de)queueing",
    "submitter": {
        "id": 1112,
        "url": "http://patches.dpdk.org/api/people/1112/?format=api",
        "name": "Andrzej Ostruszka",
        "email": "amo@semihalf.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/cover/20220103142201.475552-1-amo@semihalf.com/mbox/",
    "series": [
        {
            "id": 21050,
            "url": "http://patches.dpdk.org/api/series/21050/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=21050",
            "date": "2022-01-03T14:22:00",
            "name": "Minor mistake in ring (en|de)queueing",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/21050/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/covers/105572/comments/",
    "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 5A277A04A3;\n\tMon,  3 Jan 2022 15:23:12 +0100 (CET)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id D4FB340042;\n\tMon,  3 Jan 2022 15:23:11 +0100 (CET)",
            "from mail-lj1-f178.google.com (mail-lj1-f178.google.com\n [209.85.208.178])\n by mails.dpdk.org (Postfix) with ESMTP id BDF3A4003C\n for <dev@dpdk.org>; Mon,  3 Jan 2022 15:23:10 +0100 (CET)",
            "by mail-lj1-f178.google.com with SMTP id p7so55265492ljj.1\n for <dev@dpdk.org>; Mon, 03 Jan 2022 06:23:10 -0800 (PST)",
            "from andrzejo-l.semihalf.net ([83.142.187.84])\n by smtp.googlemail.com with ESMTPSA id p19sm3420800ljj.17.2022.01.03.06.23.09\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Mon, 03 Jan 2022 06:23:09 -0800 (PST)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=semihalf-com.20210112.gappssmtp.com; s=20210112;\n h=from:to:cc:subject:date:message-id:mime-version\n :content-transfer-encoding;\n bh=gdoBEl6zqgwxd+FqkUT+Ug9xzujwhEQvS1hAGN7Gvms=;\n b=Uw0qxJZDiM4TCLy8dHnI2ea8WZXMopPmq3rHFvFLazYEbMrZFh9gwJWo/QlZJA5cy4\n /28iQgsUO/wPQKIeedubikHxFtYXLUvtKDzDg8ncnR8iunH60BqRubN+0NaU+Fy2yIm+\n YjdFhf37awexyM4gznmGMLb0Hi3CzbGoXjAJstuFr9dtIDdpVCw/tzXZBf7lGC6lp/Ln\n BiB/j6SasDUZ6ZJeIeol5v+gcwgZgRJhG6TmReqF5OddNReSS0CS7lo3i361D2/AnOcf\n FB0dXWDGp3wmokkBp6oN2/CLLp5Wya4mXIkjEEoW9rglpPkn5M8AbLryqj4Hu9dayE8P\n egng==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20210112;\n h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version\n :content-transfer-encoding;\n bh=gdoBEl6zqgwxd+FqkUT+Ug9xzujwhEQvS1hAGN7Gvms=;\n b=Fn6bF2J9Tuo684sA2zQRVOtwLzd9mEEOcz4mLM3Jfz8ZtmQKtJdg99EqmH/RCjNFRI\n ThGj+F2JLAdv0gJEjBcDlxlc7LFdrS19nFy6jdlW/YGQiRJPPfopKMVi8gzWDzEHNiPY\n E4LxDDBF11gm1hEkAI37ByL7dnedsoJ1NQCyX1oOtUARHMXZELOjZHnAcf9SFmo4ipbr\n 910xd5oHajgRZmLPBWwpLafEwdEF8if88l04bPgsXoPJipIrDzKETACMYjx9TOFewhKs\n +SM1lp+h84H9fR7x0Yu9X5a0JX5sv0ZrWxX9o7bYbMAljIh83NohufMrfEwt0Jn0X2/X\n 4ofg==",
        "X-Gm-Message-State": "AOAM533ABbUPSOpBfeKQajMDIsqTpHZFqcJ1UB6jBkw8y6u8iKOS/z2t\n lgQZDek1KCnrF2GRl23tIa8fgdGD63DxEg==",
        "X-Google-Smtp-Source": "\n ABdhPJyUZ1L/cnNwYvDX7pGpAORqUPP806LfX3OOh8cb8ZWaLJMvR/+FhgXE9ak/zuweZMReucmUEQ==",
        "X-Received": "by 2002:a2e:83cd:: with SMTP id\n s13mr38767613ljh.373.1641219790254;\n Mon, 03 Jan 2022 06:23:10 -0800 (PST)",
        "From": "Andrzej Ostruszka <amo@semihalf.com>",
        "To": "dev@dpdk.org",
        "Cc": "upstream@semihalf.com,\n\tAndrzej Ostruszka <amo@semihalf.com>",
        "Subject": "[PATCH 0/1] Minor mistake in ring (en|de)queueing",
        "Date": "Mon,  3 Jan 2022 15:22:00 +0100",
        "Message-Id": "<20220103142201.475552-1-amo@semihalf.com>",
        "X-Mailer": "git-send-email 2.34.1.448.ga2b2bfdf31-goog",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "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": "Hi all,\n\nRecently I was going through the ring implementation and I believe I've\nfound a small mistake.  Not a functional error, just a slightly\nsuboptimal behaviour for the specific case when we want to enqueue\nexactly the number of elements that we can before wrapping to the ring\nbeginning (the same goes for dequeueing).\n\nImagine we have a ring of size 16 depicted below with indexes underneath\nand consumer/producer pointing as shown.\n\n|  ******        |\n 0123456789ABCDEF\n   ^     ^\n   c     p\n\nNow if we try to enqueue 8 elements we will end up at the check:\n\n\tif (likely(idx + n < size)) {\n\nwhere idx (=8) is a producer head and n=8.  We will fail this check\neven though we have the case of 8 elements available without wrapping to\nthe beginning of the ring.\n\nI hope I'm not completely off the base here :), if I'm not then the\nsubsequent patch attempts to fix this.\n\nWit regards\nAndrzej Ostruszka\n\nAndrzej Ostruszka (1):\n  ring: fix off by 1 mistake\n\n lib/ring/rte_ring_elem_pvt.h | 12 ++++++------\n 1 file changed, 6 insertions(+), 6 deletions(-)"
}