net/octeontx2: fix PTP configurations for VF
authorHarman Kalra <hkalra@marvell.com>
Mon, 11 Nov 2019 05:48:54 +0000 (05:48 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 20 Nov 2019 16:36:05 +0000 (17:36 +0100)
commit35867a370f5dedf24b4efc13fdd01474b80e8721
treef64d5717b1dfa4a5977a968395d0fe6d6239fca7
parentb26a63510a59e773353a0cb64cbde1b1bcfb410b
net/octeontx2: fix PTP configurations for VF

Issue has been observed if PTP is already enabled on PF and
later VFs are configured. Since PTP requires mbuf data off
to be shifted by 8 bytes, due to this l3fwd/l2fwd was not
working with VFs.
Also some extra garbage bytes were observed in packet data
when ptp was enabled.

Fixes: b5dc3140448e ("net/octeontx2: support base PTP")
Cc: stable@dpdk.org
Signed-off-by: Harman Kalra <hkalra@marvell.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
drivers/common/octeontx2/otx2_mbox.h
drivers/net/octeontx2/otx2_ethdev.c
drivers/net/octeontx2/otx2_ethdev.h
drivers/net/octeontx2/otx2_ethdev_ops.c
drivers/net/octeontx2/otx2_ptp.c
drivers/net/octeontx2/otx2_rx.h