Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/112615/?format=api
https://patches.dpdk.org/api/patches/112615/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20220609121701.716299-2-kda@semihalf.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": "<20220609121701.716299-2-kda@semihalf.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20220609121701.716299-2-kda@semihalf.com", "date": "2022-06-09T12:16:59", "name": "[1/3] eal/riscv: fix xmm_t casting for C++", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "91c7e70363a36b42a53d75eba79ef23aefa6a654", "submitter": { "id": 2179, "url": "https://patches.dpdk.org/api/people/2179/?format=api", "name": "Stanislaw Kardach", "email": "kda@semihalf.com" }, "delegate": { "id": 24651, "url": "https://patches.dpdk.org/api/users/24651/?format=api", "username": "dmarchand", "first_name": "David", "last_name": "Marchand", "email": "david.marchand@redhat.com" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/20220609121701.716299-2-kda@semihalf.com/mbox/", "series": [ { "id": 23447, "url": "https://patches.dpdk.org/api/series/23447/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=23447", "date": "2022-06-09T12:16:58", "name": "Fix xmm_t to rte_xmm_t scalar conversion", "version": 1, "mbox": "https://patches.dpdk.org/series/23447/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/112615/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/112615/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 mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 60183A0555;\n\tThu, 9 Jun 2022 14:17:26 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 5B5684280B;\n\tThu, 9 Jun 2022 14:17:15 +0200 (CEST)", "from mail-lf1-f52.google.com (mail-lf1-f52.google.com\n [209.85.167.52]) by mails.dpdk.org (Postfix) with ESMTP id 00DC640A7D\n for <dev@dpdk.org>; Thu, 9 Jun 2022 14:17:12 +0200 (CEST)", "by mail-lf1-f52.google.com with SMTP id w20so16036781lfa.11\n for <dev@dpdk.org>; Thu, 09 Jun 2022 05:17:12 -0700 (PDT)", "from toster.semihalf.net ([83.142.187.86])\n by smtp.gmail.com with ESMTPSA id\n f6-20020a2eb5a6000000b00253da47cfbesm3706999ljn.80.2022.06.09.05.17.12\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Thu, 09 Jun 2022 05:17:12 -0700 (PDT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf.com;\n s=google;\n h=from:to:cc:subject:date:message-id:in-reply-to:references\n :mime-version:content-transfer-encoding;\n bh=Yhoxn4ytCyugxT4U99qpxlKim/LStTu07HEc+ucYX+k=;\n b=lxMzO9wgi5RZkePtddeEVgdDgLS3swgoWsZm0o5YHb0oS8nfyBmjMVxVaKuYqqlG02\n Elwr5GIlh+hdUurtnIMMp0CekZp/sCfn0iR2Y+IpDj+oXIa4NzBSQezoCFASQ32P3YkE\n JG7Lq9EkBF/gc8CDWhHyUDFbzpNbHlqZV+1Zl89wcRcyMMQnNtjDdLhc0lAC8fuvIB+R\n xsJ0ghEo94GdeHsmQhCIRG4l0wxDQ0S/Yx6rq3VLxA3FfVDeiK7nicPQRUONjCewHeuv\n lNWhUwaIqfh5Gk4NVfSN3HbtNOZ+RHHY+HDS1bk726Ubl2XiN7XOAMsTb/kEsP/ehvaz\n ggdg==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20210112;\n h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n :references:mime-version:content-transfer-encoding;\n bh=Yhoxn4ytCyugxT4U99qpxlKim/LStTu07HEc+ucYX+k=;\n b=s/mWfa+i7voznGdauTTbOMV7ZTqrHBVK3idUdLPy9Cy2n2yMaSH+8pVE7NXslzs+1J\n EQ8vqEbGC0PF5DiGMpRXG4u0LsjLANTdt2xHRnVMLb9ewtT0BuzwxrjG+hOb7iiRUD9G\n ybTDCqOPavKYjDAPgjge1MWWInhqygKPwFPQGOeP+8D3aMpuQzIGnqfHv2ywn4ny3VE+\n 85gKL+3xl7iOE/ohdMriFjywKBLkTE2L2xNEEjFBkICKhgVSglbfTSZcInMNAJ8Evz2y\n FokXT0ojbHJVYoIa2hGWIS3HFEeJXXkZoaIksfzz1KSK00HWNyJTTDhOAM/NUq4u3673\n dxcg==", "X-Gm-Message-State": "AOAM533xWnHOpOX7ITPACtu3RdG1N4YKT3qGYIjVHZX3lhz96UDaXg9p\n AJXaOwpdPVTbcW6ljqG1kqthLQ==", "X-Google-Smtp-Source": "\n ABdhPJwXmXXqDQWjywqOK3RqX7P3sGTi69LvLpf+GQ8ZwGHR1tbwxSOaO3HmlQEa1ICuYH2G5iftzA==", "X-Received": "by 2002:a05:6512:3a93:b0:479:76e7:3861 with SMTP id\n q19-20020a0565123a9300b0047976e73861mr6014307lfu.446.1654777032538;\n Thu, 09 Jun 2022 05:17:12 -0700 (PDT)", "From": "Stanislaw Kardach <kda@semihalf.com>", "To": "David Marchand <david.marchand@redhat.com>", "Cc": "Stanislaw Kardach <kda@semihalf.com>, dev@dpdk.org, upstream@semihalf.com", "Subject": "[PATCH 1/3] eal/riscv: fix xmm_t casting for C++", "Date": "Thu, 9 Jun 2022 14:16:59 +0200", "Message-Id": "<20220609121701.716299-2-kda@semihalf.com>", "X-Mailer": "git-send-email 2.30.2", "In-Reply-To": "<20220609121701.716299-1-kda@semihalf.com>", "References": "<20220609121701.716299-1-kda@semihalf.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.29", "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" }, "content": "rte_xmm_t is a union type which wraps around xmm_t and maps its contents\nto scalar structures. Since C++ has stricter type conversion rules than\nC, the rte_xmm_t::x has to be used instead of C-casting.\n\nSigned-off-by: Stanislaw Kardach <kda@semihalf.com>\n---\n lib/eal/riscv/include/rte_vect.h | 4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)", "diff": "diff --git a/lib/eal/riscv/include/rte_vect.h b/lib/eal/riscv/include/rte_vect.h\nindex 4600521c20..2f97f437a2 100644\n--- a/lib/eal/riscv/include/rte_vect.h\n+++ b/lib/eal/riscv/include/rte_vect.h\n@@ -41,8 +41,8 @@ vect_load_128(void *p)\n static inline xmm_t\n vect_and(xmm_t data, xmm_t mask)\n {\n-\trte_xmm_t ret = (rte_xmm_t)data;\n-\trte_xmm_t m = (rte_xmm_t)mask;\n+\trte_xmm_t ret = {.x = data };\n+\trte_xmm_t m = {.x = mask };\n \tret.u64[0] &= m.u64[0];\n \tret.u64[1] &= m.u64[1];\n \treturn ret.x;\n", "prefixes": [ "1/3" ] }{ "id": 112615, "url": "