Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/52853/?format=api
http://patches.dpdk.org/api/patches/52853/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20190417085653.110559-2-xiaolong.ye@intel.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": "<20190417085653.110559-2-xiaolong.ye@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20190417085653.110559-2-xiaolong.ye@intel.com", "date": "2019-04-17T08:56:50", "name": "[v3,1/4] net/af_xdp: enqueue buf ring when allocate Tx queue fails", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "34cdd18517274b004aecb70b959f60afd6396d51", "submitter": { "id": 1120, "url": "http://patches.dpdk.org/api/people/1120/?format=api", "name": "Xiaolong Ye", "email": "xiaolong.ye@intel.com" }, "delegate": { "id": 319, "url": "http://patches.dpdk.org/api/users/319/?format=api", "username": "fyigit", "first_name": "Ferruh", "last_name": "Yigit", "email": "ferruh.yigit@amd.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20190417085653.110559-2-xiaolong.ye@intel.com/mbox/", "series": [ { "id": 4346, "url": "http://patches.dpdk.org/api/series/4346/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=4346", "date": "2019-04-17T08:56:49", "name": "some fixes for AF_XDP pmd", "version": 3, "mbox": "http://patches.dpdk.org/series/4346/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/52853/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/52853/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@dpdk.org", "Delivered-To": "patchwork@dpdk.org", "Received": [ "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 9B83D1B5DA;\n\tWed, 17 Apr 2019 11:02:45 +0200 (CEST)", "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n\tby dpdk.org (Postfix) with ESMTP id 860961B5CA\n\tfor <dev@dpdk.org>; Wed, 17 Apr 2019 11:02:42 +0200 (CEST)", "from fmsmga001.fm.intel.com ([10.253.24.23])\n\tby orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t17 Apr 2019 02:02:42 -0700", "from yexl-server.sh.intel.com ([10.67.110.206])\n\tby fmsmga001.fm.intel.com with ESMTP; 17 Apr 2019 02:02:40 -0700" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.60,361,1549958400\"; d=\"scan'208\";a=\"165467586\"", "From": "Xiaolong Ye <xiaolong.ye@intel.com>", "To": "dev@dpdk.org, Ferruh Yigit <ferruh.yigit@intel.com>,\n\tDavid Marchand <david.marchand@redhat.com>", "Cc": "Qi Zhang <qi.z.zhang@intel.com>,\n\tKarlsson Magnus <magnus.karlsson@intel.com>,\n\tTopel Bjorn <bjorn.topel@intel.com>, Xiaolong Ye <xiaolong.ye@intel.com>", "Date": "Wed, 17 Apr 2019 16:56:50 +0800", "Message-Id": "<20190417085653.110559-2-xiaolong.ye@intel.com>", "X-Mailer": "git-send-email 2.17.1", "In-Reply-To": "<20190417085653.110559-1-xiaolong.ye@intel.com>", "References": "<CAJFAV8y=fHuFWrbuH7fHB3kAHxiQMexmPSKvN+4v1nKVv3QAcg@mail.gmail.com>\n\t<20190417085653.110559-1-xiaolong.ye@intel.com>", "Subject": "[dpdk-dev] [PATCH v3 1/4] net/af_xdp: enqueue buf ring when\n\tallocate Tx queue fails", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n\t<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\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "When it fails to allocate enough slots in Tx queue for transmitting\npackets, we need to return the dequeued addrs to buf ring.\n\nFixes: f1debd77efaf (\"net/af_xdp: introduce AF_XDP PMD\")\n\nSigned-off-by: Xiaolong Ye <xiaolong.ye@intel.com>\n---\n drivers/net/af_xdp/rte_eth_af_xdp.c | 1 +\n 1 file changed, 1 insertion(+)", "diff": "diff --git a/drivers/net/af_xdp/rte_eth_af_xdp.c b/drivers/net/af_xdp/rte_eth_af_xdp.c\nindex 007a1c6b4..5cc643ce2 100644\n--- a/drivers/net/af_xdp/rte_eth_af_xdp.c\n+++ b/drivers/net/af_xdp/rte_eth_af_xdp.c\n@@ -276,6 +276,7 @@ eth_af_xdp_tx(void *queue, struct rte_mbuf **bufs, uint16_t nb_pkts)\n \n \tif (xsk_ring_prod__reserve(&txq->tx, nb_pkts, &idx_tx) != nb_pkts) {\n \t\tkick_tx(txq);\n+\t\trte_ring_enqueue_bulk(umem->buf_ring, addrs, nb_pkts, NULL);\n \t\treturn 0;\n \t}\n \n", "prefixes": [ "v3", "1/4" ] }{ "id": 52853, "url": "