[dpdk-dev,v3] net/bnxt: Fix to set timestamp flag
Checks
Commit Message
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 <somnath.kotur@broadcom.com>
---
v2->v3: Added the 'fixes commit <commit-id> 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(-)
Comments
On 2/6/2018 2:52 AM, Somnath Kotur wrote:
> 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 <somnath.kotur@broadcom.com>
Applied to dpdk-next-net/master, thanks.
@@ -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);