]> git.droids-corp.org - dpdk.git/commit
net/dpaa2: fix timestamping for IEEE1588
authorVanshika Shukla <vanshika.shukla@nxp.com>
Mon, 3 Jan 2022 10:01:19 +0000 (15:31 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 20 Jan 2022 15:24:08 +0000 (16:24 +0100)
commit90762e5cb8154bb437618f81488ac92a24455521
treed4e1ed484af2a6ff0e13979e6be1d39437f3a5d1
parentd192fd321c5eeaba77ef7aab179c447d151ac9cb
net/dpaa2: fix timestamping for IEEE1588

The current implementation of DPAA2 driver code is such
that it records Rx and Tx timestamp for PTP without checking
if they are PTP packets or not. Packets for which
RTE_MBUF_F_RX_IEEE1588_TMST and RTE_MBUF_F_TX_IEEE1588_TMST
is not set, Rx and Tx timestamp should not be recorded.

This patch fixes this issue by checking if the required
flags are set in the mbuf before recording timestamps.

Also this change defines separate values for
DPAA2_TX_CONF_ENABLE and DPAA2_NO_PREFETCH_RX

Fixes: e806bf878c17 ("net/dpaa2: support timestamp")
Cc: stable@dpdk.org
Signed-off-by: Vanshika Shukla <vanshika.shukla@nxp.com>
Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
drivers/net/dpaa2/dpaa2_ethdev.h
drivers/net/dpaa2/dpaa2_ptp.c
drivers/net/dpaa2/dpaa2_rxtx.c