[dpdk-dev] [PATCH] net/af_packet: run on kernels without qdisc bypass support
Thomas Monjalon
thomas at monjalon.net
Fri Jul 23 10:21:11 CEST 2021
14/07/2021 11:28, Tudor Cornea:
> Some older kernels do not support the PACKET_QDISC_BYPASS socket
> option. Such an example is the CentOS 7 kernel (3.10).
>
> If we only check for the definition of PACKET_QDISC_BYPASS, it might mean
> that we will not be able to compile the PMD driver on a newer platform,
> and run in on a machine with an older kernel.
>
> Setting the socket option only if it is specifically requested from
> the EAL arguments, allows us to have a way to run the PMD compiled
> against newer kernel headers, on platforms having older kernels.
>
> Signed-off-by: Tudor Cornea <tudor.cornea at keysight.com>
Applied, thanks.
More information about the dev
mailing list