Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/23744/?format=api
https://patches.dpdk.org/api/patches/23744/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/1492613222-60184-1-git-send-email-roy.fan.zhang@intel.com/", "project": { "id": 1, "url": "https://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": "<1492613222-60184-1-git-send-email-roy.fan.zhang@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1492613222-60184-1-git-send-email-roy.fan.zhang@intel.com", "date": "2017-04-19T14:47:02", "name": "[dpdk-dev] crypto/scheduler: change ordering ring dequeue", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "6525d7f5263eb4e6205c678490530ccabcdb9b3d", "submitter": { "id": 304, "url": "https://patches.dpdk.org/api/people/304/?format=api", "name": "Fan Zhang", "email": "roy.fan.zhang@intel.com" }, "delegate": { "id": 22, "url": "https://patches.dpdk.org/api/users/22/?format=api", "username": "pdelarag", "first_name": "Pablo", "last_name": "de Lara Guarch", "email": "pablo.de.lara.guarch@intel.com" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/1492613222-60184-1-git-send-email-roy.fan.zhang@intel.com/mbox/", "series": [], "comments": "https://patches.dpdk.org/api/patches/23744/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/23744/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 [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id 65D8B37B2;\n\tWed, 19 Apr 2017 16:45:16 +0200 (CEST)", "from mga06.intel.com (mga06.intel.com [134.134.136.31])\n\tby dpdk.org (Postfix) with ESMTP id D0B3F37A2\n\tfor <dev@dpdk.org>; Wed, 19 Apr 2017 16:45:14 +0200 (CEST)", "from orsmga002.jf.intel.com ([10.7.209.21])\n\tby orsmga104.jf.intel.com with ESMTP; 19 Apr 2017 07:45:12 -0700", "from silpixa00381633.ir.intel.com (HELO\n\tsilpixa00381633.ger.corp.intel.com) ([10.237.222.114])\n\tby orsmga002.jf.intel.com with ESMTP; 19 Apr 2017 07:45:11 -0700" ], "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.37,221,1488873600\"; d=\"scan'208\";a=\"76287204\"", "From": "Fan Zhang <roy.fan.zhang@intel.com>", "To": "dev@dpdk.org", "Cc": "pablo.de.lara.guarch@intel.com", "Date": "Wed, 19 Apr 2017 15:47:02 +0100", "Message-Id": "<1492613222-60184-1-git-send-email-roy.fan.zhang@intel.com>", "X-Mailer": "git-send-email 2.7.4", "Subject": "[dpdk-dev] [PATCH] crypto/scheduler: change ordering ring dequeue", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://dpdk.org/ml/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "Commit <ecaed092b677> (\"ring: return remaining entry count when\ndequeuing\") changed the return of rte_ring_sc_dequeue_bulk, this\npatch updates the scheduler to comply with this change.\n\nSigned-off-by: Fan Zhang <roy.fan.zhang@intel.com>\n---\n drivers/crypto/scheduler/scheduler_pmd_private.h | 8 ++++----\n 1 file changed, 4 insertions(+), 4 deletions(-)", "diff": "diff --git a/drivers/crypto/scheduler/scheduler_pmd_private.h b/drivers/crypto/scheduler/scheduler_pmd_private.h\nindex 33edd1d..421dae3 100644\n--- a/drivers/crypto/scheduler/scheduler_pmd_private.h\n+++ b/drivers/crypto/scheduler/scheduler_pmd_private.h\n@@ -132,7 +132,7 @@ scheduler_order_drain(struct rte_ring *order_ring,\n \tstruct rte_crypto_op *op;\n \tuint32_t nb_objs = rte_ring_count(order_ring);\n \tuint32_t nb_ops_to_deq = 0;\n-\tint status = -1;\n+\tuint32_t nb_ops_deqd = 0;\n \n \tif (nb_objs > nb_ops)\n \t\tnb_objs = nb_ops;\n@@ -145,10 +145,10 @@ scheduler_order_drain(struct rte_ring *order_ring,\n \t}\n \n \tif (nb_ops_to_deq)\n-\t\tstatus = rte_ring_sc_dequeue_bulk(order_ring, (void **)ops,\n-\t\t\t\tnb_ops_to_deq, NULL);\n+\t\tnb_ops_deqd = rte_ring_sc_dequeue_bulk(order_ring,\n+\t\t\t\t(void **)ops, nb_ops_to_deq, NULL);\n \n-\treturn (status == 0) ? nb_ops_to_deq : 0;\n+\treturn nb_ops_deqd;\n }\n /** device specific operations function pointer structure */\n extern struct rte_cryptodev_ops *rte_crypto_scheduler_pmd_ops;\n", "prefixes": [ "dpdk-dev" ] }{ "id": 23744, "url": "