summaryrefslogtreecommitdiff
path: root/drivers/net/octeontx2/otx2_rx.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/octeontx2/otx2_rx.h')
-rw-r--r--drivers/net/octeontx2/otx2_rx.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/octeontx2/otx2_rx.h b/drivers/net/octeontx2/otx2_rx.h
index 1a1ac40..351ad0f 100644
--- a/drivers/net/octeontx2/otx2_rx.h
+++ b/drivers/net/octeontx2/otx2_rx.h
@@ -58,6 +58,8 @@ otx2_nix_mbuf_to_tstamp(struct rte_mbuf *mbuf,
(mbuf->data_off == RTE_PKTMBUF_HEADROOM +
NIX_TIMESYNC_RX_OFFSET)) {
+ mbuf->pkt_len -= NIX_TIMESYNC_RX_OFFSET;
+
/* Reading the rx timestamp inserted by CGX, viz at
* starting of the packet data.
*/