Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/20679/?format=api
http://patches.dpdk.org/api/patches/20679/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/1487824113-41570-1-git-send-email-zhiyong.yang@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": "<1487824113-41570-1-git-send-email-zhiyong.yang@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1487824113-41570-1-git-send-email-zhiyong.yang@intel.com", "date": "2017-02-23T04:28:33", "name": "[dpdk-dev] net/virtio: fix remove the redundant computing", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "08ba5c5ad6cbe6a740c6e9a383380b081daa3dc3", "submitter": { "id": 540, "url": "http://patches.dpdk.org/api/people/540/?format=api", "name": "Yang, Zhiyong", "email": "zhiyong.yang@intel.com" }, "delegate": null, "mbox": "http://patches.dpdk.org/project/dpdk/patch/1487824113-41570-1-git-send-email-zhiyong.yang@intel.com/mbox/", "series": [], "comments": "http://patches.dpdk.org/api/patches/20679/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/20679/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 083572BAA;\n\tThu, 23 Feb 2017 05:31:15 +0100 (CET)", "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n\tby dpdk.org (Postfix) with ESMTP id 035962BA1\n\tfor <dev@dpdk.org>; Thu, 23 Feb 2017 05:31:11 +0100 (CET)", "from orsmga002.jf.intel.com ([10.7.209.21])\n\tby orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t22 Feb 2017 20:31:10 -0800", "from unknown (HELO dpdk5.bj.intel.com) ([172.16.182.188])\n\tby orsmga002.jf.intel.com with ESMTP; 22 Feb 2017 20:31:08 -0800" ], "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.35,197,1484035200\"; d=\"scan'208\";a=\"51609972\"", "From": "Zhiyong Yang <zhiyong.yang@intel.com>", "To": "dev@dpdk.org", "Cc": "yuanhan.liu@linux.intel.com, maxime.coquelin@redhat.com,\n\tZhiyong Yang <zhiyong.yang@intel.com>", "Date": "Thu, 23 Feb 2017 12:28:33 +0800", "Message-Id": "<1487824113-41570-1-git-send-email-zhiyong.yang@intel.com>", "X-Mailer": "git-send-email 2.7.4", "Subject": "[dpdk-dev] [PATCH] net/virtio: fix remove the redundant computing", "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": "This is not a bug. The minor change aims to remove the redundant\ncomputing and make it easier to understand the code.\n\nFixes:01ad44fd374f(\"net/virtio: split Rx/Tx queue\")\nCc: yuanhan.liu@linux.intel.com\nCc: maxime.coquelin@redhat.com\n\nSigned-off-by: Zhiyong Yang <zhiyong.yang@intel.com>\n---\n drivers/net/virtio/virtio_rxtx.c | 4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)", "diff": "diff --git a/drivers/net/virtio/virtio_rxtx.c b/drivers/net/virtio/virtio_rxtx.c\nindex cab6e8f..14c88c0 100644\n--- a/drivers/net/virtio/virtio_rxtx.c\n+++ b/drivers/net/virtio/virtio_rxtx.c\n@@ -791,9 +791,9 @@ virtio_recv_pkts(void *rx_queue, struct rte_mbuf **rx_pkts, uint16_t nb_pkts)\n \n \t\tVIRTIO_DUMP_PACKET(rxm, rxm->data_len);\n \n-\t\trx_pkts[nb_rx++] = rxm;\n+\t\trx_pkts[nb_rx] = rxm;\n \n-\t\trxvq->stats.bytes += rx_pkts[nb_rx - 1]->pkt_len;\n+\t\trxvq->stats.bytes += rx_pkts[nb_rx++]->pkt_len;\n \t\tvirtio_update_packet_stats(&rxvq->stats, rxm);\n \t}\n \n", "prefixes": [ "dpdk-dev" ] }{ "id": 20679, "url": "