[dpdk-dev] [PATCH v12 1/2] kni: add IOVA=VA mode support
David Marchand
david.marchand at redhat.com
Thu Nov 14 12:13:16 CET 2019
On Thu, Nov 14, 2019 at 11:57 AM David Marchand
<david.marchand at redhat.com> wrote:
> On Tue, Nov 5, 2019 at 12:05 PM <vattunuru at marvell.com> wrote:
> > diff --git a/lib/librte_eal/linux/eal/eal.c b/lib/librte_eal/linux/eal/eal.c
> > index 9e2d50c..a1c5bf6 100644
> > --- a/lib/librte_eal/linux/eal/eal.c
> > +++ b/lib/librte_eal/linux/eal/eal.c
> > @@ -922,6 +922,19 @@ static int rte_eal_vfio_setup(void)
> > }
> > #endif
> >
> > +static enum rte_iova_mode
> > +rte_eal_kni_get_iova_mode(enum rte_iova_mode iova_mode)
> > +{
> > + if (iova_mode == RTE_IOVA_VA) {
> > +#if KERNEL_VERSION(4, 6, 0) > LINUX_VERSION_CODE
>
> I understood that IOVA as VA is possible with kernel >= 4.6.
> Should it be < ?
I meant "Should the #if check be < ?".
I did not mention this first, but thinking again, don't we have an issue here?
This won't work for distributions that ship dpdk with kni built with dkms.
Cc: Luca.
--
David Marchand
More information about the dev
mailing list