Skip to content

Commit

Permalink
linux-dpdk: m4: detect dpdk pcap driver availability with pkg-config
Browse files Browse the repository at this point in the history
Previously, rte_net_pcap was not detected when using pkg-config to detect
DPDK library.

Signed-off-by: Matias Elo <[email protected]>
  • Loading branch information
MatiasElo committed Nov 1, 2023
1 parent 600a8a5 commit 15c4b4c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions m4/odp_dpdk.m4
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,11 @@ if test "x$use_pkg_config" = "xyes"; then
DPDK_LIBS_LT="$DPDK_LIBS_LIBODP"
fi
DPDK_LIBS=$DPDK_LIBS_LIBODP
have_pmd_pcap=no
if grep -q "$librte_net_pcap" <<< "$DPDK_LIBS_LIBODP"; then
have_pmd_pcap=yes
fi
fi
])

Expand Down

0 comments on commit 15c4b4c

Please sign in to comment.