Skip to content

Commit

Permalink
Merge branch 'DPDK:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
eroullit authored Jul 4, 2023
2 parents ec95004 + a10529f commit 2086a01
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ jobs:
with:
path: reference
key: ${{ steps.get_ref_keys.outputs.abi }}
- name: Configure i386 architecture
if: env.BUILD_32BIT == 'true'
run: sudo dpkg --add-architecture i386
- name: Update APT cache
run: sudo apt update || true
- name: Install packages
Expand All @@ -104,7 +107,7 @@ jobs:
run: sudo apt install -y autoconf automake libdw-dev libtool libxml2-dev
- name: Install i386 cross compiling packages
if: env.BUILD_32BIT == 'true'
run: sudo apt install -y gcc-multilib g++-multilib
run: sudo apt install -y gcc-multilib g++-multilib libnuma-dev:i386
- name: Install aarch64 cross compiling packages
if: env.AARCH64 == 'true'
run: sudo apt install -y crossbuild-essential-arm64
Expand Down
9 changes: 9 additions & 0 deletions config/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,15 @@ endif
if not dpdk_conf.has('RTE_MAX_NUMA_NODES')
error('Number of NUMA nodes not specified.')
endif
if (is_linux and
dpdk_conf.get('RTE_MAX_NUMA_NODES') > 1 and
not meson.is_cross_build() and
not has_libnuma)
error('''
No NUMA library (development package) found, yet DPDK configured for multiple NUMA nodes.
Please install libnuma, or set 'max_numa_nodes' option to '1' to build without NUMA support.
''')
endif

# set the install path for the drivers
dpdk_conf.set_quoted('RTE_EAL_PMD_PATH', eal_pmd_path)
Expand Down
5 changes: 5 additions & 0 deletions drivers/raw/ntb/ntb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1045,6 +1045,11 @@ ntb_dev_close(struct rte_rawdev *dev)
hw->queue_pairs = 0;

intr_handle = hw->pci_dev->intr_handle;
/* Disable interrupt only once */
if (!rte_intr_nb_efd_get(intr_handle) &&
!rte_intr_max_intr_get(intr_handle))
return 0;

/* Clean datapath event and vec mapping */
rte_intr_efd_disable(intr_handle);
rte_intr_vec_list_free(intr_handle);
Expand Down

0 comments on commit 2086a01

Please sign in to comment.