net/octeontx2: fix jumbo frame crash
authorHarman Kalra <hkalra@marvell.com>
Thu, 8 Oct 2020 18:48:45 +0000 (00:18 +0530)
committerJerin Jacob <jerinj@marvell.com>
Thu, 15 Oct 2020 20:54:21 +0000 (22:54 +0200)
commitce8628c66a22f1222693075d9d474bd4b96f9c2c
tree11d7eb8bd0cd9b35dad3e6e50098ed44bd6d60c1
parentcb7ee83b63657b4c519c35570f85c748462a100a
net/octeontx2: fix jumbo frame crash

Issue has been observed in case of multi segments where mbuf
data gets corrupted due to missing barriers. Changes made to
mbuf just before LMTST by one core gets updatded when the
same mbuf is in use by another core, leading to corruption.
It should be ensured that all changes made to mbuf should be
written before LMTST.

Fixes: cbd5710db48d ("net/octeontx2: add Tx multi segment version")
Cc: stable@dpdk.org
Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
Signed-off-by: Nithin Dabilpuram <ndabilpuram@marvell.com>
Signed-off-by: Harman Kalra <hkalra@marvell.com>
drivers/common/octeontx2/otx2_io_arm64.h
drivers/common/octeontx2/otx2_io_generic.h
drivers/event/octeontx2/otx2_worker.h
drivers/mempool/octeontx2/otx2_mempool_ops.c
drivers/net/octeontx2/otx2_tx.c
drivers/net/octeontx2/otx2_tx.h