Skip to content

kni: support IOVA mode

[email protected] dpdk-dev 9 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v14 Latest2 patches 0 repliesNew
  2. v132 patches 7 repliesSuperseded
  3. v122 patches 16 repliesSuperseded
Earlier versions · 6
VersionPostedPatchesRepliesStatus
v114 patches17 repliesSuperseded
v105 patches18 repliesSuperseded
v95 patches4 repliesSuperseded
v85 patches10 repliesSuperseded
v74 patches5 repliesSuperseded
v64 patches25 repliesSuperseded

Changes in v14 from the cover letter

* Simplified forcing IOVA as PA scheme.
* Updated documentation

Patches in v14 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2kni: support IOVA mode in kernel modulekernel/linux/kni/compat.h kernel/linux/kni/kni_dev.h kernel/linux/kni/kni_misc.c +2 more+136 -220 replies
2/2kni: support IOVA modedoc/guides/prog_guide/kernel_nic_interface.rst doc/guides/rel_notes/release_19_11.rst lib/librte_eal/linux/eal/eal.c +1 more+40 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v14 yet.

Read the v14 thread

Cover letter [dpdk-dev] [PATCH v14 0/2] kni: support IOVA mode

From: Vamsi Attunuru <[email protected]>

---
V14 Changes:
* Simplified forcing IOVA as PA scheme.
* Updated documentation

V13 Changes:
* For KNI case, to restore the existing behaviour, forcing IOVA as PA if bus iommu returns IOVA_DC.
* Restored phys_addr and kni_lib defination checks.
* Simplified patch titles.
* Updated documentation about patch set's impact on performance and kernel version requirement.

V12 Changes:
* Removed previously added --legacy-kni eal option.
* Removed previously added kni specific mempool create routines and mempool populate routines.

V11 Changes:
* Added iova to kva address translation routines in kernel module to make it work in iova=va mode which enables DPDK to create kni devices on any kind of backed device/memory.
* Added ``--legacy-kni`` eal option to make existing KNI applications work with DPDK 19.11 and later versions.
* Removed previously added pci device info from kni device info struct.

V10 Changes:
* Fixed function return code on failure when min_chunk_size > pg_sz.
* Marked new mempool populate routine as EXPERIMENTAL.

V9 Changes:
* Used rte_mempool_ops_calc_mem_size() instead of default handler in the new mempool populate routine.
* Check min_chunk_size and return values.
* Removed ethdev_info memset to '0' and moved pci dev_info populate into kni_dev_pci_addr_get() routine.
* Addressed misc. review comments.

V8 Changes:
* Remove default mempool populate() routine changes.
* Add kni app specific mempool create & free routines.
* Add new mempool populate routine to allocate page-aligned memzones with page size to make sure all mempool objects reside on a page.
* Update release notes and map files.

V7 Changes:
* Removed previously proposed mempool flag and made those page boundary checks default in mempool populate() except for the objects size bigger than the size of page.
* Removed KNI example application related changes since pool related requirement is taken care in mempool lib.
* All PCI dev related info is moved under rte_eal_iova_mode() == VA check.
* Added wrapper functions in KNI module to hide IOVA checks and make address translation routines more readable.
* Updated IOVA mode checks that enforcing IOVA=PA mode when IOVA=VA mode is enabled.

V6 Changes:
* Added new mempool flag to ensure mbuf memory is not scattered across page boundaries.
* Added KNI kernel module required PCI device information.
* Modified KNI example application to create mempool with new mempool flag.

V5 changes:
* Fixed build issue with 32b build

V4 changes:
* Fixed build issues with older kernel versions
* This approach will only work with kernel above 4.4.0

David Marchand (1):
kni: support IOVA mode

Vamsi Attunuru (1):
kni: support IOVA mode in kernel module

 doc/guides/prog_guide/kernel_nic_interface.rst    | 14 +++++
 doc/guides/rel_notes/release_19_11.rst            | 13 ++++-
 kernel/linux/kni/compat.h                         | 14 +++++
 kernel/linux/kni/kni_dev.h                        | 42 +++++++++++++++
 kernel/linux/kni/kni_misc.c                       | 39 ++++++++++----
 kernel/linux/kni/kni_net.c                        | 62 ++++++++++++++++++-----
 lib/librte_eal/linux/eal/eal.c                    | 11 +++-
 lib/librte_eal/linux/eal/include/rte_kni_common.h |  1 +
 lib/librte_kni/rte_kni.c                          |  5 ++
 9 files changed, 176 insertions(+), 25 deletions(-)
Signature · 1 line
2.8.4