eal/linux: remove KNI restriction on IOVA
authorVamsi Attunuru <vattunuru@marvell.com>
Sun, 17 Nov 2019 15:12:44 +0000 (16:12 +0100)
committerDavid Marchand <david.marchand@redhat.com>
Mon, 18 Nov 2019 15:00:51 +0000 (16:00 +0100)
commita0dede62a5372da0a9b67859962e64108a10b916
tree173ba751b196a0750eba50b100fb67be5bd34d3e
parente73831dc6c26441bfa910d65aab486043f432b12
eal/linux: remove KNI restriction on IOVA

Now that KNI supports VA (with kernel versions starting 4.6.0), we can
accept IOVA as VA, but KNI must be configured for this.
Pass iova_mode when creating KNI netdevs.

So far, IOVA detection policy forced IOVA as PA when KNI is loaded,
whatever the buses IOVA requirements were.

We can now use IOVA as VA, but this comes with a cost in KNI.
When no constraint is expressed by the buses, keep the current behavior
of choosing PA.

Note: this change supposes that dpdk is built on the same kernel than
the target system kernel; no objection has been expressed on this topic.

Signed-off-by: Vamsi Attunuru <vattunuru@marvell.com>
Signed-off-by: Kiran Kumar K <kirankumark@marvell.com>
Signed-off-by: David Marchand <david.marchand@redhat.com>
Reviewed-by: Jerin Jacob <jerinj@marvell.com>
doc/guides/prog_guide/env_abstraction_layer.rst
doc/guides/prog_guide/kernel_nic_interface.rst
doc/guides/rel_notes/release_19_11.rst
lib/librte_eal/linux/eal/eal.c
lib/librte_kni/rte_kni.c