net/octeontx: fix mbuf corruption with large private sizes
authorNitin Saxena <nitin.saxena@caviumnetworks.com>
Mon, 12 Nov 2018 17:54:09 +0000 (17:54 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 13 Nov 2018 23:35:53 +0000 (00:35 +0100)
commit679dfdc96ef9ae0b1a54098fc19986f93621c8cb
tree7d670c681277bb325d4c98c143456f44b8ae0446
parent15febafdd43fd300c7178f95e79013d3a81e8967
net/octeontx: fix mbuf corruption with large private sizes

When the priv_size of the mbuf is > 128 bytes, the mbuf would not be
properly constructed. This would lead to a corrupt mbuf.

This patch fixes the issue by accounting for
rte_pktmbuf_priv_size(pool) and RTE_PKTMBUF_HEADROOM
while configuring first skip register calculation.

Fixes: 197438ee9f18 ("net/octeontx: add Rx queue setup and release ops")
Cc: stable@dpdk.org
Suggested-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Signed-off-by: Anoob Joseph <anoob.joseph@caviumnetworks.com>
Signed-off-by: Nitin Saxena <nitin.saxena@caviumnetworks.com>
Acked-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
drivers/net/octeontx/base/octeontx_pki_var.h
drivers/net/octeontx/octeontx_ethdev.c