kni: fix not contiguous FIFO
authorScott Wasson <scott_wasson@affirmednetworks.com>
Fri, 14 Feb 2020 10:00:52 +0000 (10:00 +0000)
committerDavid Marchand <david.marchand@redhat.com>
Fri, 14 Feb 2020 10:59:01 +0000 (11:59 +0100)
commiteab71b8463c9d3aeeb8c222ff6159b4125d23019
treefb867bc9bff2fdf0da25a12d7efd477b7102c01d
parente85373edf0857f1774f6e519bd2af669d6eaeb2b
kni: fix not contiguous FIFO

KNI requires FIFO to be physically contiguous, with existing
'rte_memzone_reserve()' API this is not guaranteed by default and as a
result KNI rings and packet delivery may be broken if reserved memory
is not physically contiguous.

Fixing it by providing 'RTE_MEMZONE_IOVA_CONTIG' flag to ask physically
contiguous memory.

Bugzilla ID: 389
Fixes: 23fa86e529e4 ("memzone: enable IOVA-contiguous reserving")
Cc: stable@dpdk.org
Signed-off-by: Scott Wasson <scott_wasson@affirmednetworks.com>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
lib/librte_kni/rte_kni.c