summaryrefslogtreecommitdiff
path: root/drivers/net/bnxt/bnxt_rxr.c
diff options
context:
space:
mode:
authorSomnath Kotur <somnath.kotur@broadcom.com>2018-02-06 08:22:03 +0530
committerFerruh Yigit <ferruh.yigit@intel.com>2018-02-06 12:51:30 +0100
commitaeafacd9d79896ac36921d82aa273fbef5c34c37 (patch)
treeb515f9fe78c0488a142ae74a87ea14196cceb697 /drivers/net/bnxt/bnxt_rxr.c
parentc7aaaecd41d9a34a8753aca70c7527ae0c03eb85 (diff)
downloaddpdk-next-eventdev-aeafacd9d79896ac36921d82aa273fbef5c34c37.zip
dpdk-next-eventdev-aeafacd9d79896ac36921d82aa273fbef5c34c37.tar.gz
dpdk-next-eventdev-aeafacd9d79896ac36921d82aa273fbef5c34c37.tar.xz
net/bnxt: fix missing timestamp flag in mbuf
The timestamp flag needs to be set in the offload flags for the received pkt in case of PTP offload. Fixes: b11cceb83a34 ("net/bnxt: support timesync") Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com>
Diffstat (limited to 'drivers/net/bnxt/bnxt_rxr.c')
-rw-r--r--drivers/net/bnxt/bnxt_rxr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/bnxt/bnxt_rxr.c b/drivers/net/bnxt/bnxt_rxr.c
index 9e70c86..6a5d8c1 100644
--- a/drivers/net/bnxt/bnxt_rxr.c
+++ b/drivers/net/bnxt/bnxt_rxr.c
@@ -459,7 +459,7 @@ static int bnxt_rx_pkt(struct rte_mbuf **rx_pkt,
if ((rxcmp->flags_type & rte_cpu_to_le_16(RX_PKT_CMPL_FLAGS_MASK)) ==
RX_PKT_CMPL_FLAGS_ITYPE_PTP_W_TIMESTAMP)
- mbuf->ol_flags |= PKT_RX_IEEE1588_PTP;
+ mbuf->ol_flags |= PKT_RX_IEEE1588_PTP | PKT_RX_IEEE1588_TMST;
if (agg_buf)
bnxt_rx_pages(rxq, mbuf, &tmp_raw_cons, agg_buf);