[2/2] net/ngbe: use new IEEE1588 flags

Message ID 20220928071406.1532345-2-g.singh@nxp.com (mailing list archive)
State Accepted, archived
Delegated to: Ferruh Yigit
Headers
Series [1/2] net/dpaa2: use new IEEE1588 flags |

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation success Compilation OK
ci/iol-mellanox-Performance success Performance Testing PASS
ci/iol-aarch64-unit-testing success Testing PASS
ci/iol-intel-Functional success Functional Testing PASS
ci/iol-intel-Performance success Performance Testing PASS
ci/iol-x86_64-unit-testing success Testing PASS
ci/iol-x86_64-compile-testing success Testing PASS
ci/github-robot: build success github build: passed
ci/iol-aarch64-compile-testing success Testing PASS
ci/intel-Testing success Testing PASS

Commit Message

Gagandeep Singh Sept. 28, 2022, 7:14 a.m. UTC
  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(-)
  

Comments

Yu Jiang Sept. 28, 2022, 9:08 a.m. UTC | #1
> -----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
  

Patch

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;
 }