On Fri, Oct 2, 2020 at 9:54 AM Maxime Coquelin <maxime.coque...@redhat.com> wrote: > > VIRTIO_F_IOMMU_PLATFORM is now defined in recent kernel > headers, causing build issue. > > Le's define it in IFC vDPA driver only if wasn't already.
Let's* define it in the* IFC vDPA driver only if it* wasn't already. > > Fixes: a3f8150eac6d ("net/ifcvf: add ifcvf vDPA driver") > Cc: sta...@dpdk.org > > Reported-by: Brandon Lo <b...@iol.unh.edu> > Signed-off-by: Maxime Coquelin <maxime.coque...@redhat.com> > --- > drivers/vdpa/ifc/base/ifcvf.h | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/vdpa/ifc/base/ifcvf.h b/drivers/vdpa/ifc/base/ifcvf.h > index a288ce57dc..573a35ffb4 100644 > --- a/drivers/vdpa/ifc/base/ifcvf.h > +++ b/drivers/vdpa/ifc/base/ifcvf.h > @@ -13,7 +13,10 @@ > #define IFCVF_SUBSYS_DEVICE_ID 0x001A > > #define IFCVF_MAX_QUEUES 1 > + > +#ifndef VIRTIO_F_IOMMU_PLATFORM > #define VIRTIO_F_IOMMU_PLATFORM 33 > +#endif > > /* Common configuration */ > #define IFCVF_PCI_CAP_COMMON_CFG 1 > -- > 2.26.2 > Acked-by: David Marchand <david.march...@redhat.com> -- David Marchand