Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/81369/?format=api
http://patches.dpdk.org/api/patches/81369/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20201019134858.32507-8-david.marchand@redhat.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": "<20201019134858.32507-8-david.marchand@redhat.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20201019134858.32507-8-david.marchand@redhat.com", "date": "2020-10-19T13:48:47", "name": "[v10,07/18] net/fm10k: check max SIMD bitwidth", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "dab8d3d3e7bfedc827420f0f901d692667c18283", "submitter": { "id": 1173, "url": "http://patches.dpdk.org/api/people/1173/?format=api", "name": "David Marchand", "email": "david.marchand@redhat.com" }, "delegate": { "id": 24651, "url": "http://patches.dpdk.org/api/users/24651/?format=api", "username": "dmarchand", "first_name": "David", "last_name": "Marchand", "email": "david.marchand@redhat.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20201019134858.32507-8-david.marchand@redhat.com/mbox/", "series": [ { "id": 13104, "url": "http://patches.dpdk.org/api/series/13104/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=13104", "date": "2020-10-19T13:48:40", "name": "add max SIMD bitwidth to EAL", "version": 10, "mbox": "http://patches.dpdk.org/series/13104/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/81369/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/81369/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 4780DA04DC;\n\tMon, 19 Oct 2020 15:52:02 +0200 (CEST)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 408F7D019;\n\tMon, 19 Oct 2020 15:49:40 +0200 (CEST)", "from us-smtp-delivery-124.mimecast.com\n (us-smtp-delivery-124.mimecast.com [63.128.21.124])\n by dpdk.org (Postfix) with ESMTP id E34E7E249\n for <dev@dpdk.org>; Mon, 19 Oct 2020 15:49:36 +0200 (CEST)", "from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com\n [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id\n us-mta-290-FQFyIaDjP7WMCAFTre3kMw-1; Mon, 19 Oct 2020 09:49:32 -0400", "from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com\n [10.5.11.15])\n (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n (No client certificate requested)\n by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 8E721102091B;\n Mon, 19 Oct 2020 13:49:30 +0000 (UTC)", "from dmarchan.remote.csb (unknown [10.40.195.116])\n by smtp.corp.redhat.com (Postfix) with ESMTP id 41C1555775;\n Mon, 19 Oct 2020 13:49:28 +0000 (UTC)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1603115375;\n h=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n to:to:cc:cc:mime-version:mime-version:content-type:content-type:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=dUuqhkl62V8/DbSwDXas9k/eVmJdyHE9Ad7bh1kAMtA=;\n b=G4BAxwraSxLyykQ0T5NMMvrDA9XO/l5hWkAs1DhUlphTMBt3+bdiJuJ+Og6WjlwxRNtnoS\n aqxXyLorAmXrcdTp1zXe2bGywOVU95eX7Ij5BkNTYyeoIf2zmJC1E3jzFS3Wn0OHGu8Ms/\n pRM6j/4qXn0x4t5OERxaAXJVLa7k0BA=", "X-MC-Unique": "FQFyIaDjP7WMCAFTre3kMw-1", "From": "David Marchand <david.marchand@redhat.com>", "To": "dev@dpdk.org", "Cc": "viktorin@rehivetech.com, ruifeng.wang@arm.com, jerinj@marvell.com,\n drc@linux.vnet.ibm.com, bruce.richardson@intel.com,\n konstantin.ananyev@intel.com, ciara.power@intel.com,\n Qi Zhang <qi.z.zhang@intel.com>", "Date": "Mon, 19 Oct 2020 15:48:47 +0200", "Message-Id": "<20201019134858.32507-8-david.marchand@redhat.com>", "In-Reply-To": "<20201019134858.32507-1-david.marchand@redhat.com>", "References": "<20201019134858.32507-1-david.marchand@redhat.com>", "MIME-Version": "1.0", "X-Scanned-By": "MIMEDefang 2.79 on 10.5.11.15", "Authentication-Results": "relay.mimecast.com;\n auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=david.marchand@redhat.com", "X-Mimecast-Spam-Score": "0", "X-Mimecast-Originator": "redhat.com", "Content-Transfer-Encoding": "8bit", "Content-Type": "text/plain; charset=\"US-ASCII\"", "Subject": "[dpdk-dev] [PATCH v10 07/18] net/fm10k: check max SIMD bitwidth", "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": "From: Ciara Power <ciara.power@intel.com>\n\nWhen choosing a vector path to take, an extra condition must be\nsatisfied to ensure the max SIMD bitwidth allows for the CPU enabled\npath.\n\nSigned-off-by: Ciara Power <ciara.power@intel.com>\nAcked-by: Qi Zhang <qi.z.zhang@intel.com>\n---\nv4: Updated enum name.\n---\n drivers/net/fm10k/fm10k_ethdev.c | 10 +++++++---\n 1 file changed, 7 insertions(+), 3 deletions(-)", "diff": "diff --git a/drivers/net/fm10k/fm10k_ethdev.c b/drivers/net/fm10k/fm10k_ethdev.c\nindex dc2979bdd2..c187088a33 100644\n--- a/drivers/net/fm10k/fm10k_ethdev.c\n+++ b/drivers/net/fm10k/fm10k_ethdev.c\n@@ -10,6 +10,7 @@\n #include <rte_dev.h>\n #include <rte_spinlock.h>\n #include <rte_kvargs.h>\n+#include <rte_vect.h>\n \n #include \"fm10k.h\"\n #include \"base/fm10k_api.h\"\n@@ -2939,7 +2940,8 @@ fm10k_set_tx_function(struct rte_eth_dev *dev)\n \tif (rte_eal_process_type() != RTE_PROC_PRIMARY) {\n \t\t/* primary process has set the ftag flag and offloads */\n \t\ttxq = dev->data->tx_queues[0];\n-\t\tif (fm10k_tx_vec_condition_check(txq)) {\n+\t\tif (fm10k_tx_vec_condition_check(txq) ||\n+\t\t\t\trte_vect_get_max_simd_bitwidth() < RTE_VECT_SIMD_128) {\n \t\t\tdev->tx_pkt_burst = fm10k_xmit_pkts;\n \t\t\tdev->tx_pkt_prepare = fm10k_prep_pkts;\n \t\t\tPMD_INIT_LOG(DEBUG, \"Use regular Tx func\");\n@@ -2958,7 +2960,8 @@ fm10k_set_tx_function(struct rte_eth_dev *dev)\n \t\ttxq = dev->data->tx_queues[i];\n \t\ttxq->tx_ftag_en = tx_ftag_en;\n \t\t/* Check if Vector Tx is satisfied */\n-\t\tif (fm10k_tx_vec_condition_check(txq))\n+\t\tif (fm10k_tx_vec_condition_check(txq) ||\n+\t\t\t\trte_vect_get_max_simd_bitwidth() < RTE_VECT_SIMD_128)\n \t\t\tuse_sse = 0;\n \t}\n \n@@ -2992,7 +2995,8 @@ fm10k_set_rx_function(struct rte_eth_dev *dev)\n \t * conditions to be met.\n \t */\n \tif (!fm10k_rx_vec_condition_check(dev) &&\n-\t\t\tdev_info->rx_vec_allowed && !rx_ftag_en) {\n+\t\t\tdev_info->rx_vec_allowed && !rx_ftag_en &&\n+\t\t\trte_vect_get_max_simd_bitwidth() >= RTE_VECT_SIMD_128) {\n \t\tif (dev->data->scattered_rx)\n \t\t\tdev->rx_pkt_burst = fm10k_recv_scattered_pkts_vec;\n \t\telse\n", "prefixes": [ "v10", "07/18" ] }{ "id": 81369, "url": "