numam-dpdk/drivers/net/mlx4
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
..
Makefile net/mlx4: support secondary process 2019-04-05 17:45:22 +02:00
meson.build net/mlx: allow build only on Linux 2019-07-08 21:26:52 +02:00
mlx4_ethdev.c net/mlx4: fix RxQ errors stat 2019-06-06 20:21:20 +09:00
mlx4_flow.c net: add rte prefix to ether defines 2019-05-24 13:34:45 +02:00
mlx4_flow.h ethdev: deprecate legacy filter API 2019-04-19 14:51:54 +02:00
mlx4_glue.c align SPDX Mellanox copyrights 2018-04-11 01:47:47 +02:00
mlx4_glue.h align SPDX Mellanox copyrights 2018-04-11 01:47:47 +02:00
mlx4_intr.c net/mlx4: change device reference for secondary process 2019-04-05 17:45:22 +02:00
mlx4_mp.c ipc: handle unsupported IPC in sync request 2019-06-05 11:28:05 +02:00
mlx4_mr.c mem: add API to lock/unlock memory hotplug 2019-07-05 22:12:40 +02:00
mlx4_mr.h net/mlx4: enable secondary process to register DMA memory 2019-04-05 17:45:22 +02:00
mlx4_prm.h net/mlx4: remove device register remap 2019-04-12 11:02:02 +02:00
mlx4_rxq.c net/mlx4: add external allocator for Verbs object 2019-04-05 17:45:22 +02:00
mlx4_rxtx.c eal: hide shared memory config 2019-07-06 10:32:34 +02:00
mlx4_rxtx.h net/mlx4: remove device register remap 2019-04-12 11:02:02 +02:00
mlx4_txq.c net/mlx4: remove device register remap 2019-04-12 11:02:02 +02:00
mlx4_utils.c align SPDX Mellanox copyrights 2018-04-11 01:47:47 +02:00
mlx4_utils.h net/mlx4: use dynamic log type 2019-05-27 10:20:45 +02:00
mlx4.c eal: fix IOVA mode selection as VA for PCI drivers 2019-07-22 17:45:52 +02:00
mlx4.h ipc: handle unsupported IPC in action register 2019-06-05 11:27:36 +02:00
rte_pmd_mlx4_version.map mlx4: move to drivers/net/ 2015-05-22 16:06:22 +02:00