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

Message ID 20230519025950.1642943-4-chaoyong.he@corigine.com (mailing list archive)
State Accepted, archived
Delegated to: Ferruh Yigit
Headers
Series make the logic conform the coding style of DPDK |

Checks

Context Check Description
ci/checkpatch success coding style OK

Commit Message

Chaoyong He May 19, 2023, 2:59 a.m. UTC
  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@corigine.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund@corigine.com>
---
 drivers/net/nfp/nfp_rxtx.h | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
  

Patch

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