Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/81378/?format=api
http://patches.dpdk.org/api/patches/81378/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20201019134858.32507-16-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-16-david.marchand@redhat.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20201019134858.32507-16-david.marchand@redhat.com", "date": "2020-10-19T13:48:55", "name": "[v10,15/18] efd: check max SIMD bitwidth", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "71efbadc497ccaba9652bb0f82b24203270287c5", "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-16-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/81378/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/81378/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 26A62A04DC;\n\tMon, 19 Oct 2020 15:55:42 +0200 (CEST)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 0BE0BE2CA;\n\tMon, 19 Oct 2020 15:51:07 +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 D4339E2C8\n for <dev@dpdk.org>; Mon, 19 Oct 2020 15:51:04 +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-284-dGGoPvluNCiG0UMRpDhfqA-1; Mon, 19 Oct 2020 09:50:59 -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 16DAB88F300;\n Mon, 19 Oct 2020 13:49:56 +0000 (UTC)", "from dmarchan.remote.csb (unknown [10.40.195.116])\n by smtp.corp.redhat.com (Postfix) with ESMTP id D2A927D4FE;\n Mon, 19 Oct 2020 13:49:53 +0000 (UTC)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1603115463;\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=RxSTpIhITo2yuWzc3NiNKEvb6HqRCo3BvG9hy64ssZw=;\n b=Ts38VCrGpyncdwoW++Rc8y5c4QDBmRSaM/QDQjLLllGYBT+NKaoUproftFahJPLta72KOL\n BsKyWvYHugQJ7c3SnbBrUhlzEe/U1BtgcxrvfjNG8Ew8Mu7pazd+rreIQapk89t0GX55hB\n sBdK11nU8KV2U5jxdpt4amjxVcmfVIY=", "X-MC-Unique": "dGGoPvluNCiG0UMRpDhfqA-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 Yipeng Wang <yipeng1.wang@intel.com>", "Date": "Mon, 19 Oct 2020 15:48:55 +0200", "Message-Id": "<20201019134858.32507-16-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 15/18] efd: 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: Yipeng Wang <yipeng1.wang@intel.com>\n---\nv4: Updated enum name.\n---\n lib/librte_efd/rte_efd.c | 8 ++++++--\n 1 file changed, 6 insertions(+), 2 deletions(-)", "diff": "diff --git a/lib/librte_efd/rte_efd.c b/lib/librte_efd/rte_efd.c\nindex 6a799556d4..ec3a4cd58e 100644\n--- a/lib/librte_efd/rte_efd.c\n+++ b/lib/librte_efd/rte_efd.c\n@@ -21,6 +21,7 @@\n #include <rte_jhash.h>\n #include <rte_hash_crc.h>\n #include <rte_tailq.h>\n+#include <rte_vect.h>\n \n #include \"rte_efd.h\"\n #if defined(RTE_ARCH_X86)\n@@ -645,7 +646,9 @@ rte_efd_create(const char *name, uint32_t max_num_rules, uint32_t key_len,\n \t * For less than 4 bits, scalar function performs better\n \t * than vectorised version\n \t */\n-\tif (RTE_EFD_VALUE_NUM_BITS > 3 && rte_cpu_get_flag_enabled(RTE_CPUFLAG_AVX2))\n+\tif (RTE_EFD_VALUE_NUM_BITS > 3\n+\t\t\t&& rte_cpu_get_flag_enabled(RTE_CPUFLAG_AVX2)\n+\t\t\t&& rte_vect_get_max_simd_bitwidth() >= RTE_VECT_SIMD_256)\n \t\ttable->lookup_fn = EFD_LOOKUP_AVX2;\n \telse\n #endif\n@@ -655,7 +658,8 @@ rte_efd_create(const char *name, uint32_t max_num_rules, uint32_t key_len,\n \t * than vectorised version\n \t */\n \tif (RTE_EFD_VALUE_NUM_BITS > 16 &&\n-\t rte_cpu_get_flag_enabled(RTE_CPUFLAG_NEON))\n+\t rte_cpu_get_flag_enabled(RTE_CPUFLAG_NEON) &&\n+\t\t\trte_vect_get_max_simd_bitwidth() >= RTE_VECT_SIMD_128)\n \t\ttable->lookup_fn = EFD_LOOKUP_NEON;\n \telse\n #endif\n", "prefixes": [ "v10", "15/18" ] }{ "id": 81378, "url": "