summaryrefslogtreecommitdiff
path: root/drivers/net/bnxt/bnxt_rxr.c
diff options
context:
space:
mode:
authorSomnath Kotur <somnath.kotur@broadcom.com>2017-12-05 12:56:56 +0530
committerFerruh Yigit <ferruh.yigit@intel.com>2018-01-16 18:47:49 +0100
commitb11cceb83a34ffc20f1d79791e0542ce5f9722aa (patch)
treee9c4f08aa4a1a133281557593d546df13ac990ef /drivers/net/bnxt/bnxt_rxr.c
parenta648d49e78fdbc88952903a736a9a57d6353eb43 (diff)
downloaddpdk-next-eventdev-b11cceb83a34ffc20f1d79791e0542ce5f9722aa.zip
dpdk-next-eventdev-b11cceb83a34ffc20f1d79791e0542ce5f9722aa.tar.gz
dpdk-next-eventdev-b11cceb83a34ffc20f1d79791e0542ce5f9722aa.tar.xz
net/bnxt: support timesync
Implemented the 'time_sync' related APIs for supporting the PTP protocol. Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com> Acked-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
Diffstat (limited to 'drivers/net/bnxt/bnxt_rxr.c')
-rw-r--r--drivers/net/bnxt/bnxt_rxr.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/bnxt/bnxt_rxr.c b/drivers/net/bnxt/bnxt_rxr.c
index 30891b7..188df36 100644
--- a/drivers/net/bnxt/bnxt_rxr.c
+++ b/drivers/net/bnxt/bnxt_rxr.c
@@ -456,6 +456,10 @@ static int bnxt_rx_pkt(struct rte_mbuf **rx_pkt,
mbuf->ol_flags |= PKT_RX_FDIR | PKT_RX_FDIR_ID;
}
+ 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;
+
if (agg_buf)
bnxt_rx_pages(rxq, mbuf, &tmp_raw_cons, agg_buf);