[PATCH 3/8] net/nfp: modify the Rx descriptor struct

Chaoyong He chaoyong.he at corigine.com
Fri May 19 04:59:45 CEST 2023


Modify the struct nfp_net_rx_desc, change the type of the
fields, make it meet the DPDK coding style.

Signed-off-by: Chaoyong He <chaoyong.he at corigine.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund at corigine.com>
---
 drivers/net/nfp/nfp_rxtx.h | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/drivers/net/nfp/nfp_rxtx.h b/drivers/net/nfp/nfp_rxtx.h
index c433e084c5..83dc9960e8 100644
--- a/drivers/net/nfp/nfp_rxtx.h
+++ b/drivers/net/nfp/nfp_rxtx.h
@@ -191,24 +191,24 @@ struct nfp_net_rx_desc {
 	union {
 		/* Freelist descriptor */
 		struct {
-			__le16 dma_addr_hi;
+			uint16_t dma_addr_hi;
 			uint8_t spare;
 			uint8_t dd;
 
-			__le32 dma_addr_lo;
+			uint32_t dma_addr_lo;
 		} __rte_packed fld;
 
 		/* RX descriptor */
 		struct {
-			__le16 data_len;
+			uint16_t data_len;
 			uint8_t reserved;
 			uint8_t meta_len_dd;
 
-			__le16 flags;
-			__le16 vlan;
+			uint16_t flags;
+			uint16_t vlan;
 		} __rte_packed rxd;
 
-		__le32 vals[2];
+		uint32_t vals[2];
 	};
 };
 
-- 
2.39.1



More information about the dev mailing list