vdpa/ifc: fix build with recent kernels
authorMaxime Coquelin <maxime.coquelin@redhat.com>
Fri, 2 Oct 2020 07:54:00 +0000 (09:54 +0200)
committerDavid Marchand <david.marchand@redhat.com>
Fri, 2 Oct 2020 16:38:33 +0000 (18:38 +0200)
commit4e1b5092ad1ce3e3bd66eb20a9976d027e424b0a
tree10f24ddac98e353054f74f5e42cf3d3b84c2513e
parent3f6f83626cf4967a99382a6518a614a1bf3d2c20
vdpa/ifc: fix build with recent kernels

VIRTIO_F_IOMMU_PLATFORM is now defined in recent kernel
headers, causing build issue.

Let's define it in the IFC vDPA driver only if it wasn't already.

Fixes: a3f8150eac6d ("net/ifcvf: add ifcvf vDPA driver")
Cc: stable@dpdk.org
Reported-by: Brandon Lo <blo@iol.unh.edu>
Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Acked-by: David Marchand <david.marchand@redhat.com>
drivers/vdpa/ifc/base/ifcvf.h