numam-dpdk/drivers/net/iavf
David Marchand b76fafb174 eal: fix IOVA mode selection as VA for PCI drivers
The incriminated commit broke the use of RTE_PCI_DRV_IOVA_AS_VA which
was intended to mean "driver only supports VA" but had been understood
as "driver supports both PA and VA" by most net drivers and used to let
dpdk processes to run as non root (which do not have access to physical
addresses on recent kernels).

The check on physical addresses actually closed the gap for those
drivers. We don't need to mark them with RTE_PCI_DRV_IOVA_AS_VA and this
flag can retain its intended meaning.
Document explicitly its meaning.

We can check that a driver requirement wrt to IOVA mode is fulfilled
before trying to probe a device.

Finally, document the heuristic used to select the IOVA mode and hope
that we won't break it again.

Fixes: 703458e19c ("bus/pci: consider only usable devices for IOVA mode")

Signed-off-by: David Marchand <david.marchand@redhat.com>
Reviewed-by: Jerin Jacob <jerinj@marvell.com>
Tested-by: Jerin Jacob <jerinj@marvell.com>
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
2019-07-22 17:45:52 +02:00
..
base net/iavf: enable more link speed 2019-05-07 12:01:56 +02:00
iavf_ethdev.c eal: fix IOVA mode selection as VA for PCI drivers 2019-07-22 17:45:52 +02:00
iavf_log.h net/iavf: rename remaining avf strings 2019-03-01 18:17:35 +01:00
iavf_rxtx_vec_common.h net/iavf: rename remaining avf strings 2019-03-01 18:17:35 +01:00
iavf_rxtx_vec_sse.c net/iavf: rename remaining avf strings 2019-03-01 18:17:35 +01:00
iavf_rxtx.c mbuf: clarify outer offsets for non-tunnel packets 2019-07-01 17:15:01 +02:00
iavf_rxtx.h net/iavf: move compile time define to configuration 2019-06-20 23:42:04 +02:00
iavf_vchnl.c net: add rte prefix to ether functions 2019-05-24 13:34:45 +02:00
iavf.h net: add rte prefix to ether defines 2019-05-24 13:34:45 +02:00
Makefile net/iavf: move compile time define to configuration 2019-06-20 23:42:04 +02:00
meson.build net/iavf: rename remaining avf strings 2019-03-01 18:17:35 +01:00
rte_pmd_iavf_version.map net/iavf: rename avf to iavf 2019-03-01 18:17:35 +01:00