DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH 1/2] net/dpaa2: use new IEEE1588 flags
@ 2022-09-28  7:14 Gagandeep Singh
  2022-09-28  7:14 ` [PATCH 2/2] net/ngbe: " Gagandeep Singh
  2022-10-04  0:10 ` [PATCH 1/2] net/dpaa2: " Ferruh Yigit
  0 siblings, 2 replies; 4+ messages in thread
From: Gagandeep Singh @ 2022-09-28  7:14 UTC (permalink / raw)
  To: ferruh.yigit, dev, jiawenwu, hemant.agrawal; +Cc: Gagandeep Singh

Flags for IEEE1588 with ``PKT_*`` prefix has been changed to
``RTE_MBUF_F_*``. So in this patch updating the
old flags.

Signed-off-by: Gagandeep Singh <g.singh@nxp.com>
---
 drivers/net/dpaa2/dpaa2_rxtx.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/net/dpaa2/dpaa2_rxtx.c b/drivers/net/dpaa2/dpaa2_rxtx.c
index 9436a95ac8..ebb972c358 100644
--- a/drivers/net/dpaa2/dpaa2_rxtx.c
+++ b/drivers/net/dpaa2/dpaa2_rxtx.c
@@ -814,7 +814,7 @@ dpaa2_dev_prefetch_rx(void *queue, struct rte_mbuf **bufs, uint16_t nb_pkts)
 		else
 			bufs[num_rx] = eth_fd_to_mbuf(fd, eth_data->port_id);
 #if defined(RTE_LIBRTE_IEEE1588)
-		if (bufs[num_rx]->ol_flags & PKT_RX_IEEE1588_TMST) {
+		if (bufs[num_rx]->ol_flags & RTE_MBUF_F_RX_IEEE1588_TMST) {
 			priv->rx_timestamp =
 				*dpaa2_timestamp_dynfield(bufs[num_rx]);
 		}
@@ -1035,7 +1035,7 @@ dpaa2_dev_rx(void *queue, struct rte_mbuf **bufs, uint16_t nb_pkts)
 							eth_data->port_id);
 
 #if defined(RTE_LIBRTE_IEEE1588)
