Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/64280/?format=api
http://patches.dpdk.org/api/patches/64280/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20200108133708.51909-1-xiao.w.wang@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": "<20200108133708.51909-1-xiao.w.wang@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20200108133708.51909-1-xiao.w.wang@intel.com", "date": "2020-01-08T13:37:08", "name": "net/af_xdp: use single-prod-and-cons ring", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "61df74275f151bcbbceaf89ab8f75d1e12cc4886", "submitter": { "id": 281, "url": "http://patches.dpdk.org/api/people/281/?format=api", "name": "Xiao Wang", "email": "xiao.w.wang@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/20200108133708.51909-1-xiao.w.wang@intel.com/mbox/", "series": [ { "id": 8011, "url": "http://patches.dpdk.org/api/series/8011/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=8011", "date": "2020-01-08T13:37:08", "name": "net/af_xdp: use single-prod-and-cons ring", "version": 1, "mbox": "http://patches.dpdk.org/series/8011/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/64280/comments/", "check": "warning", "checks": "http://patches.dpdk.org/api/patches/64280/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 dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 822B6A04FA;\n\tWed, 8 Jan 2020 02:38:15 +0100 (CET)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 9E1421D63B;\n\tWed, 8 Jan 2020 02:38:14 +0100 (CET)", "from mga07.intel.com (mga07.intel.com [134.134.136.100])\n by dpdk.org (Postfix) with ESMTP id 7FAE21D5D4\n for <dev@dpdk.org>; Wed, 8 Jan 2020 02:38:12 +0100 (CET)", "from orsmga003.jf.intel.com ([10.7.209.27])\n by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n 07 Jan 2020 17:38:10 -0800", "from dpdk-xiao1.sh.intel.com ([10.67.110.150])\n by orsmga003.jf.intel.com with ESMTP; 07 Jan 2020 17:38:09 -0800" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.69,408,1571727600\"; d=\"scan'208\";a=\"223404972\"", "From": "Xiao Wang <xiao.w.wang@intel.com>", "To": "xiaolong.ye@intel.com,\n\tqi.z.zhang@intel.com", "Cc": "dev@dpdk.org,\n\tXiao Wang <xiao.w.wang@intel.com>", "Date": "Wed, 8 Jan 2020 08:37:08 -0500", "Message-Id": "<20200108133708.51909-1-xiao.w.wang@intel.com>", "X-Mailer": "git-send-email 2.15.1", "Subject": "[dpdk-dev] [PATCH] net/af_xdp: use single-prod-and-cons ring", "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 <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", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "The ring is used only by af_xdp pmd itself, so no need to support\nmulti-producer and multi-consumer mode. This patch changes the ring\nto single-producer and single-consumer mode, which could yield better\nperformance for addr enqueue and dequeue.\n\nSigned-off-by: Xiao Wang <xiao.w.wang@intel.com>\n---\n drivers/net/af_xdp/rte_eth_af_xdp.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)", "diff": "diff --git a/drivers/net/af_xdp/rte_eth_af_xdp.c b/drivers/net/af_xdp/rte_eth_af_xdp.c\nindex d903e6c28..683e2a559 100644\n--- a/drivers/net/af_xdp/rte_eth_af_xdp.c\n+++ b/drivers/net/af_xdp/rte_eth_af_xdp.c\n@@ -809,7 +809,7 @@ xsk_umem_info *xdp_umem_configure(struct pmd_internals *internals,\n \tumem->buf_ring = rte_ring_create(ring_name,\n \t\t\t\t\t ETH_AF_XDP_NUM_BUFFERS,\n \t\t\t\t\t rte_socket_id(),\n-\t\t\t\t\t 0x0);\n+\t\t\t\t\t RING_F_SP_ENQ | RING_F_SC_DEQ);\n \tif (umem->buf_ring == NULL) {\n \t\tAF_XDP_LOG(ERR, \"Failed to create rte_ring\\n\");\n \t\tgoto err;\n", "prefixes": [] }{ "id": 64280, "url": "