* [dpdk-dev] [PATCH] examples/l3fwd: report error when no vector engine is available
@ 2016-04-26 11:30 Jan Viktorin
2016-06-08 20:21 ` Thomas Monjalon
0 siblings, 1 reply; 2+ messages in thread
From: Jan Viktorin @ 2016-04-26 11:30 UTC (permalink / raw)
To: dev; +Cc: Jan Viktorin, tomasz.kantecki, maciej.czekaj, tomaszx.kulasek
If no SSE nor NEON are available the l3fwd should complain loudly to quickly
find out the reason.
Signed-off-by: Jan Viktorin <viktorin@rehivetech.com>
---
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-06-08 20:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-26 11:30 [dpdk-dev] [PATCH] examples/l3fwd: report error when no vector engine is available Jan Viktorin
2016-06-08 20:21 ` Thomas Monjalon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).