From patchwork Tue May 17 10:08:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ferriter, Cian" X-Patchwork-Id: 1632201 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=ABM4mrFz; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=2605:bc80:3010::136; helo=smtp3.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Received: from smtp3.osuosl.org (smtp3.osuosl.org [IPv6:2605:bc80:3010::136]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4L2WzW6B3hz9s0w for ; Tue, 17 May 2022 20:08:39 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 89FBF611A5; Tue, 17 May 2022 10:08:37 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gmWqS13xKNRv; Tue, 17 May 2022 10:08:36 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by smtp3.osuosl.org (Postfix) with ESMTPS id 6517361089; Tue, 17 May 2022 10:08:35 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 2543CC007B; Tue, 17 May 2022 10:08:35 +0000 (UTC) X-Original-To: ovs-dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by lists.linuxfoundation.org (Postfix) with ESMTP id 6B932C0032 for ; Tue, 17 May 2022 10:08:32 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id BB5AD60FA0 for ; Tue, 17 May 2022 10:08:31 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yqsX3b6mUmTl for ; Tue, 17 May 2022 10:08:31 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by smtp3.osuosl.org (Postfix) with ESMTPS id 1AF2460E38 for ; Tue, 17 May 2022 10:08:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1652782111; x=1684318111; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=G+XPQkIFRJ2eQD/BacbqRFJsQCG3su6yo/i5WmgXQSY=; b=ABM4mrFzYGEsEvzqGIm0woV4P/Lm2fS4YgQuCwtr9GpXkOUYR3XWcckL Hpytnzv2Fi0zx7fYoBniMbMseL6u3Jw9a1BV4JvP3Yo0eie8tcIgI77VF lPzaM5n35BtTn1KnYkyrZYnN49ChEZZmB4LjrOZ4FfKixDfLBAAZZJ8Ht eokkzfl07ODrZ8HyB5pNaX6zpLRIA5mou7iDVGKldRwzI3VWevS3+xQeW +EVA8D8ifL1ZWEXtayVAATbIr/GV2TrZPNRNTbpWQ71aW9hGiEL23NyLW kEjj7d9KHaooOaCrS0fiSXIaCZeDG4olHcXUoCz8ZC1xVEpVYsxfu2QpE w==; X-IronPort-AV: E=McAfee;i="6400,9594,10349"; a="258696501" X-IronPort-AV: E=Sophos;i="5.91,232,1647327600"; d="scan'208";a="258696501" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 May 2022 03:08:30 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,232,1647327600"; d="scan'208";a="699986270" Received: from silpixa00399779.ir.intel.com (HELO silpixa00399779.ger.corp.intel.com) ([10.237.223.111]) by orsmga004.jf.intel.com with ESMTP; 17 May 2022 03:08:29 -0700 From: Cian Ferriter To: ovs-dev@openvswitch.org Date: Tue, 17 May 2022 10:08:15 +0000 Message-Id: <20220517100818.15639-3-cian.ferriter@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220517100818.15639-1-cian.ferriter@intel.com> References: <20220429150426.2318121-1-cian.ferriter@intel.com> <20220517100818.15639-1-cian.ferriter@intel.com> MIME-Version: 1.0 Subject: [ovs-dev] [PATCH v5 2/5] dpif-netdev-lookup: Fix GCC 5 warning. X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ovs-dev-bounces@openvswitch.org Sender: "dev" GCC 5 gave an incompatible pointer type warning for pkt_blocks when it's passed to _mm512_mask_i64gather_epi64(). Follow the same pattern used for tbl_blocks where the 'const uint64_t *' is cast to a 'const void *' when passed in to avx512_blocks_gather(). Fixes: 47a2a8f4138e ("dpif-netdev/dpcls-avx512: Enable 16 block processing.") Signed-off-by: Cian Ferriter Acked-by: Sunil Pai G --- v4: * Added Sunil's Fixes and Acked-by tags. v3: * Add this commit to the series. --- lib/dpif-netdev-lookup-avx512-gather.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dpif-netdev-lookup-avx512-gather.c b/lib/dpif-netdev-lookup-avx512-gather.c index 7bc1e9e9a..b396772bc 100644 --- a/lib/dpif-netdev-lookup-avx512-gather.c +++ b/lib/dpif-netdev-lookup-avx512-gather.c @@ -155,7 +155,7 @@ netdev_rule_matches_key(const struct dpcls_rule *rule, static inline ALWAYS_INLINE __m512i avx512_blocks_gather(__m512i v_u0, __m512i v_u1, - const uint64_t *pkt_blocks, + const void *pkt_blocks, const void *tbl_blocks, const void *tbl_mf_masks, __mmask64 u1_bcast_msk,