From 3574222fc4babe0b88a9dcfdbd8e096acb54ee16 Mon Sep 17 00:00:00 2001 From: Ed Czeck Date: Tue, 11 Apr 2017 11:41:37 -0400 Subject: [PATCH] net/ark: set mbuf time stamp field on Rx Time stamp was carried in the packet meta data, but not place in the mbuf. The new time stamp field is the proper destination. Remove the setting of data offset since this is done by rte_pktmbuf_free() Signed-off-by: Ed Czeck Acked-by: John Miller --- drivers/net/ark/ark_ethdev_rx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ark/ark_ethdev_rx.c b/drivers/net/ark/ark_ethdev_rx.c index 97bfba381e..f39e6f68ac 100644 --- a/drivers/net/ark/ark_ethdev_rx.c +++ b/drivers/net/ark/ark_ethdev_rx.c @@ -292,7 +292,7 @@ eth_ark_recv_pkts(void *rx_queue, mbuf->port = meta->port; mbuf->pkt_len = meta->pkt_len; mbuf->data_len = meta->pkt_len; - mbuf->data_off = RTE_PKTMBUF_HEADROOM; + mbuf->timestamp = meta->timestamp; mbuf->udata64 = meta->user_data; if (ARK_RX_DEBUG) { /* debug sanity checks */ @@ -322,6 +322,7 @@ eth_ark_recv_pkts(void *rx_queue, mbuf->pkt_len = 63; meta->pkt_len = 63; } + /* seqn is only set under debug */ mbuf->seqn = cons_index; } -- 2.20.1