From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 8A8E5235 for ; Thu, 6 Jul 2017 11:58:32 +0200 (CEST) Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Jul 2017 02:58:31 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.40,316,1496127600"; d="scan'208";a="105061277" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.237.220.91]) ([10.237.220.91]) by orsmga004.jf.intel.com with ESMTP; 06 Jul 2017 02:58:30 -0700 To: Yongseok Koh Cc: dev@dpdk.org, adrien.mazarguil@6wind.com, nelio.laranjeiro@6wind.com References: <20170628230403.10142-1-yskoh@mellanox.com> From: Ferruh Yigit Message-ID: Date: Thu, 6 Jul 2017 10:58:29 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v3 5/5] net/mlx5: add vectorized Rx/Tx burst for SSE4.1 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Jul 2017 09:58:33 -0000 On 7/5/2017 7:12 PM, Yongseok Koh wrote: > To make vectorized burst routines enabled, it is required to run on x86_64 > architecture which can support at least SSE4.1. If all the conditions are > met, the vectorized burst functions are enabled automatically. The decision > is made individually on RX and TX. There's no PMD option to make a > selection. > > Signed-off-by: Yongseok Koh Hi Yongseok, clang [2] is producing following build error [1], can you please check? Thanks, ferruh [1] .../dpdk/drivers/net/mlx5/mlx5_rxtx_vec_sse.c:686:23: error: cannot convert between vector values of different size ('__m128i' (vector of 2 'long long' values) and 'unsigned long') invalid_mask = zero | ((mcqe_n - pos) * sizeof(uint16_t) * 8); ~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .../dpdk/drivers/net/mlx5/mlx5_rxtx_vec_sse.c:1055:15: error: cannot convert between vector values of different size ('__m128i' (vector of 2 'long long' values) and 'unsigned long') mask = zero | ((pkts_n - pos) * sizeof(uint16_t) * 8); ~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .../dpdk/drivers/net/mlx5/mlx5_rxtx_vec_sse.c:1163:15: error: cannot convert between vector values of different size ('__m128i' (vector of 2 'long long' values) and 'unsigned long') mask = zero | (comp_idx * sizeof(uint16_t) * 8); ~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .../dpdk/drivers/net/mlx5/mlx5_rxtx_vec_sse.c:1172:15: error: cannot convert between vector values of different size ('__m128i' (vector of 2 'long long' values) and 'unsigned long') mask = zero | (n * sizeof(uint16_t) * 8); ~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ 4 errors generated. [2] ICC is giving build error for same lines, I assume fixing clang will fix the ICC,