drivers/net: build Intel NIC PMDs with meson
Add the e1000, fm10k, i40e and ixgbe drivers to the meson & ninja build. Signed-off-by: Bruce Richardson <bruce.richardson@intel.com> Reviewed-by: Harry van Haaren <harry.van.haaren@intel.com> Acked-by: Keith Wiles <keith.wiles@intel.com> Acked-by: Luca Boccassi <luca.boccassi@gmail.com>
This commit is contained in:
parent
efd5d1a8d8
commit
e940646b20
@ -102,6 +102,18 @@
|
||||
*/
|
||||
#define RTE_QAT_PMD_MAX_NB_SESSIONS 2048
|
||||
|
||||
/* fm10k defines */
|
||||
#define RTE_LIBRTE_FM10K_RX_OLFLAGS_ENABLE 1
|
||||
|
||||
/* i40e defines */
|
||||
#define RTE_LIBRTE_I40E_RX_ALLOW_BULK_ALLOC 1
|
||||
#undef RTE_LIBRTE_I40E_16BYTE_RX_DESC
|
||||
#define RTE_LIBRTE_I40E_QUEUE_NUM_PER_PF 64
|
||||
#define RTE_LIBRTE_I40E_QUEUE_NUM_PER_VF 4
|
||||
#define RTE_LIBRTE_I40E_QUEUE_NUM_PER_VM 4
|
||||
/* interval up to 8160 us, aligned to 2 (or default value) */
|
||||
#define RTE_LIBRTE_I40E_ITR_INTERVAL -1
|
||||
|
||||
/* Ring net PMD settings */
|
||||
#define RTE_PMD_RING_MAX_RX_RINGS 16
|
||||
#define RTE_PMD_RING_MAX_TX_RINGS 16
|
||||
|
65
drivers/net/e1000/base/meson.build
Normal file
65
drivers/net/e1000/base/meson.build
Normal file
@ -0,0 +1,65 @@
|
||||
# BSD LICENSE
|
||||
#
|
||||
# Copyright(c) 2017 Intel Corporation.
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
#
|
||||
# * Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in
|
||||
# the documentation and/or other materials provided with the
|
||||
# distribution.
|
||||
# * Neither the name of Intel Corporation nor the names of its
|
||||
# contributors may be used to endorse or promote products derived
|
||||
# from this software without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
sources = [
|
||||
'e1000_80003es2lan.c',
|
||||
'e1000_82540.c',
|
||||
'e1000_82541.c',
|
||||
'e1000_82542.c',
|
||||
'e1000_82543.c',
|
||||
'e1000_82571.c',
|
||||
'e1000_82575.c',
|
||||
'e1000_api.c',
|
||||
'e1000_i210.c',
|
||||
'e1000_ich8lan.c',
|
||||
'e1000_mac.c',
|
||||
'e1000_manage.c',
|
||||
'e1000_mbx.c',
|
||||
'e1000_nvm.c',
|
||||
'e1000_osdep.c',
|
||||
'e1000_phy.c',
|
||||
'e1000_vf.c'
|
||||
]
|
||||
|
||||
error_cflags = ['-Wno-uninitialized', '-Wno-unused-parameter',
|
||||
'-Wno-unused-variable', '-Wno-misleading-indentation',
|
||||
'-Wno-implicit-fallthrough']
|
||||
c_args = cflags
|
||||
foreach flag: error_cflags
|
||||
if cc.has_argument(flag)
|
||||
c_args += flag
|
||||
endif
|
||||
endforeach
|
||||
|
||||
base_lib = static_library('e1000_base', sources,
|
||||
dependencies: rte_eal,
|
||||
c_args: c_args)
|
||||
base_objs = base_lib.extract_all_objects()
|
44
drivers/net/e1000/meson.build
Normal file
44
drivers/net/e1000/meson.build
Normal file
@ -0,0 +1,44 @@
|
||||
# BSD LICENSE
|
||||
#
|
||||
# Copyright(c) 2017 Intel Corporation.
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
#
|
||||
# * Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in
|
||||
# the documentation and/or other materials provided with the
|
||||
# distribution.
|
||||
# * Neither the name of Intel Corporation nor the names of its
|
||||
# contributors may be used to endorse or promote products derived
|
||||
# from this software without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
subdir('base')
|
||||
objs = [base_objs]
|
||||
|
||||
sources = files(
|
||||
'em_ethdev.c',
|
||||
'em_rxtx.c',
|
||||
'igb_ethdev.c',
|
||||
'igb_flow.c',
|
||||
'igb_pf.c',
|
||||
'igb_rxtx.c'
|
||||
)
|
||||
|
||||
includes += include_directories('base')
|
55
drivers/net/fm10k/base/meson.build
Normal file
55
drivers/net/fm10k/base/meson.build
Normal file
@ -0,0 +1,55 @@
|
||||
# BSD LICENSE
|
||||
#
|
||||
# Copyright(c) 2017 Intel Corporation.
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
#
|
||||
# * Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in
|
||||
# the documentation and/or other materials provided with the
|
||||
# distribution.
|
||||
# * Neither the name of Intel Corporation nor the names of its
|
||||
# contributors may be used to endorse or promote products derived
|
||||
# from this software without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
sources = [
|
||||
'fm10k_api.c',
|
||||
'fm10k_common.c',
|
||||
'fm10k_mbx.c',
|
||||
'fm10k_pf.c',
|
||||
'fm10k_tlv.c',
|
||||
'fm10k_vf.c'
|
||||
]
|
||||
|
||||
error_cflags = ['-Wno-unused-parameter', '-Wno-unused-value',
|
||||
'-Wno-strict-aliasing', '-Wno-format-extra-args',
|
||||
'-Wno-unused-variable', '-Wno-missing-field-initializers'
|
||||
]
|
||||
c_args = cflags
|
||||
foreach flag: error_cflags
|
||||
if cc.has_argument(flag)
|
||||
c_args += flag
|
||||
endif
|
||||
endforeach
|
||||
|
||||
base_lib = static_library('fm10k_base', sources,
|
||||
dependencies: rte_eal,
|
||||
c_args: c_args)
|
||||
base_objs = base_lib.extract_all_objects()
|
44
drivers/net/fm10k/meson.build
Normal file
44
drivers/net/fm10k/meson.build
Normal file
@ -0,0 +1,44 @@
|
||||
# BSD LICENSE
|
||||
#
|
||||
# Copyright(c) 2017 Intel Corporation.
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
#
|
||||
# * Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in
|
||||
# the documentation and/or other materials provided with the
|
||||
# distribution.
|
||||
# * Neither the name of Intel Corporation nor the names of its
|
||||
# contributors may be used to endorse or promote products derived
|
||||
# from this software without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
subdir('base')
|
||||
objs = [base_objs]
|
||||
|
||||
sources = files(
|
||||
'fm10k_ethdev.c',
|
||||
'fm10k_rxtx.c',
|
||||
)
|
||||
if arch_subdir == 'x86'
|
||||
dpdk_conf.set('RTE_LIBRTE_FM10K_INC_VECTOR', 1)
|
||||
sources += files('fm10k_rxtx_vec.c')
|
||||
endif
|
||||
|
||||
includes += include_directories('base')
|
56
drivers/net/i40e/base/meson.build
Normal file
56
drivers/net/i40e/base/meson.build
Normal file
@ -0,0 +1,56 @@
|
||||
# BSD LICENSE
|
||||
#
|
||||
# Copyright(c) 2017 Intel Corporation.
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
#
|
||||
# * Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in
|
||||
# the documentation and/or other materials provided with the
|
||||
# distribution.
|
||||
# * Neither the name of Intel Corporation nor the names of its
|
||||
# contributors may be used to endorse or promote products derived
|
||||
# from this software without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
sources = [
|
||||
'i40e_adminq.c',
|
||||
'i40e_common.c',
|
||||
'i40e_dcb.c',
|
||||
'i40e_diag.c',
|
||||
'i40e_hmc.c',
|
||||
'i40e_lan_hmc.c',
|
||||
'i40e_nvm.c'
|
||||
]
|
||||
|
||||
error_cflags = ['-Wno-sign-compare', '-Wno-unused-value',
|
||||
'-Wno-format', '-Wno-unused-but-set-variable',
|
||||
'-Wno-strict-aliasing'
|
||||
]
|
||||
c_args = cflags
|
||||
foreach flag: error_cflags
|
||||
if cc.has_argument(flag)
|
||||
c_args += flag
|
||||
endif
|
||||
endforeach
|
||||
|
||||
base_lib = static_library('i40e_base', sources,
|
||||
dependencies: rte_eal,
|
||||
c_args: c_args)
|
||||
base_objs = base_lib.extract_all_objects()
|
73
drivers/net/i40e/meson.build
Normal file
73
drivers/net/i40e/meson.build
Normal file
@ -0,0 +1,73 @@
|
||||
# BSD LICENSE
|
||||
#
|
||||
# Copyright(c) 2017 Intel Corporation.
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
#
|
||||
# * Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in
|
||||
# the documentation and/or other materials provided with the
|
||||
# distribution.
|
||||
# * Neither the name of Intel Corporation nor the names of its
|
||||
# contributors may be used to endorse or promote products derived
|
||||
# from this software without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
cflags = ['-DPF_DRIVER',
|
||||
'-DVF_DRIVER',
|
||||
'-DINTEGRATED_VF',
|
||||
'-DX722_A0_SUPPORT']
|
||||
|
||||
subdir('base')
|
||||
objs = [base_objs]
|
||||
|
||||
sources = files(
|
||||
'i40e_ethdev.c',
|
||||
'i40e_rxtx.c',
|
||||
'i40e_ethdev_vf.c',
|
||||
'i40e_pf.c',
|
||||
'i40e_fdir.c',
|
||||
'i40e_flow.c',
|
||||
'i40e_tm.c',
|
||||
'rte_pmd_i40e.c'
|
||||
)
|
||||
|
||||
deps += ['hash']
|
||||
|
||||
if arch_subdir == 'x86'
|
||||
dpdk_conf.set('RTE_LIBRTE_I40E_INC_VECTOR', 1)
|
||||
sources += files('i40e_rxtx_vec_sse.c')
|
||||
|
||||
# compile AVX2 version if either:
|
||||
# a. we have AVX supported in minimum instruction set baseline
|
||||
# b. it's not minimum instruction set, but supported by compiler
|
||||
if dpdk_conf.has('RTE_MACHINE_CPUFLAG_AVX2')
|
||||
sources += files('i40e_rxtx_vec_avx2.c')
|
||||
elif cc.has_argument('-mavx2')
|
||||
i40e_avx2_lib = static_library('i40e_avx2_lib',
|
||||
'i40e_rxtx_vec_avx2.c',
|
||||
dependencies: static_rte_eal,
|
||||
c_args: '-mavx2')
|
||||
objs += i40e_avx2_lib.extract_objects('i40e_rxtx_vec_avx2.c')
|
||||
endif
|
||||
endif
|
||||
|
||||
includes += include_directories('base')
|
||||
|
||||
install_headers('rte_pmd_i40e.h')
|
60
drivers/net/ixgbe/base/meson.build
Normal file
60
drivers/net/ixgbe/base/meson.build
Normal file
@ -0,0 +1,60 @@
|
||||
# BSD LICENSE
|
||||
#
|
||||
# Copyright(c) 2017 Intel Corporation.
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
#
|
||||
# * Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in
|
||||
# the documentation and/or other materials provided with the
|
||||
# distribution.
|
||||
# * Neither the name of Intel Corporation nor the names of its
|
||||
# contributors may be used to endorse or promote products derived
|
||||
# from this software without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
sources = [
|
||||
'ixgbe_82598.c',
|
||||
'ixgbe_82599.c',
|
||||
'ixgbe_api.c',
|
||||
'ixgbe_common.c',
|
||||
'ixgbe_dcb_82598.c',
|
||||
'ixgbe_dcb_82599.c',
|
||||
'ixgbe_dcb.c',
|
||||
'ixgbe_hv_vf.c',
|
||||
'ixgbe_mbx.c',
|
||||
'ixgbe_phy.c',
|
||||
'ixgbe_vf.c',
|
||||
'ixgbe_x540.c',
|
||||
'ixgbe_x550.c'
|
||||
]
|
||||
|
||||
error_cflags = ['-Wno-unused-value',
|
||||
'-Wno-unused-but-set-variable']
|
||||
c_args = cflags
|
||||
foreach flag: error_cflags
|
||||
if cc.has_argument(flag)
|
||||
c_args += flag
|
||||
endif
|
||||
endforeach
|
||||
|
||||
base_lib = static_library('ixgbe_base', sources,
|
||||
dependencies: rte_eal,
|
||||
c_args: c_args)
|
||||
base_objs = base_lib.extract_all_objects()
|
60
drivers/net/ixgbe/meson.build
Normal file
60
drivers/net/ixgbe/meson.build
Normal file
@ -0,0 +1,60 @@
|
||||
# BSD LICENSE
|
||||
#
|
||||
# Copyright(c) 2017 Intel Corporation.
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
#
|
||||
# * Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in
|
||||
# the documentation and/or other materials provided with the
|
||||
# distribution.
|
||||
# * Neither the name of Intel Corporation nor the names of its
|
||||
# contributors may be used to endorse or promote products derived
|
||||
# from this software without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
cflags = ['-DRTE_LIBRTE_IXGBE_BYPASS']
|
||||
|
||||
subdir('base')
|
||||
objs = [base_objs]
|
||||
|
||||
allow_experimental_apis = true
|
||||
sources = files(
|
||||
'ixgbe_82599_bypass.c',
|
||||
'ixgbe_bypass.c',
|
||||
'ixgbe_ethdev.c',
|
||||
'ixgbe_fdir.c',
|
||||
'ixgbe_flow.c',
|
||||
'ixgbe_ipsec.c',
|
||||
'ixgbe_pf.c',
|
||||
'ixgbe_rxtx.c',
|
||||
'ixgbe_tm.c',
|
||||
'rte_pmd_ixgbe.c'
|
||||
)
|
||||
|
||||
deps += ['hash', 'security']
|
||||
|
||||
if arch_subdir == 'x86'
|
||||
dpdk_conf.set('RTE_IXGBE_INC_VECTOR', 1)
|
||||
sources += files('ixgbe_rxtx_vec_sse.c')
|
||||
endif
|
||||
|
||||
includes += include_directories('base')
|
||||
|
||||
install_headers('rte_pmd_ixgbe.h')
|
@ -29,7 +29,8 @@
|
||||
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
drivers = ['af_packet', 'null', 'pcap', 'ring']
|
||||
drivers = ['af_packet', 'e1000', 'fm10k', 'i40e', 'ixgbe',
|
||||
'null', 'pcap', 'ring']
|
||||
std_deps = ['ethdev', 'kvargs'] # 'ethdev' also pulls in mbuf, net, eal etc
|
||||
std_deps += ['bus_pci'] # very many PMDs depend on PCI, so make std
|
||||
std_deps += ['bus_vdev'] # same with vdev bus
|
||||
|
Loading…
x
Reference in New Issue
Block a user