Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/68691/?format=api
http://patchwork.dpdk.org/api/patches/68691/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20200416222431.114184-4-yong.liu@intel.com/", "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": "<20200416222431.114184-4-yong.liu@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20200416222431.114184-4-yong.liu@intel.com", "date": "2020-04-16T22:24:25", "name": "[v6,3/9] net/virtio: inorder should depend on feature bit", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "e687f3b3b7c0f0ce58e8f19e85a6106452852cb5", "submitter": { "id": 17, "url": "http://patchwork.dpdk.org/api/people/17/?format=api", "name": "Marvin Liu", "email": "yong.liu@intel.com" }, "delegate": { "id": 2642, "url": "http://patchwork.dpdk.org/api/users/2642/?format=api", "username": "mcoquelin", "first_name": "Maxime", "last_name": "Coquelin", "email": "maxime.coquelin@redhat.com" }, "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20200416222431.114184-4-yong.liu@intel.com/mbox/", "series": [ { "id": 9431, "url": "http://patchwork.dpdk.org/api/series/9431/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=9431", "date": "2020-04-16T22:24:22", "name": "add packed ring vectorized path", "version": 6, "mbox": "http://patchwork.dpdk.org/series/9431/mbox/" } ], "comments": "http://patchwork.dpdk.org/api/patches/68691/comments/", "check": "success", "checks": "http://patchwork.dpdk.org/api/patches/68691/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 BC787A0588;\n\tThu, 16 Apr 2020 16:51:11 +0200 (CEST)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 3AAB01DD3F;\n\tThu, 16 Apr 2020 16:50:32 +0200 (CEST)", "from mga03.intel.com (mga03.intel.com [134.134.136.65])\n by dpdk.org (Postfix) with ESMTP id 4C21D1DD1F\n for <dev@dpdk.org>; Thu, 16 Apr 2020 16:50:25 +0200 (CEST)", "from fmsmga005.fm.intel.com ([10.253.24.32])\n by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 16 Apr 2020 07:50:24 -0700", "from npg-dpdk-virtual-marvin-dev.sh.intel.com ([10.67.119.58])\n by fmsmga005.fm.intel.com with ESMTP; 16 Apr 2020 07:50:23 -0700" ], "IronPort-SDR": [ "\n QHneO4/Ik6dfWU0UJgl89uY6e81iTY4tJBmMolYSUEKFQlROCBbfGf4hAPDEzR92GXQ/7PFK8/\n /GLxfJ0ljj1A==", "\n xSU/v9SVAMa99XL1F4WbzIxpf6bIqqRQabEiV8l/5Yip0labFX/Yw2kegVSVG8OjEep9ebHHs4\n mB/FRkoC34+w==" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.72,391,1580803200\"; d=\"scan'208\";a=\"454352699\"", "From": "Marvin Liu <yong.liu@intel.com>", "To": "maxime.coquelin@redhat.com, xiaolong.ye@intel.com, zhihong.wang@intel.com", "Cc": "dev@dpdk.org,\n\tMarvin Liu <yong.liu@intel.com>", "Date": "Fri, 17 Apr 2020 06:24:25 +0800", "Message-Id": "<20200416222431.114184-4-yong.liu@intel.com>", "X-Mailer": "git-send-email 2.17.1", "In-Reply-To": "<20200416222431.114184-1-yong.liu@intel.com>", "References": "<20200313174230.74661-1-yong.liu@intel.com>\n <20200416222431.114184-1-yong.liu@intel.com>", "Subject": "[dpdk-dev] [PATCH v6 3/9] net/virtio: inorder should depend on\n\tfeature bit", "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": "Ring initialzation is different when inorder feature negotiated. This\naction should dependent on negotiated feature bits.\n\nSigned-off-by: Marvin Liu <yong.liu@intel.com>", "diff": "diff --git a/drivers/net/virtio/virtio_rxtx.c b/drivers/net/virtio/virtio_rxtx.c\nindex 94ba7a3ec..e450477e8 100644\n--- a/drivers/net/virtio/virtio_rxtx.c\n+++ b/drivers/net/virtio/virtio_rxtx.c\n@@ -989,6 +989,7 @@ virtio_dev_rx_queue_setup_finish(struct rte_eth_dev *dev, uint16_t queue_idx)\n \tstruct rte_mbuf *m;\n \tuint16_t desc_idx;\n \tint error, nbufs, i;\n+\tbool in_order = vtpci_with_feature(hw, VIRTIO_F_IN_ORDER);\n \n \tPMD_INIT_FUNC_TRACE();\n \n@@ -1018,7 +1019,7 @@ virtio_dev_rx_queue_setup_finish(struct rte_eth_dev *dev, uint16_t queue_idx)\n \t\t\tvirtio_rxq_rearm_vec(rxvq);\n \t\t\tnbufs += RTE_VIRTIO_VPMD_RX_REARM_THRESH;\n \t\t}\n-\t} else if (hw->use_inorder_rx) {\n+\t} else if (!vtpci_packed_queue(vq->hw) && in_order) {\n \t\tif ((!virtqueue_full(vq))) {\n \t\t\tuint16_t free_cnt = vq->vq_free_cnt;\n \t\t\tstruct rte_mbuf *pkts[free_cnt];\n@@ -1133,7 +1134,7 @@ virtio_dev_tx_queue_setup_finish(struct rte_eth_dev *dev,\n \tPMD_INIT_FUNC_TRACE();\n \n \tif (!vtpci_packed_queue(hw)) {\n-\t\tif (hw->use_inorder_tx)\n+\t\tif (vtpci_with_feature(hw, VIRTIO_F_IN_ORDER))\n \t\t\tvq->vq_split.ring.desc[vq->vq_nentries - 1].next = 0;\n \t}\n \n@@ -2046,7 +2047,7 @@ virtio_xmit_pkts_packed(void *tx_queue, struct rte_mbuf **tx_pkts,\n \tstruct virtio_hw *hw = vq->hw;\n \tuint16_t hdr_size = hw->vtnet_hdr_size;\n \tuint16_t nb_tx = 0;\n-\tbool in_order = hw->use_inorder_tx;\n+\tbool in_order = vtpci_with_feature(hw, VIRTIO_F_IN_ORDER);\n \n \tif (unlikely(hw->started == 0 && tx_pkts != hw->inject_pkts))\n \t\treturn nb_tx;\n", "prefixes": [ "v6", "3/9" ] }{ "id": 68691, "url": "