* [dpdk-dev] [PATCH] ptpclient: enable timestamp offload support
@ 2021-02-23 6:14 Hemant Agrawal
2021-03-04 16:59 ` Rybalchenko, Kirill
0 siblings, 1 reply; 3+ messages in thread
From: Hemant Agrawal @ 2021-02-23 6:14 UTC (permalink / raw)
To: dev, kirill.rybalchenko; +Cc: Gagandeep Singh
This patch add support to enabled rx offload for timestamp.
It is required to be enabled for some pmds e.g. dpaa2
Signed-off-by: Gagandeep Singh <g.singh@nxp.com>
Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
---
examples/ptpclient/ptpclient.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/examples/ptpclient/ptpclient.c b/examples/ptpclient/ptpclient.c
index 09968cdfc..33b297e37 100644
--- a/examples/ptpclient/ptpclient.c
+++ b/examples/ptpclient/ptpclient.c
@@ -197,6 +197,9 @@ port_init(uint16_t port, struct rte_mempool *mbuf_pool)
return retval;
}
+ if (dev_info.rx_offload_capa & DEV_RX_OFFLOAD_TIMESTAMP)
+ port_conf.rxmode.offloads |= DEV_RX_OFFLOAD_TIMESTAMP;
+
if (dev_info.tx_offload_capa & DEV_TX_OFFLOAD_MBUF_FAST_FREE)
port_conf.txmode.offloads |=
DEV_TX_OFFLOAD_MBUF_FAST_FREE;
--
2.17.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dpdk-dev] [PATCH] ptpclient: enable timestamp offload support
2021-02-23 6:14 [dpdk-dev] [PATCH] ptpclient: enable timestamp offload support Hemant Agrawal
@ 2021-03-04 16:59 ` Rybalchenko, Kirill
2021-03-17 12:49 ` Thomas Monjalon
0 siblings, 1 reply; 3+ messages in thread
From: Rybalchenko, Kirill @ 2021-03-04 16:59 UTC (permalink / raw)
To: Hemant Agrawal, dev; +Cc: Gagandeep Singh
> -----Original Message-----
> From: Hemant Agrawal <hemant.agrawal@nxp.com>
> Sent: Tuesday 23 February 2021 06:14
> To: dev@dpdk.org; Rybalchenko, Kirill <kirill.rybalchenko@intel.com>
> Cc: Gagandeep Singh <g.singh@nxp.com>
> Subject: [PATCH] ptpclient: enable timestamp offload support
>
> This patch add support to enabled rx offload for timestamp.
> It is required to be enabled for some pmds e.g. dpaa2
>
> Signed-off-by: Gagandeep Singh <g.singh@nxp.com>
> Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
Acked-by: Kirill Rybalchenko <kirill.rybalchenko@intel.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dpdk-dev] [PATCH] ptpclient: enable timestamp offload support
2021-03-04 16:59 ` Rybalchenko, Kirill
@ 2021-03-17 12:49 ` Thomas Monjalon
0 siblings, 0 replies; 3+ messages in thread
From: Thomas Monjalon @ 2021-03-17 12:49 UTC (permalink / raw)
To: Hemant Agrawal; +Cc: dev, Gagandeep Singh, Rybalchenko, Kirill
04/03/2021 17:59, Rybalchenko, Kirill:
> From: Hemant Agrawal <hemant.agrawal@nxp.com>
> >
> > This patch add support to enabled rx offload for timestamp.
> > It is required to be enabled for some pmds e.g. dpaa2
> >
> > Signed-off-by: Gagandeep Singh <g.singh@nxp.com>
> > Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
>
> Acked-by: Kirill Rybalchenko <kirill.rybalchenko@intel.com>
Applied, thanks
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-03-17 12:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-23 6:14 [dpdk-dev] [PATCH] ptpclient: enable timestamp offload support Hemant Agrawal
2021-03-04 16:59 ` Rybalchenko, Kirill
2021-03-17 12:49 ` Thomas Monjalon
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).