[dpdk-dev] [PATCH] bpf: fix convert API can be undefined
Stephen Hemminger
stephen at networkplumber.org
Mon Nov 1 17:15:42 CET 2021
On Mon, 1 Nov 2021 14:52:46 +0000
Konstantin Ananyev <konstantin.ananyev at intel.com> wrote:
> rte_bpf_convert() implementation depends on libpcap.
> Right now it is defined only when this library is installed and
> RTE_PORT_PCAP is defined.
> Fix that by providing for such case stub rte_bpf_convert()
> implementation that will always return an error.
> Also move stub for another function (rte_bpf_elf_load) into
> the same place (bpf_stub.c).
>
> Fixes: 2eccf6afbea9 ("bpf: add function to convert classic BPF to DPDK BPF")
>
> Signed-off-by: Konstantin Ananyev <konstantin.ananyev at intel.com>
It would be better to fail calls at compile time rather than returning an error.
More information about the dev
mailing list