Skip to content

Commit ac93dc0

Browse files
bruce-richardsondavid-marchand
authored andcommitted
event/dlb2: use common AVX build handling
Remove special-case handling for AVX512, and rely on mechanisms in the drivers meson.build file. Signed-off-by: Bruce Richardson <[email protected]> Acked-by: Konstantin Ananyev <[email protected]>
1 parent 6a64f40 commit ac93dc0

File tree

2 files changed

+6
-14
lines changed

2 files changed

+6
-14
lines changed

drivers/event/dlb2/dlb2_sse.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
#include <stdint.h>
66
#include <stdbool.h>
77

8+
#ifndef CC_AVX512_SUPPORT
9+
810
#include "dlb2_priv.h"
911
#include "dlb2_iface.h"
1012
#include "dlb2_inline_fns.h"
@@ -226,3 +228,5 @@ dlb2_event_build_hcws(struct dlb2_port *qm_port,
226228
break;
227229
}
228230
}
231+
232+
#endif /* !CC_AVX512_SUPPORT */

drivers/event/dlb2/meson.build

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,10 @@ sources = files(
2020
'pf/base/dlb2_resource.c',
2121
'rte_pmd_dlb2.c',
2222
'dlb2_selftest.c',
23+
'dlb2_sse.c',
2324
)
2425

25-
if target_has_avx512
26-
cflags += '-DCC_AVX512_SUPPORT'
27-
sources += files('dlb2_avx512.c')
28-
29-
elif cc_has_avx512
30-
cflags += '-DCC_AVX512_SUPPORT'
31-
avx512_tmplib = static_library('avx512_tmp',
32-
'dlb2_avx512.c',
33-
dependencies: [static_rte_eal, static_rte_eventdev],
34-
c_args: cflags + cc_avx512_flags)
35-
objs += avx512_tmplib.extract_objects('dlb2_avx512.c')
36-
else
37-
sources += files('dlb2_sse.c')
38-
endif
26+
sources_avx512 += files('dlb2_avx512.c')
3927

4028
headers = files('rte_pmd_dlb2.h')
4129

0 commit comments

Comments
 (0)