-		if (bufs[num_rx]->ol_flags & PKT_RX_IEEE1588_TMST) {
+		if (bufs[num_rx]->ol_flags & RTE_MBUF_F_RX_IEEE1588_TMST) {
 			priv->rx_timestamp =
 				*dpaa2_timestamp_dynfield(bufs[num_rx]);
 		}
@@ -1166,7 +1166,7 @@ uint16_t dpaa2_dev_tx_conf(void *queue)
 			mbuf = DPAA2_INLINE_MBUF_FROM_BUF(v_addr,
 				rte_dpaa2_bpid_info[DPAA2_GET_FD_BPID(fd)].meta_data_size);
 
-			if (mbuf->ol_flags & PKT_TX_IEEE1588_TMST) {
+			if (mbuf->ol_flags & RTE_MBUF_F_TX_IEEE1588_TMST) {
 				annotation = (struct dpaa2_annot_hdr *)((size_t)
 					DPAA2_IOVA_TO_VADDR(DPAA2_GET_FD_ADDR(fd)) +
 					DPAA2_FD_PTA_SIZE);
@@ -1247,7 +1247,7 @@ dpaa2_dev_tx(void *queue, struct rte_mbuf **bufs, uint16_t nb_pkts)
 	 * corresponding to last packet transmitted for reading
 	 * the timestamp
 	 */
-	if ((*bufs)->ol_flags & PKT_TX_IEEE1588_TMST) {
+	if ((*bufs)->ol_flags & RTE_MBUF_F_TX_IEEE1588_TMST) {
 		priv->next_tx_conf_queue = dpaa2_q->tx_conf_queue;
 		dpaa2_dev_tx_conf(dpaa2_q->tx_conf_queue);
 		priv->tx_timestamp = 0;
-- 
2.25.1


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

* [PATCH 2/2] net/ngbe: use new IEEE1588 flags
  2022-09-28  7:14 [PATCH 1/2] net/dpaa2: use new IEEE1588 flags Gagandeep Singh
@ 2022-09-28  7:14 ` Gagandeep Singh
  2022-09-28  9:08   ` Jiang, YuX
  2022-10-04  0:10 ` [PATCH 1/2] net/dpaa2: " Ferruh Yigit
  1 sibling, 1 reply; 4+ messages in thread
From: Gagandeep Singh @ 2022-09-28  7:14 UTC (permalink / raw)
  To: ferruh.yigit, dev, jiawenwu, hemant.agrawal; +Cc: Gagandeep Singh

Flags for IEEE1588 with ``PKT_*`` prefix has been changed to
``RTE_MBUF_F_*``. So in this patch updating the
old flags.

Signed-off-by: Gagandeep Singh <g.singh@nxp.com>
---
 drivers/net/ngbe/ngbe_rxtx.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/net/ngbe/ngbe_rxtx.c b/drivers/net/ngbe/ngbe_rxtx.c
index 86a5ef5486..9fd24fa444 100644
--- a/drivers/net/ngbe/ngbe_rxtx.c
+++ b/drivers/net/ngbe/ngbe_rxtx.c
@@ -17,7 +17,7 @@
 #include "ngbe_rxtx.h"
 
 #ifdef RTE_LIBRTE_IEEE1588
-#define NGBE_TX_IEEE1588_TMST PKT_TX_IEEE1588_TMST
+#define NGBE_TX_IEEE1588_TMST RTE_MBUF_F_TX_IEEE1588_TMST
 #else
 #define NGBE_TX_IEEE1588_TMST 0
 #endif
@@ -740,7 +740,7 @@ ngbe_xmit_pkts(void *tx_queue, struct rte_mbuf **tx_pkts,
 		cmd_type_len = NGBE_TXD_FCS;
 
 #ifdef RTE_LIBRTE_IEEE1588
-		if (ol_flags & PKT_TX_IEEE1588_TMST)
+		if (ol_flags & RTE_MBUF_F_TX_IEEE1588_TMST)
 			cmd_type_len |= NGBE_TXD_1588;
 #endif
 
@@ -922,7 +922,7 @@ ngbe_rxd_pkt_info_to_pkt_flags(uint32_t pkt_info)
 	};
 #ifdef RTE_LIBRTE_IEEE1588
 	static uint64_t ip_pkt_etqf_map[8] = {
-		0, 0, 0, PKT_RX_IEEE1588_PTP,
+		0, 0, 0, RTE_MBUF_F_RX_IEEE1588_PTP,
 		0, 0, 0, 0,
 	};
 	int etfid = ngbe_etflt_id(NGBE_RXD_PTID(pkt_info));
@@ -952,7 +952,7 @@ rx_desc_status_to_pkt_flags(uint32_t rx_status, uint64_t vlan_flags)
 
 #ifdef RTE_LIBRTE_IEEE1588
 	if (rx_status & NGBE_RXD_STAT_1588)
-		pkt_flags = pkt_flags | PKT_RX_IEEE1588_TMST;
+		pkt_flags = pkt_flags | RTE_MBUF_F_RX_IEEE1588_TMST;
 #endif
 	return pkt_flags;
 }
-- 
2.25.1


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

* RE: [PATCH 2/2] net/ngbe: use new IEEE1588 flags
  2022-09-28  7:14 ` [PATCH 2/2] net/ngbe: " Gagandeep Singh
@ 2022-09-28  9:08   ` Jiang, YuX
  0 siblings, 0 replies; 4+ messages in thread
From: Jiang, YuX @ 2022-09-28  9:08 UTC (permalink / raw)
  To: Gagandeep Singh, ferruh.yigit, dev, jiawenwu, hemant.agrawal

> -----Original Message-----
> From: Gagandeep Singh <g.singh@nxp.com>
> Sent: Wednesday, September 28, 2022 3:14 PM
> To: ferruh.yigit@amd.com; dev@dpdk.org; jiawenwu@trustnetic.com;
> hemant.agrawal@nxp.com
> Cc: Gagandeep Singh <g.singh@nxp.com>
> Subject: [PATCH 2/2] net/ngbe: use new IEEE1588 flags
> 
> Flags for IEEE1588 with ``PKT_*`` prefix has been changed to
> ``RTE_MBUF_F_*``. So in this patch updating the old flags.
> 
> Signed-off-by: Gagandeep Singh <g.singh@nxp.com>
> ---
Test passed.

Tested-by: Yu Jiang <yux.jiang@intel.com>

Best regards,
Yu Jiang

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

* Re: [PATCH 1/2] net/dpaa2: use new IEEE1588 flags
  2022-09-28  7:14 [PATCH 1/2] net/dpaa2: use new IEEE1588 flags Gagandeep Singh
  2022-09-28  7:14 ` [PATCH 2/2] net/ngbe: " Gagandeep Singh
@ 2022-10-04  0:10 ` Ferruh Yigit
  1 sibling, 0 replies; 4+ messages in thread
From: Ferruh Yigit @ 2022-10-04  0:10 UTC (permalink / raw)
  To: Gagandeep Singh, dev, jiawenwu, hemant.agrawal

On 9/28/2022 8:14 AM, Gagandeep Singh wrote:
> Flags for IEEE1588 with ``PKT_*`` prefix has been changed to
> ``RTE_MBUF_F_*``. So in this patch updating the
> old flags.
> 
> Signed-off-by: Gagandeep Singh <g.singh@nxp.com>

For series,
Reviewed-by: Ferruh Yigit <ferruh.yigit@amd.com>

Fixes: b9b509246da2 ("mbuf: remove deprecated offload flags")

Series applied to dpdk-next-net/main, thanks.


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

end of thread, other threads:[~2022-10-04  0:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-28  7:14 [PATCH 1/2] net/dpaa2: use new IEEE1588 flags Gagandeep Singh
2022-09-28  7:14 ` [PATCH 2/2] net/ngbe: " Gagandeep Singh
2022-09-28  9:08   ` Jiang, YuX
2022-10-04  0:10 ` [PATCH 1/2] net/dpaa2: " 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).