From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from wes1-so1.wedos.net (wes1-so1.wedos.net [46.28.106.15]) by dpdk.org (Postfix) with ESMTP id 3D7E1E07 for ; Tue, 26 Apr 2016 13:33:09 +0200 (CEST) Received: from pcviktorin.fit.vutbr.cz (pcviktorin.fit.vutbr.cz [147.229.13.147]) by wes1-so1.wedos.net (Postfix) with ESMTPSA id 3qvLYw6qy3z8RK; Tue, 26 Apr 2016 13:33:08 +0200 (CEST) From: Jan Viktorin To: dev@dpdk.org Cc: Jan Viktorin , tomasz.kantecki@intel.com, maciej.czekaj@caviumnetworks.com, tomaszx.kulasek@intel.com Date: Tue, 26 Apr 2016 13:30:59 +0200 Message-Id: <1461670259-3339-1-git-send-email-viktorin@rehivetech.com> X-Mailer: git-send-email 2.8.0 Subject: [dpdk-dev] [PATCH] examples/l3fwd: report error when no vector engine is available X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Apr 2016 11:33:09 -0000 If no SSE nor NEON are available the l3fwd should complain loudly to quickly find out the reason. Signed-off-by: Jan Viktorin --- It has happened to me once when I've accidently built a GCC without the NEON support. It was confusing as at first I thought it is a bug... It is not, there is just missing an error message telling the reason. --- examples/l3fwd/l3fwd_em.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/l3fwd/l3fwd_em.c b/examples/l3fwd/l3fwd_em.c index fc59243..259094d 100644 --- a/examples/l3fwd/l3fwd_em.c +++ b/examples/l3fwd/l3fwd_em.c @@ -259,6 +259,8 @@ em_mask_key(void *key, xmm_t mask) return vandq_s32(data, mask); } +#else +#error No vector engine (SSE, NEON) available, check your toolchain #endif static inline uint8_t -- 2.8.0