net/hns3: fix build with SVE
authorRuifeng Wang <ruifeng.wang@arm.com>
Tue, 12 Jan 2021 02:57:05 +0000 (02:57 +0000)
committerDavid Marchand <david.marchand@redhat.com>
Thu, 14 Jan 2021 15:42:25 +0000 (16:42 +0100)
commit21c4f1c7b2f8e637ecff9b9180e21f6b4505715f
tree42e032f9b8e186e0163dc2fa8f4e2caaa92fe0f0
parent67b68824a82dede31bc34f2bd9acf6dc7310be08
net/hns3: fix build with SVE

Building with SVE extension enabled stopped with error:

 error: ACLE function ‘svwhilelt_b64_s32’ requires ISA extension ‘sve’
   18 | #define PG64_256BIT  svwhilelt_b64(0, 4)

This is caused by unintentional cflags reset.
Fixed the issue by not touching cflags, and using flags defined by
compiler.

Fixes: 952ebacce4f2 ("net/hns3: support SVE Rx")
Cc: stable@dpdk.org
Signed-off-by: Ruifeng Wang <ruifeng.wang@arm.com>
Reviewed-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
drivers/net/hns3/hns3_rxtx.c
drivers/net/hns3/meson.build