From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from relay.smtp.broadcom.com (relay.smtp.broadcom.com [192.19.232.149]) by dpdk.org (Postfix) with ESMTP id 0A8D41B672 for ; Tue, 6 Feb 2018 04:03:56 +0100 (CET) Received: from dhcp-10-192-204-91.dhcp.broadcom.net (bgccx-dev-host-lnx35.bec.broadcom.net [10.123.153.55]) by relay.smtp.broadcom.com (Postfix) with ESMTP id DA19E1A1DE0 for ; Mon, 5 Feb 2018 19:03:54 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.10.3 relay.smtp.broadcom.com DA19E1A1DE0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=broadcom.com; s=dkimrelay; t=1517886235; bh=OkGxJbOWtfK5Zf7CueDw4whCCYUznatfq0xeAjubdSc=; h=From:To:Subject:Date:From; b=Xv9XqWE7qSjUHJAxJt6hvdRHZziAfHchBfTKxVY6p3XZgydRc+/H+MYLiSnyEL4II +Bo5GMK8B86SW38+6KKxPcetulGwrS/ciV8fZ4crFexPorHfkNx107ew6QtAgEyJVh H4JNfHABtY3oocCSfC9m+4lhcVQY/SaSnB5oyY0I= From: Somnath Kotur To: dev@dpdk.org Date: Tue, 6 Feb 2018 08:22:03 +0530 Message-Id: <20180206025203.13159-1-somnath.kotur@broadcom.com> X-Mailer: git-send-email 2.10.1.613.g2cc2e70 Subject: [dpdk-dev] [PATCH v3] net/bnxt: Fix to set timestamp flag X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Feb 2018 03:03:57 -0000 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") Cc: somnath.kotur@broadcom.com Signed-off-by: Somnath Kotur --- v2->v3: Added the 'fixes commit line' 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