f-stack/dpdk/drivers/net/enic/meson.build

44 lines
1.2 KiB
Meson
Raw Normal View History

2019-06-25 11:12:58 +00:00
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2018 Cisco Systems, Inc.
2022-09-06 04:00:10 +00:00
if is_windows
build = false
reason = 'not supported on Windows'
subdir_done()
endif
2025-01-10 11:50:43 +00:00
if dpdk_conf.get('RTE_IOVA_IN_MBUF') == 0
subdir_done()
endif
2019-06-25 11:12:58 +00:00
sources = files(
2022-09-06 04:00:10 +00:00
'base/vnic_cq.c',
'base/vnic_dev.c',
'base/vnic_intr.c',
'base/vnic_rq.c',
'base/vnic_wq.c',
'enic_ethdev.c',
'enic_flow.c',
'enic_fm_flow.c',
'enic_main.c',
'enic_res.c',
'enic_rxtx.c',
'enic_vf_representor.c',
)
2019-06-25 11:12:58 +00:00
deps += ['hash']
includes += include_directories('base')
2025-01-10 11:50:43 +00:00
# Build the avx2 handler for 64-bit X86 targets, even though 'machine'
# may not. This is to support users who build for the min supported machine
2019-06-25 11:12:58 +00:00
# and need to run the binary on newer CPUs too.
2025-01-10 11:50:43 +00:00
if dpdk_conf.has('RTE_ARCH_X86_64')
2022-09-06 04:00:10 +00:00
enic_avx2_lib = static_library('enic_avx2_lib',
'enic_rxtx_vec_avx2.c',
dependencies: [static_rte_ethdev, static_rte_bus_pci],
include_directories: includes,
c_args: [cflags, '-mavx2'])
objs += enic_avx2_lib.extract_objects('enic_rxtx_vec_avx2.c')
2019-06-25 11:12:58 +00:00
endif
2025-01-10 11:50:43 +00:00
annotate_locks = false