Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/130089/?format=api
http://patchwork.dpdk.org/api/patches/130089/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20230810060030.3759835-1-jhascoet@kalray.eu/", "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": "<20230810060030.3759835-1-jhascoet@kalray.eu>", "list_archive_url": "https://inbox.dpdk.org/dev/20230810060030.3759835-1-jhascoet@kalray.eu", "date": "2023-08-10T06:00:30", "name": "app: fix silent enqueue fail in test_mbuf test_refcnt_iter", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "06e293f8e3eca5e0ca0702675b1f62b0b598cb6f", "submitter": { "id": 3147, "url": "http://patchwork.dpdk.org/api/people/3147/?format=api", "name": "jhascoet", "email": "ju.hascoet@gmail.com" }, "delegate": { "id": 24651, "url": "http://patchwork.dpdk.org/api/users/24651/?format=api", "username": "dmarchand", "first_name": "David", "last_name": "Marchand", "email": "david.marchand@redhat.com" }, "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20230810060030.3759835-1-jhascoet@kalray.eu/mbox/", "series": [ { "id": 29162, "url": "http://patchwork.dpdk.org/api/series/29162/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=29162", "date": "2023-08-10T06:00:30", "name": "app: fix silent enqueue fail in test_mbuf test_refcnt_iter", "version": 1, "mbox": "http://patchwork.dpdk.org/series/29162/mbox/" } ], "comments": "http://patchwork.dpdk.org/api/patches/130089/comments/", "check": "success", "checks": "http://patchwork.dpdk.org/api/patches/130089/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 26AE54302B;\n\tThu, 10 Aug 2023 17:07:10 +0200 (CEST)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id F365A40DFB;\n\tThu, 10 Aug 2023 17:07:09 +0200 (CEST)", "from mail-ed1-f54.google.com (mail-ed1-f54.google.com\n [209.85.208.54]) by mails.dpdk.org (Postfix) with ESMTP id 76E10406B6\n for <dev@dpdk.org>; Thu, 10 Aug 2023 08:00:34 +0200 (CEST)", "by mail-ed1-f54.google.com with SMTP id\n 4fb4d7f45d1cf-523100882f2so592912a12.2\n for <dev@dpdk.org>; Wed, 09 Aug 2023 23:00:34 -0700 (PDT)", "from coolup54.lin.mbt.kalray.eu ([217.181.231.53])\n by smtp.gmail.com with ESMTPSA id\n bf20-20020a0564021a5400b0051d9dbf5edfsm358382edb.55.2023.08.09.23.00.32\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Wed, 09 Aug 2023 23:00:33 -0700 (PDT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=gmail.com; s=20221208; t=1691647234; x=1692252034;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:from:to:cc:subject:date\n :message-id:reply-to;\n bh=d9Q09I0LtHFmXf2vFpeusB0iurOxqBmRKJhdrl0c+rk=;\n b=JC9CEduE6eG1jwpmT3HsOFRggWE6DiAKaR2E3hVgVc2VRR4lmMmAoo2BeWWQKRhbYP\n qBWngOWNJYm36SImziPVJfhbNuywgmD0nDUbr4X8q0jFKYMz4wOmJO+VUaQSsNB2YRa5\n 0PLIB8MvUeQzp67i1lmYOKa2FQj/+eL6bqzomOs7eZmKNZ48qpCPmldvRjXH1tpT4D5T\n SEMOk1FvkydS+zmNn06BH3WZLcv84rpxv0eSXjWMEJDkRfKXLipTgiMZtJtFIg+irHIf\n P6lA1rqJk/QhlzbN6TdNp+gJmztZuA2nIOWguEGwpZkNEUAoL9E8v4fLMUmevy4Gm7RC\n nHtQ==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20221208; t=1691647234; x=1692252034;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc\n :subject:date:message-id:reply-to;\n bh=d9Q09I0LtHFmXf2vFpeusB0iurOxqBmRKJhdrl0c+rk=;\n b=ESXNBH2/F9c2LqYTt7z1bu3880XnRTPOi0+dRsE8gBElSrxkVf/y7UkbLqk7NwMGXF\n Cd520DgzDHq8BDyWUyDdnXNBUiWLJ5+jjclv0ZQ/Gf0ApgPzHBRPpP18PXYy8vYlL3en\n 3mRHcxxagKuzoFX6frSngw95p30f+uM25U9lX5+0kBBQPSzAZBMmuCfi7DBEsTbKO8JU\n vapJkfHsU63rW4qEVioSC/4vffzjRBfDY/Rf+fCju5zFQaV/T9cvLoP9b3gCX8OlZa9u\n QzWBn+K+Fjl/fL6+9P2GbrrVf/Assr7R3+At+UVvG4Sma5jRSpuA3iduw1EHYgI1lRtk\n lGag==", "X-Gm-Message-State": "AOJu0Yx3DrEr15djuz+R2BRG3ZxGQ6OIWh/V8eXyzqO1BmgEtKVgcjls\n bLdVcbOdLLttdm+nwVIkKrU=", "X-Google-Smtp-Source": "\n AGHT+IGPSCxDCkZAa/apZODZxd7pA0BnPDAnSjQjPCxeThX4lW1V2Y7FV939IHlnPKlK90f5xo7gYg==", "X-Received": "by 2002:a50:fa84:0:b0:522:2711:863 with SMTP id\n w4-20020a50fa84000000b0052227110863mr1326766edr.1.1691647233781;\n Wed, 09 Aug 2023 23:00:33 -0700 (PDT)", "From": "jhascoet <ju.hascoet@gmail.com>", "X-Google-Original-From": "jhascoet <jhascoet@kalray.eu>", "To": "david.marchand@redhat.com", "Cc": "dev@dpdk.org,\n\tJulien Hascoet <ju.hascoet@gmail.com>", "Subject": "[PATCH] app: fix silent enqueue fail in test_mbuf test_refcnt_iter", "Date": "Thu, 10 Aug 2023 08:00:30 +0200", "Message-Id": "<20230810060030.3759835-1-jhascoet@kalray.eu>", "X-Mailer": "git-send-email 2.34.1", "In-Reply-To": "<20230809053843.3698537-1-jhascoet@kalray.eu>", "References": "<20230809053843.3698537-1-jhascoet@kalray.eu>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "X-Mailman-Approved-At": "Thu, 10 Aug 2023 17:07:08 +0200", "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: Julien Hascoet <ju.hascoet@gmail.com>\n\nIn case of ring full state, we retry the enqueue\noperation in order to avoid mbuf loss.\n\nFixes: af75078fece (\"first public release\")\n\nSigned-off-by: Julien Hascoet <ju.hascoet@gmail.com>\n---\n app/test/test_mbuf.c | 11 ++++++++---\n 1 file changed, 8 insertions(+), 3 deletions(-)", "diff": "diff --git a/app/test/test_mbuf.c b/app/test/test_mbuf.c\nindex efac01806b..be114e3302 100644\n--- a/app/test/test_mbuf.c\n+++ b/app/test/test_mbuf.c\n@@ -1033,12 +1033,17 @@ test_refcnt_iter(unsigned int lcore, unsigned int iter,\n \t\ttref += ref;\n \t\tif ((ref & 1) != 0) {\n \t\t\trte_pktmbuf_refcnt_update(m, ref);\n-\t\t\twhile (ref-- != 0)\n-\t\t\t\trte_ring_enqueue(refcnt_mbuf_ring, m);\n+\t\t\twhile (ref-- != 0) {\n+\t\t\t\t/* retry in case of failure */\n+\t\t\t\twhile (rte_ring_enqueue(refcnt_mbuf_ring, m) != 0)\n+\t\t\t\t\t;\n+\t\t\t}\n \t\t} else {\n \t\t\twhile (ref-- != 0) {\n \t\t\t\trte_pktmbuf_refcnt_update(m, 1);\n-\t\t\t\trte_ring_enqueue(refcnt_mbuf_ring, m);\n+\t\t\t\t/* retry in case of failure */\n+\t\t\t\twhile (rte_ring_enqueue(refcnt_mbuf_ring, m) != 0)\n+\t\t\t\t\t;\n \t\t\t}\n \t\t}\n \t\trte_pktmbuf_free(m);\n", "prefixes": [] }{ "id": 130089, "url": "