MCPcopy Create free account
hub / github.com/NetSys/bess / check_mlx

Function check_mlx

build.py:229–241  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

227
228
229def check_mlx():
230 if check_header('infiniband/verbs_exp.h', 'gcc'):
231 extra_libs.add('ibverbs')
232 # extra_libs.add('mlx5')
233 else:
234 print(' - "Mellanox OFED" is not available. '
235 'Disabling MLX4 and MLX5 PMDs...')
236 if check_header('infiniband/verbs.h', 'gcc'):
237 print(' NOTE: "libibverbs-dev" does exist, but it does not '
238 'work with MLX PMDs. Instead download OFED from '
239 'http://www.melloanox.com')
240 set_config(DPDK_FINAL_CONFIG, 'CONFIG_RTE_LIBRTE_MLX4_PMD', 'n')
241 set_config(DPDK_FINAL_CONFIG, 'CONFIG_RTE_LIBRTE_MLX5_PMD', 'n')
242
243
244def generate_dpdk_extra_mk():

Callers 1

configure_dpdkFunction · 0.85

Calls 3

check_headerFunction · 0.85
set_configFunction · 0.85
addMethod · 0.80

Tested by

no test coverage detected