DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH v2] net/bnxt: Fix to set timestamp flag
@ 2018-02-02  2:35 Somnath Kotur
  0 siblings, 0 replies; 3+ messages in thread
From: Somnath Kotur @ 2018-02-02  2:35 UTC (permalink / raw)
  To: dev

The timestamp flag needed to be set in the offload flags
for the recieved pkt in case of PTP offload

Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com>
---
v1->v2: Trimmed subject line and added content in commit log
 drivers/net/bnxt/bnxt_rxr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/bnxt/bnxt_rxr.c b/drivers/net/bnxt/bnxt_rxr.c
index 82c93d6..430990d 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);
-- 
1.9.1

^ permalink raw reply	[flat|nested] 3+ messages in thread
* [dpdk-dev] [PATCH v2] net/bnxt: Fix to set timestamp flag
@ 2018-02-02  2:38 Somnath Kotur
  2018-02-05 16:09 ` Ferruh Yigit
  0 siblings, 1 reply; 3+ messages in thread
From: Somnath Kotur @ 2018-02-02  2:38 UTC (permalink / raw)
  To: dev

The timestamp flag needed to be set in the offload flags
for the received pkt in case of PTP offload

Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com>
---
v1->v2: Trimmed subject line and added content in commit log
 drivers/net/bnxt/bnxt_rxr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/bnxt/bnxt_rxr.c b/drivers/net/bnxt/bnxt_rxr.c
index 82c93d6..430990d 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);
-- 
1.9.1

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-02-05 16:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-02  2:35 [dpdk-dev] [PATCH v2] net/bnxt: Fix to set timestamp flag Somnath Kotur
2018-02-02  2:38 Somnath Kotur
2018-02-05 16:09 ` Ferruh Yigit

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).