kni: remove continuous memory restriction
authorFerruh Yigit <ferruh.yigit@intel.com>
Thu, 25 Aug 2016 11:30:34 +0000 (12:30 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 21 Sep 2016 17:18:44 +0000 (19:18 +0200)
commit8451269e6d7ba7501723fe2efd05745010295bac
tree74ba5324a452843d55790046ddc61f28cf49b5be
parentf503b8cff520c5b17d929c7ee8304c2eab7bb20b
kni: remove continuous memory restriction

Use mempool buf_addr and buf_physaddr fields for address translation.

Since each mbuf address calculated separately, the restriction of all
mbufs should come from a continuous memory restriction is no more valid.

mbuf related FIFO's content changed, rx_q and alloc_q now carries
physical address of mbufs. tx_q and free_q content not changed, they
still carries virtual address of mbufs.

Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
lib/librte_eal/linuxapp/eal/include/exec-env/rte_kni_common.h
lib/librte_eal/linuxapp/kni/kni_misc.c
lib/librte_eal/linuxapp/kni/kni_net.c
lib/librte_kni/rte_kni.c